sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Drawing real time in sketchup

    scheduled pinned locked moved Developers' Forum
    3 Posts 2 Posters 441 Views 2 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • 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.

      one-reply-to-this-post last-reply-time 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

        one-reply-to-this-post last-reply-time reply quote 0
        • Y Offline
          youthreewire
          last edited by

          Thanks Chris..

          one-reply-to-this-post last-reply-time 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