sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Change value of a reserved DC attribute

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    1 Posts 1 Posters 1.4k Views 1 Watching
    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

      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
      • First post
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement