AutoLISP that "detects" new layers found in xrefs

AutoLISP that "detects" new layers found in xrefs

thomas.schive
Enthusiast Enthusiast
821 Views
3 Replies
Message 1 of 4

AutoLISP that "detects" new layers found in xrefs

thomas.schive
Enthusiast
Enthusiast

Hello!

 

I've got a question and hopefully I might find a solution here. Is there a way to make AutoCAD - I thought most likely through a LISP routine? to "detect" layer changes that has been made since the last work session with the current dwg?

 

As an example:

 

In large projects, a railway project, there are drawings showing the geometry of the railway, terrain, situation, some new roads etc. So the drawing contains x xrefs, one for each other "subject", and freezes out in the viewports a lot of irrelevant information. And very often when these drawings are being updated, there has been made changes in the xrefs - maybe there is a new layer containing an irrelevant road that suddenly appears in the drawing etc. Often hard to keep track of these changes, and even more often the drawings contains more information than they are supposed to, and has to be corrected once or twice.

 

So ... a routine that listed up all new layers added to the xrefs since last session would be great. Maybe hard to find changes that has been made in an existing layer I can imagine, but as long as you can detect the new ones I believe much of the job is done.

 

Do you guys think it is possible to write a routine that does this?

 

Regards, TS

0 Likes
Accepted solutions (1)
822 Views
3 Replies
Replies (3)
Message 2 of 4

DannyNL
Advisor
Advisor
Accepted solution

Are the new layer notifications in the layer settings not what you want?

 

http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-DEB2A4C9-8C16-4EC9-8392-1BF8ED2A383A

 

LayerSettings.png

Message 3 of 4

thomas.schive
Enthusiast
Enthusiast

Oh, well yeah, that seems to work just fine 🙂 Thanks!

0 Likes
Message 4 of 4

DannyNL
Advisor
Advisor

You're welcome Smiley Happy

0 Likes