CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 4286:

Question

CAD 
 %  platform  category 
A
The new system variable OSNAPZ in AutoCAD 2006+ can suppress object snapping to Z values (ignore object elevation) and use the current Elevation value instead.

You can also the setting "Replace Z value with current elevation" in the Options dialog.

Preset the OSNAPZ by adding:

(setvar "osnapz" 1)

to your ACADDOC.LSP file, or toggle the OSNAPZ status by adding a button with the menu macro:

^C^C(setvar 'osnapz (abs (1- (getvar 'osnapz))))

to your ribbon (CUI).

Z values captured from osnap can be source of many problems in drawings.

ACAD2015ACAD2012ACAD2010ACAD2006ADT2006Map2006
100% *CAD
15.3.2005    15027×  

See also:
Tip 14443:Connector, notch, groove, cutout or other curve- breaks - easily with dynamic blocks.
Tip 13185:Constraining object movement to a specified curve (rail) in AutoCAD.
Tip 12896:How to perform multiple copying with relative offset to the last copy?
Tip 12766:Lines with a single grip, incorrect osnaps, intersections, offsets, hatches - CheckLarge
Tip 12705:How to disable osnaps for xref objects?


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  



Featuring:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info


Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist