Like for walls and slab, it is possible to assign an Object Type with a UDF to a Door (and Window) feature.
The list of input parameters that the UDF can obtain for the features is in the table below. The only mandatory input is the Position axis system, Usually the outputs will contain a surface, or a volume named Opening, used to cut the opening in the wall.
The attached movie shows how the controls to position the door feature work seamlessly for the UDF outputs too.
| DOOR | |
Base Axis System or Position | Axis System used to position the door, typically at the bottom mid-point of the door’s panel. Z up, X normal away from the wall |
| Width | Width of the door corresponding to the rough opening for its panel |
| Height | Height of the door corresponding to the rough opening for its panel |
| PanelThickness | Thickness of the door’s panel |
| SwingSide | An integer with value 1 for left handed, 2 for right handed |
| OpeningAngle | Zero for a shut door, a value in degree for a door ajar. Applies to swing doors |
| OpeningPercent | Zero for a shut door, a value in degree for a door ajar. Applies to sliding doors |
| CasingWidth | The width of the door’s casing |
| CasingThickness | The thickness of the door’s casing |
| LiningThickness | The thickness of the door’s lining |
| LiningSpace | The gap between panel and lining |
| WallThickness | The thickness of the wall hosting the door |
| Opening | An UDF output surface or volume used to cut the opening in the wall |
| TEMINOLOGY | |||
|
|
|
|
| Complete Door | Casing | Lining | Opening (in yellow) |
A Door feature with a Door Object Type
Similar considerations apply to a Window feature
| WINDOW | |
| Position | Axis System used to position the window, typically at the bottom mid-point of the window’s panel. Z up, X normal away from the wall |
| WallThickness | The thickness of the wall hosting the window |
| Width | Width of the window |
| Height | Height of the window |
| CasingWidth | The width of the window’s casing |
| CasingThickness | The thickness of the window’s casing |
| LiningThickness | The thickness of the window’s frame (lining) |
| LiningSpace | The gap between window and frame (lining) |
| GlassThickness | The thickness of the window's glass |
| OpeningAngle | The open angle of a casement window |
| SashWidth | The width of the window's sash |
| SashThickness | The thickness of the window's sash |
| Opening | An UDF output surface or volume used to cut the opening in the wall |
For detailed instructions, see the youtube video here: https://youtu.be/TAouHhtHDvI
And here is the 3dxml of the Object Type
