About | Download | Newsletter | System requirements | Documentation | Version History | License agreement

About

When the AutoCAD variable OSNAPZ is changed many have found it useful to have a more visual change to indicate its state. In verticals like AutoCAD Architecture you have a small button that indicates the state of the “Z lock” but some might want to even have the background color change just like the Block Editor changes the background color.

With OsnapzBG loaded any change of OSNAPZ will also change the background and other specified colors depending on if OSNAPZ is set to 0 or 1.

The four colors that are saved and changed are:
*Model Space Crosshair Color
*Model Space Background Color
*Model Space Autotrack Vector Color
*Model Space Autosnap Marker Color

We have made this background color changer for OSNAPZ app available as a freeware. For more colors to change see our OsnapzBG Plus.

Here is what it look like in AutoCAD Architecture. “Replace Z value with current elevation” is a button on the application status bar.

It is the system variable OSNAPZ that holds this setting. OSNAPZ was introduced in AutoCAD 2006 and with OSNAPZ set to 1 anything you snap to only uses the current elevation as z value. OSNAPZ controls whether object snaps are automatically projected onto a plane parallel to the XY plane of the current UCS at the current elevation. OSNAP command or OSMODE system variable in AutoCAD sets running object snap modes.

When installed as an AutoCAD app OsnapzBG shows up on the Plug-ins tab and gives quick access to also change the value of OSNAPZ.

Download

  

For AutoCAD 2012 and newer download OsnapzBG as an AutoCAD app on Autodesk App Store site.

Download OsnapzBG.zip here if you have AutoCAD 2011 or older.

Newsletter

Subscribe to our OsnapzBG newsletter or any of our other Newsletters.

System requirements

Compatible with AutoCAD 2009, AutoCAD 2010, AutoCAD 2011, AutoCAD 2012, AutoCAD 2013, AutoCAD 2014, AutoCAD 2015, AutoCAD 2016, AutoCAD 2017 and AutoCAD 2018. All flavors based on AutoCAD should be working like AutoCAD Architecture (ACA), AutoCAD Civil 3D, AutoCAD Electrical , AutoCAD Map 3D, AutoCAD Mechanical, AutoCAD MEP (AMEP, ABS), AutoCAD P&ID, AutoCAD Plant 3D.

Compatible with those operating systems AutoCAD runs on like Windows 7, Windows 8, Windows 8.1 and Windows 10.
Older Windows versions might also work but are not directly supported.

JTB World is an Autodesk Authorised Developer

       

Documentation

Installation of the AutoCAD app

Easiest is to use the installer.

Manual installation of the app is available for AutoCAD 2013-2017 and 2013-2017 verticals. This can be done both while AutoCAD is running or not running.
Enter the below path in Windows Explorer address field and press enter.
%appdata%\Autodesk\ApplicationPlugins
Extract OsnapzBG.bundle.zip in the ApplicationPlugins folder so that a folder named OsnapzBG.bundle is created with all needed files.
It can look like this where jtb is an example of the user name.
C:\Users\jtb\AppData\Roaming\Autodesk\ApplicationPlugins\OsnapzBG.bundle
PackageContents.xml should be found in the OsnapzBG.bundle folder.
To uninstall, delete the OsnapzBG.bundle folder.

Another Installation Option

Download OsnapzBG.zip and extract the files to a folder of your choice.

Notice though that you should have it on your local PC or special .NET security settings needs to be done. An error message indicating this can be something like: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

OsnapzBG.dll (name of dll is depending on version) needs to be loaded by your AutoCAD application and that can be done in different ways. Use one of the following options.

  • Use the command NETLOAD and select OsnapzBG.dll. This loads the command in the current session only.
  • Create a menu command, toolbar button or palette tool using CUI and force load it before running the command.
    Macro or Command string:
    ^c^c(command "netload" "C:/Program Files/JTB World/OsnapzBG/OsnapzBG.dll");
  • Add the row below to your acad.lsp file so it loads automatically when AutoCAD starts.
    (command "netload" "C:/Program Files/JTB World/OsnapzBG/OsnapzBG.dll")

Usage

Make the background color you want to use for OSNAPZ=0 and run the SetOsnapzColors0 command or use the button on the Ribbon tab Plug-ins/Add-ins.

Make the background color you want to use for OSNAPZ=1 and run the SetOsnapzColors1 command or use the button on the Ribbon tab Plug-ins/Add-ins.

The four colors that are saved and changed are:
*Model Space Crosshair Color
*Model Space Background Color
*Model Space Autotrack Vector Color
*Model Space Autosnap Marker Color

Now when OSNAPZ is changed the background will change accordingly.

OSNAPZ set to 0

OSNAPZ set to 1 - This will replace Z value with current elevation.

See also this blog post: OSNAPZ changes can change your AutoCAD screen background with the OsnapzBG freeware

 

License agreement

The license agreement is found here.

Version History

  • 2017-06-02 - version 1.4
    • Changes of Auto Snap Marker to white incorrectly fixed as well as a few other minor issues.
  • 2017-03-21 - version 1.3 update
    • Added Autodesk® AutoCAD® 2018 support.
  • 2016-11-03 - version 1.3
    • Fixed a bug that could cause Autodesk® AutoCAD® Civil 3D® 2014 to crash on start-up
  • 2015-03-20 - version 1.2 update
    • Added support to AutoCAD® 2016. (No version number change)
      Added digital signing of DLL and installer files
  • 2014-04-02 - version 1.2
    • Updated installer for the Autodesk App version to support AutoCAD 2015 and verticals.
      Minor fixes so the colors also change when needed upon application startup.
  • 2013-04-13 - version 1.1 update
    • Support for AutoCAD 2014. To upgrade delete the existing OsnapzBG.bundle folder first.
  • 2012-05-07 - version 1.1
    • Support for AutoCAD 2013.
  • 2009-04-26 - version 1.0 

Back to top with sliders

Contact us for any questions, wishes or comments.