sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Strayed coordinates

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    2 Posts 2 Posters 265 Views 2 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.
    • K Offline
      kmk111890
      last edited by

      Hi. I'm facing to an unexpected problem. The problem is simple.

      I made a plugin which creates cone shape and it can be placed after inputting coordinates in input box. Here, I inputted (1000.mm, 1000.mm, 1000.mm), but the cone was placed at '991.mm, 991.mm, 991.mm). Why did it happen??

      FYI, I used 'class' method and a = Geom::Transformation.new([@@x.to_i, @@y.to_i, @@z.to_i]). Is the problem related with what i have coded?


      Inputting_coordinates.png


      coordinates_trouble.png

      1 Reply Last reply Reply Quote 0
      • S Offline
        slbaumgartner
        last edited by

        Without seeing your code, this is just a guess, but I suspect that you are falling victim to the fact that all coordinates in SketchUp are internally represented as inches, regardless of the visible units you have set for the model. So, 1000mm=39.37inches. Apply #to_i and you get 39 inches = 990.6mm.

        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