Get element ids from an attribute #231
Answered
by
Brunner246
JuniperScarr
asked this question in
Q&A
Replies: 1 comment 1 reply
-
from collections import defaultdict
import cadwork
import element_controller as ec
import attribute_controller as ac
element_ids = ec.get_all_identifiable_element_ids()
element_dict = defaultdict(list)
for element_id in element_ids:
element_dict[ac.get_subgroup(element_id)].append(element_id) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JuniperScarr
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.
-
Is it possible to get the element ids by calling for an attribute such as a Group name? I am generally looking for different ways to get elements ids without them having to be active in a model.
Any help on this would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions