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!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Snapping to grid in two dimensions

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 1 Posters 191 Views 1 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.
    • daikuD Offline
      daiku
      last edited by

      I'm developing a tool where I'm locating a point that's offset in two directions from a starting point. I started with the example line tool, and things are working pretty well, but the snapping isn't what I would like. It snaps to the nearest 1/8", but in the 'diagonal' distance from the starting point. The x,y values I snap to are thus not multiples of 1/8". The built-in rectangle tool behaves like I want my tool to behave: it snaps to the grid in two dimensions. Does anyone know the trick for this? CB.

      Clark Bremer
      http://www.northernlightstimberframing.com

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

        Sorry about bumping my own thread, but I'd really like to solve this one. The built-in rectangle tool does exactly what I want. You can see it by watching the VCB. Even though you are at a diagonal distance from the the first point, it snaps to even numbers in the cartesian directions.

        I started with the line tool sample, but I modifed the VCB code to display the x and y offset values rather than the striaght-line length. But they are always some odd value with a ~. CB.

        Clark Bremer
        http://www.northernlightstimberframing.com

        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