A "Framed Roof" is simultaneously a beam, a panel and a roof #350
Unanswered
usai-sylvain
asked this question in
General
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.") |
0 replies
|
Thanks ! got it 🙏 when should |
0 replies
|
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 :
|
0 replies
0 replies
|
Ok, then it's only the MEPs and Solid/Framed-Floor-Wall-Roof that are missing.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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 ?
All reactions