• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Change value of a reserved DC attribute

Scheduled Pinned Locked Moved Dynamic Components
sketchup
1 Posts 1 Posters 1.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    issamal
    last edited by 27 Jun 2015, 22:10

    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

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post
    Buy SketchPlus
    Buy SUbD
    Buy WrapR
    Buy eBook
    Buy Modelur
    Buy Vertex Tools
    Buy SketchCuisine
    Buy FormFonts

    Advertisement