Skip to content
Discussion options

You must be logged in to vote

Hi,
The cadwork list objects have been reworked to the SP2024 version so that they are "identical" to the C++ interfaces (sorry for breaking the script, that was not our intention).
The len function has not been implemented (but we can still implement this). Alternatively, a count() method is available. If you only want to "iterate" through the list, you can use the range based approach (for item in items)

see also https://docs.cadwork.com/projects/cwapi3dpython/en/latest/documentation/brep_data/

ec.get_active_identifiable_element_ids()
[62748057]

gc.get_element_facets(62748057)
<cadwork.facet_list object at 0x00000298CB374A70>

facet_list = gc.get_element_facets(62748057)

facet_list.count

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@roehligas
Comment options

@Brunner246
Comment options

Answer selected by roehligas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants