• Login
sketchucation logo sketchucation
  • Login
⌛ Sale Ending | 30% Off Profile Builder 4 ends 30th September

Layout 2 scriptable with Ruby?

Scheduled Pinned Locked Moved Developers' Forum
4 Posts 3 Posters 282 Views 3 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.
  • H Offline
    HPW
    last edited by 30 Mar 2009, 06:08

    Hello,

    In Autocad I can script the layout and plot process with autolisp.

    So is it possible to make layouts in Layout 2 automaticly with ruby and plot the result?

    Regards

    Hans-Peter

    1 Reply Last reply Reply Quote 0
    • R Offline
      remus
      last edited by 30 Mar 2009, 13:09

      No, theres isnt a ruby api for layout (unless someone slipped it in there while i wasnt watching.)

      You could always draw your plan in SU (using some scripts if you need to) and import it in to layout. Wouldnt behave like a native layout object though 😉

      http://remusrendering.wordpress.com/

      1 Reply Last reply Reply Quote 0
      • J Offline
        jhauswirth
        last edited by 30 Mar 2009, 14:17

        Can you give some examples of what you script so we can get some ideas of what to add to a scripting interface?

        1 Reply Last reply Reply Quote 0
        • H Offline
          HPW
          last edited by 30 Mar 2009, 15:48

          @unknownuser said:

          Can you give some examples of what you script so we can get some ideas of what to add to a scripting interface?

          I am not familar with Layout and it capabilitys since I am evaluating the specs for a possible future use.
          When I undertstand it right Layout is a separte EXE/Modul and not running in the same process then SketchUp.
          In Autocad the modellviews in modellspace are similar to the modellviews in paperspace.
          Both can be reached from autolisp and automated/scripted.

          So what I would expect from scripting layout:

          Inserting forms/templates and filling their data-fields.
          Drawing primitives (lines,arrows,text and whatever layout supports) in Paperspace
          Placing views and set them up with view-points, camera-settings, rendermodes etc.
          Iterating (reading propertys) through all elements in paperspace.
          Interfacing with the SketchUp main-modul. (Starting a layout/print process in Sketchup/Ruby, doing the job (passing a ruby call to layout) in layout/Ruby and return back to the calling point in SketchUp)
          Control (filenames/printers) the output (Printing/Exporting) with Ruby in Layout.

          So be able to give a customer a cadalog with Sketchup Components and ready made forms/templates and custom ruby code/toolbars to allow him easy product customising.

          (I hope I make it clear so far, since I am not native english)

          Greetings from germany

          Regards

          Hans-Peter

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            4/4
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement