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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Question about position in space of an object

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 516 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.
    • B Offline
      bender
      last edited by

      I've been looking but couldn't find any method that can supply you with this information. If I add an object to my space, for example an object from the 3d warehouse, and I need to know its position in 3d space (ie, its coordinates (x, y, z) ), is there a method that does this for me? How can I do this?

      I can't imagine there not being such a function. If I move an object to say (100, 200, 300) through the ruby console, that coordinate I assume should be somewhere present in the object's information. If anyone can help me I'd really appreciate it.

      1 Reply Last reply Reply Quote 0
      • daikuD Offline
        daiku
        last edited by

        This is obtained through the object's transformation.

        Clark Bremer
        http://www.northernlightstimberframing.com

        1 Reply Last reply Reply Quote 0
        • B Offline
          bender
          last edited by

          Could you be a little bit more precise? I've looked in the transformation class, and see a method that returns the x-axis, y-axis and z-axis vector. I am just looking to get a certain entitie's coordinate. A function that returns it's 3d position.

          1 Reply Last reply Reply Quote 0
          • daikuD Offline
            daiku
            last edited by

            See if transformation.origin returns the result you are expecting.

            Clark Bremer
            http://www.northernlightstimberframing.com

            1 Reply Last reply Reply Quote 0
            • C Offline
              cornel
              last edited by

              Bender,
              For coordinates, you can use Jim's Query Tool (QueryToolbar.rb).
              Search for QueryToolbar.zip !

              Cornel

              1 Reply Last reply Reply Quote 0
              • B Offline
                bender
                last edited by

                thanks! That seems to be what I need.

                Bender

                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