• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Re-define SU Axis in Ruby

Scheduled Pinned Locked Moved Developers' Forum
5 Posts 3 Posters 339 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.
  • G Offline
    Gruff
    last edited by 25 Oct 2009, 20:02

    What would be the base object for re-defining the SketchUp Axis in Ruby?

    I find I need to Rotate the Axis about its existing position but I cannot get to the 'Move Axis' tool as
    the Axis is embedded inside the part.

    I want to launch the Axis move tool from a ruby script or build a replacement.

    Resistance is .... Character Forming. Grin

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 25 Oct 2009, 20:29

      There is no API to change model or component axis. 😞

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gruff
        last edited by 26 Oct 2009, 18:38

        Crud.

        Resistance is .... Character Forming. Grin

        1 Reply Last reply Reply Quote 0
        • C Offline
          Chris Fullmer
          last edited by 26 Oct 2009, 18:43

          Do you really need to rotate the axis? or is there a workaround that can be done for what you need to do?

          Chris

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

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gruff
            last edited by 26 Oct 2009, 20:22

            To the best of my knowledge Chris.

            I find I need to create new geometry on non-existing planes. By not setting the Axis I can easily get my 2D sketch geometry off kilter. With the Axis aligned properly I get feedback.

            See the attached pic. The original Axis was at the lower left corner of the block. Picking the odd face (Which is planar to the block face) does not give me the desired X,Y Axis. Sure it defines the plane surface but not the way I need it.

            This is not the biggest issue though. The hardest one is where the Axis origin is in the correct position inside the part but I need to rotate it say.... about he Y axis.

            The only work-around I've found is to hide the entire model move (rotate) my Axis then un-hide the model.

            I don't eyeball my models I create to real world dimensions as best I can.

            [Edit]Should have done a screen capture. Export removed the Axis from my sample. (It was aligned with the bottom of the extruded feature.)[/Edit]


            Sample_BadAxis.jpg

            Resistance is .... Character Forming. Grin

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

            Advertisement