"Freeze/Thaw in Current" layer states not restored via command line options

Discussion in 'AutoCAD' started by alexwood, Mar 7, 2005.

  1. alexwood

    alexwood Guest

    Hi There:

    I am trying to create a small tool button macro that will restore "Freeze/Thaw in current viewport" layer states in an active viewport on a layout.
    I have tested the command line options manually and, when trying to use the command line option to restore "Freeze/Thaw in current viewport" layer states nothing is restored.
    I am using a basic layout. The viewport is current. The current layer state is saved via the Layer States Manager dialog. "Freeze/Thaw in Current Viewport" is checked on in the options for the Layer States Manager.
    When restoring a "Freeze/Thaw in Current" layer state from the Layer States Manager dialog it restores fine. When using the command line options it does not restore the "Freeze/Thaw in Current Viewport" states. On/Off or Frozen/Thawed states do restore from the command line options but not "Freeze/Thaw in current viewport" states.
    The macro is as follows:

    ^C^C-layer;A;R;(getvar "CTAB");;;_REGENALL;

    (btw - the Named Layer State is already saved with the same name as the Viewport so the (getvar "CTAB") is grabbing the right Viewport & Layer State name).

    I originally tried the loswitch.dvb from dotsoft.com.
    This uses the same procedure and still does not restore "Freeze/Thaw in Current Viewport" states.

    Any ideas or suggestions as to why the command line options might not work with "Freeze/Thaw in Current"?

    Thanks in advance for your time and help.

    Regards,

    Alex Wood
     
    alexwood, Mar 7, 2005
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.