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!
    FredoBend | Powerful new bending tool for SketchUp Download

    Strayed coordinates

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    2 Posts 2 Posters 326 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

        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