Skip to content
Discussion options

You must be logged in to vote

you have to set the undo before modifying elements.

import cadwork
import element_controller as ec
import geometry_controller as gc
import attribute_controller as ac

elements = ec.get_active_identifiable_element_ids()

modify: int = 2
user_attribute_nr: int = 7
ec.add_elements_to_undo(elements, modify)
ac.set_user_attribute(elements, user_attribute_nr, "Hello World")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Antoine-S-C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants