About Assigning Snap Modes to Standard AutoCAD Commands (AutoCAD Mechanical Toolset)

You can assign different snap modes to standard AutoCAD commands.

If you set the Snap Settings option in the AM:Preferences tab of the Options dialog box to System Settings, whenever you use an AutoCAD command, the program activates the snap modes assigned to that command automatically. For example, you can make the snap modes Center, Intersection, and Endpoint active whenever you start the DONUT command.

Assign snap modes to an AutoCAD command by entering the name of the command as a key in the ACADM>OSWIZ>Osmode4Cmds branch of the System Editor and assigning a value code to the value of the key.

Note:

The format of the value code

The general format of the system value code consists of four sections: SIGN, ACADSNAPMODES, DELIMITER, and MCADSNAPMODES. It can be represented as follows:

SIGN opt ACADSNAPMODES opt DELIMITER opt MCADSNAPMODES opt

opt: Optional. You can omit the designated section.

ACADSNAPMODES: The value code for the AutoCAD object snap modes based on the AutoCAD OSMODE system variable.

MCADSNAPMODES: The value code for the AutoCAD Mechanical toolset object snap modes: Arc Radial, Arc Tangent, and Symmetry.

The program assigns the following integer values to these snap modes:

DELIMITER: The pipe sign “|”.

SIGN: The minus or plus sign. A minus sign makes the snap modes defined by ACADSNAPMODES or MCADNAPMODES and those set in the Drafting Settings dialog box and Power Snap Settings dialog box active, when you use the respective AutoCAD command. A plus sign makes the snap modes defined by ACADSNAPMODES or MCADSNAPMODES active and disables those set in the Drafting Settings dialog box and Power Snap Settings dialog box. If you set the ACADSNAPMODES or MCADSNAPMODES to 0, the sign has no effect and the program suppresses object snaps.

Example:

To assign the AutoCAD DONUT command the following snap modes:

To make the snap modes assigned to the DONUT command active whenever you start the DONUT command, set the value code for DONUT to -35|7.