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!
    🚨 Skimp | 25% Off until March 30 Buy Now

    Layout 2 scriptable with Ruby?

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 360 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

      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

        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

          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

            @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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better πŸ’—

            Register Login
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement