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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    How do i change length attributes in ruby

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    3 Posts 2 Posters 609 Views 2 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.
    • A Offline
      agenor
      last edited by

      How do i change the length attributes lenx, leny, lenz to a value without using a formula.
      if i use the set_attribute('dynamic_attributes', '_lenx_formula', number)
      the component will not be scalable anymore

      1 Reply Last reply Reply Quote 0
      • A Offline
        agenor
        last edited by

        please can somebody tell me if there is a solution for this
        or does i have to make change request to the sketchup developer team?

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          You have double posted - in the other thread there is some useful advice please read it.
          If you use Ruby code to reset the formula to be a fixed number how can you expect it to be a formula again later on?
          You must change the attributes that the formula is using to effect a change that is not permanent! The formula cannot be changed in anyway without changing how the DC works.
          There are also other DC Ruby tools to scale objects too...

          TIG

          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