Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Current Layer Changes Automatically?

Steven_Parker8H4NR
Explorer

Current Layer Changes Automatically?

Steven_Parker8H4NR
Explorer
Explorer

I've never seen this before, I'm sure it's a system variable I accidentally changed or something but...

 

The current layer keeps changing on me. For example, I can set "P1" as the current layer, but as soon as I do a command (like Line) the current layer switches to "LINE-MEDIUM".  No matter what layer I set to current as soon as I start a command it automatically switches the layer to "LINE-MEDIUM".  I thought it might have something to do with the template used to create the new drawing so I tried this in a drawing not created "new" from the template. Again, I could set any layer to current, start a command, then it automatically switched the current layer to "0".  Reviewing the SETVARMONITOR I can see that when I initiate the "Line" command AutoCAD runs the CLAYER sysvar... the SETVARMONITOR shows "LINE-MEDIUM" to be "preferred".  So, I guess the answer might be how do I get AutoCAD to not change CLAYER when I start a command? Or any other suggestions?  I've Been using AutoCAD a long time and have never seen this before.  Thanks in advance!

0 Likes
Reply
Accepted solutions (1)
371 Views
8 Replies
Replies (8)

paullimapa
Mentor
Mentor

as a test start autocad in safemode to see if that still happens:

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/How-to-launch-an-A...


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes

ВeekeeCZ
Consultant
Consultant

It could be routines like this one...

https://www.lee-mac.com/layerdirector.html

 

You can try launching AutoCAD in /safemode to see whether it is present or not.

https://www.google.com/search?q=autocad+run+save+mode&rlz=1C1GCEV_cs&oq=autocad+run+save+mode&gs_lcr...

0 Likes

Kent1Cooper
Consultant
Consultant

You may have somehow acquired customized command definitions.  If, for example, one is LINE undefined and differently defined to take you to a particular Layer, try typing in .LINE with the period prefix to force use of the native command, not the new definition.  Does the Layer change still occur?  If not, it would seem your LINE command has been defined differently -- use REDEFINE to get the native LINE command back, until you find where the different definition is coming from.

Kent Cooper, AIA
0 Likes

pendean
Community Legend
Community Legend
Did you restart your PC?
Did you reset your AutoCAD yet? this will remove anything you changed or added.

Set your commandline to be 4-6-10 lines tall, repeat your actions, and watch what is being reported. Notice any extra tasks kick-in yet?
0 Likes

-didier-
Advisor
Advisor

Bonjour @Steven_Parker8H4NR 

 

What is the command you use to draw your lines?

Do you draw from a palette?

 

Amicalement

Éternel débutant.. my site for learning : Programmer dans AutoCAD

DA

EESignature

0 Likes

Steven_Parker8H4NR
Explorer
Explorer
Accepted solution

Thanks for all the suggestions!  I tried each with not result. One suggestion was along the lines of making sure the LINE command was actually the LINE command... I feel foolish for missing the obvious.  It appears the organization did an update to the support files and sure enough changed the basic LINE command to a lisp that changes the layer lines are drawn on. Apparently, they did it for CIRCLE too and few other commands that draw objects. I guess a few admins felt they needed to force objects to certain layers to make it obvious that they need to be moved to the right layers (to many people drawing things on wrong layers)... not efficient at all; now we have to draw the lines them move them to the right layer rather than setting the right layer to current and drafting them all there. End rant.  

 

Again, I do appreciate all the suggestions. I apologize for wasting your time when the solution was quite obvious.

0 Likes

cadffm
Consultant
Consultant

Hi,

it's easy to stop it, but the (only) right way to go in this case: Talk with your (c)admin!

 

 

Sebastian

0 Likes

paullimapa
Mentor
Mentor

I’m surprised when you tried my response to start AutoCAD in safemode did not immediately resolve the issue since that should have stopped any custom functions from loading and redefining builtin commands like Line and Circle


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos