Jump to content

Toggle Snap on/off

Recommended Posts

I don't know of a built in command. As Ken said above, a simple script made into a command in the Vectorscript Plugin Editor can be assigned a keyboard shortcut.

The actual script you need is:


Those are two single quotes inside the parentheses.

Or you can go back to the olden days of MiniCAD. If you make the snaps palette two columns wide by 4 rows high, the left hand column will be ASDF and the right hand column will be QWER.

Unless this is something you really do all the time it may be easier just to learn those "geographically" based shortcuts.

Link to comment

Much more difficult problem. You would need to save all of the snap setting and then restore them afterward. I just checked the reference and I don't see a way to get all of the snap options. You can get the status of Snap to Grid and Snap to Object, but I am not finding the others.

I don't think you can do it with the current implementation of VS.

Link to comment
Excellent guys...it works! my first VS :), can we take it a step further, to make it a true toggle, how do I make it switch the constraints on again?

I recall this option from a recent experience setting up some

simple scripts via the Tools/Custom Tool Attribute menu command.

Select your snap options, go to Tools/Custom Tool Attribute...

and select only the "smart cursor setting" option, click OK

and the script will be created. BTW, I tested the snap options

scripts and it works on my VW 2009 SP5 version.

You can do this step for any snap configuration you want;

thereafter you can copy the script (via the resource browser)

, create a menu command and assign it a keyboard shortcut

in the workspace editor.

Link to comment
  • Vectorworks, Inc Employee

Hello All,

This is one of those plug-in commands that I've always wanted to write but have been too lazy - until now. This one does it as a true toggle, err, well, sort of... It will toggle the same set of snaps on and off regardless of what the user sets in between toggles. This is how it works, the plug-in menu has a boolean parameter that it toggles between "True" and "False" every time it's run. When the boolean is true, it turns the predefined snaps on and when it's false, it turns them off. The user can define the snaps through the plug-in's strings (using the "Plug-in Editor"). I have it set to use "qwsd", but it can be changed to your needs in the "Plug-in Editor".

You can download the plug-in here:


Edited by Matt Panzer
Link to comment
  • Vectorworks, Inc Employee

You're welcome Ray. I'm glad you like it!

Ken & Vincent,

I goofed the original post with a bum link (also giving me a "panzercad.com" file when I tested). I've since edited my post to fix the link.

Here's the link again:


Let me know if you still cannot get it.

Link to comment
  • Vectorworks, Inc Employee


I see you're using VW 2009. My shortsightedness led me to create this in VW 2010. VW plug-ins are not backward compatible. I recreated it in VW 2008 and replaced the download with this one, so it should now work in VW 2008 and later. Download again from the link and you should have it working.


Link to comment
  • 2 years later...


I have been trying to figure out how to do this function forever! So I downloaded your link, however not sure what to do now. Can you back up and please put it in a "Vectorworks for Dummies" version for me? ;) (I am well versed in VW, but just not in scripts and advanced stuff like that.)

When I downloaded, I got the file called "Snaps-.vsm" and don't know what to do next. I'm in VW 2010 Fundamentals Landsmark, on a PC w/ Windows 7.

Thank you so much


Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...