Skip to content
Discussion options

You must be logged in to vote
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)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@deedend
Comment options

Answer selected by JuniperScarr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants