Change value of a reserved DC attribute
-
I created a Dynamic Component in Pro 14 and I am trying to manipulate an instance of that in Sketchup Make 15. When I assign a value to an attribute such as LenZ, i don't see any change. Could somebody help?
Here is a sample code :
dl = Sketchup.active_model.definitions
file_path = Sketchup.find_support_file "style_85.skp", "Components/"
comp_def = dl.load file_path
ent = Sketchup.active_model.entities
inst = ent.add_instance comp_def,[0,0,0]original value for LenZ is 20
inst.set_attribute "catalogue","LenZ",70
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement