A "Framed Roof" is simultaneously a beam, a panel and a roof #350
Replies: 5 comments
-
|
Well, i recommend you to follow this approach import cadwork
import element_controller as ec
import attribute_controller as ac
elements = ec.get_active_identifiable_element_ids()
for element in elements:
element_type: cadwork.element_type = ac.get_element_type(element)
if element_type.is_rectangular_beam(): print(f"Element {element} is a rectangular beam.")
elif element_type.is_circular_beam(): print(f"Element {element} is a circular beam.")
elif element_type.is_connector_axis(): print(f"Element {element} is a connector axis.")
elif element_type.is_drilling_axis(): print(f"Element {element} is a drilling axis.")
elif ac.is_framed_wall(element): print(f"Element {element} is a framed wall.") |
Beta Was this translation helpful? Give feedback.
-
|
Thanks ! got it 🙏 when should |
Beta Was this translation helpful? Give feedback.
-
|
I tried to map the c++ api methods to python and found some gaps between the c++ api, the element_type in python and the attribute controller in the python api. Some of it I can piece back (ac.is_beam probably map to both rectangular_beam and circular_beam). But i'm still confuse about the difference for these two things and how to use it best. Nothing urgent though, for now all element types i really need I can access. Thanks! map table below :
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Ok, then it's only the MEPs and Solid/Framed-Floor-Wall-Roof that are missing.
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
To reproduce :
result on a Floor element :
Is that a feature ?
Beta Was this translation helpful? Give feedback.
All reactions