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

    Redraw DC

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 286 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.
    • B Offline
      bsnantes
      last edited by

      Is there a way using ruby script to mimic the Dynamic components redraw option from the context menu.
      I need to up-date the position of a DC (let's say Cube2) which depends on the Z value from another DC (lets say Cube1 ie Cube1!Z).
      Any idea ?
      Is there also a way to create an observer that would react to a DC geometrical transformation ?
      Thanks for your help

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        I think maybe it is possible. I don't recall any mention of it here on this forum, but if you search for "dc_observers" on the API Group, you may come up with something.

        Hi

        1 Reply Last reply Reply Quote 0
        • B Offline
          bsnantes
          last edited by

          Thanks, This works. The problem I'm facing now is that I have added this "target" redraw capacity in a class function which extends DC functions but it appears they can't be referenced in a mouseclick interaction. Only in formulas.
          I have to find another work around. The redraw() function only refresh the DC which calls it. Any idea about a work-around ?

          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