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

    Drawing real time in sketchup

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

      Hi,

      I have been trying to draw real time as the co-ordinates get generated using Ruby in Sketchup.
      The tutorial here shows how to draw 10 steps.
      http://code.google.com/apis/sketchup/docs/tutorial_geometry.html

      But problem is if I have to draw 1000 blocks or more ,sketchup hangs until the loop is run and all the points are generated and then draws them all it once. What if the points are being generated one by one randomly as time goes and they are to be plotted in sketchup? More precisely how does one draw a real time graph in sketchup using ruby. Say now I have a block at 100,100,100 and then the next frame I have to draw it at 110,110,110 and keep on updating its position frame by frame.

      Please suggest.Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Todfd Burch gave me an example of howe to do it using the animation class. Herei is his post on it:

        http://forums.sketchucation.com/viewtopic.php?f=180&t=16711&p=132091#p132319

        (note that I was asking about how to show geometry as its being added - the first couple of suggestions using view.invalidate and the tool class are wrong, so ignore them. Just skip down to Todd's post about the animation class).

        Hope that helps. Ask again if that does not get you enough information.

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • Y Offline
          youthreewire
          last edited by

          Thanks Chris..

          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