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

Redraw DC

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 264 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.
  • B Offline
    bsnantes
    last edited by 16 Dec 2009, 23:34

    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 17 Dec 2009, 01:45

      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 18 Dec 2009, 23:36

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

        Advertisement