Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create Layer Filter, and apply at drawing setup - everytime

0 REPLIES 0
Reply
Message 1 of 1
David_Knight
306 Views, 0 Replies

Create Layer Filter, and apply at drawing setup - everytime

Have a Lisp routine that was given to me that creates a layer filter.  I tried to add it to my acaddoc.lsp file so it executes at every file open.  I have it successfully creating the layer filter, but it will not apply it.  

 

This is the code I added to my acaddoc.lsp file.

 

(load "XREFNOT")
(c:xrefnot)

(defun-q S::STARTUP ( )
	(command ".-layer" "filter" "set" "No_Xref_Layers" "")
)

I added xrefnot.lsp to my autoload list of files.

Hoping someone here can help!

 

Thanks!

David.

 

 

*edit

 

Additonal information:

The question was raised in this thread: 

http://forums.autodesk.com/t5/AutoCAD-2013-2014/Layers-names-sort-order/m-p/3821892/highlight/false#...

 

but since it was the wrong forum, i decided to re-post.

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost