Need help for layer filter lisp

Need help for layer filter lisp

danglar
Advocate Advocate
588 Views
7 Replies
Message 1 of 8

Need help for layer filter lisp

danglar
Advocate
Advocate

This lisp creeate layer filter for non-plotttable layers:

 

(defun c:1xx()
(command "-layer" "filter" "N" "P" "" "PLOTTABLE=="False"" "np" "x" "")
(princ)
)
(c:1xx)

 

but not working properly for this reason: "PLOTTABLE=="False"

if i make it manualy it's stable working but not programmaticaly..

 

Any help will be very appreciated

0 Likes
Accepted solutions (1)
589 Views
7 Replies
Replies (7)
Message 2 of 8

hmsilva
Mentor
Mentor
Accepted solution

Untested

(command "-layer" "filter" "N" "P" "" "PLOTTABLE==\"False\"" "np" "x" "")

 

Hope this helps,
Henrique

EESignature

0 Likes
Message 3 of 8

danglar
Advocate
Advocate

works great! thank you!

0 Likes
Message 4 of 8

hmsilva
Mentor
Mentor

@apelbaum2014 wrote:

works great! thank you!


You're welcome, apelbaum2014
Glad I could help

Henrique

EESignature

0 Likes
Message 5 of 8

danglar
Advocate
Advocate

sorry but i found a little problem:

If filter already exist it start's to work not properly .. stoped in fact.. can you solve this problem Henrique?

0 Likes
Message 6 of 8

hmsilva
Mentor
Mentor

@apelbaum2014 wrote:

sorry but i found a little problem:

If filter already exist it start's to work not properly .. stoped in fact.. can you solve this problem Henrique?


Sorry apelbaum2014,

but in this laptop, and at the place where I'm, I don't have any AutoCAD, so I can't assist...

 

Henrique

EESignature

0 Likes
Message 7 of 8

danglar
Advocate
Advocate

PROBABLY SOMETHING LIKE THIS:

 

(command "-layer" "filter" "D" "NOPLOT" "")

(command "-layer" "filter" "N" "P" "" "PLOTTABLE==\"False\"" "NOPLOT" "x" "")

 

what's your oppinion about this solution?

0 Likes
Message 8 of 8

hmsilva
Mentor
Mentor

@apelbaum2014 wrote:

PROBABLY SOMETHING LIKE THIS:

 

(command "-layer" "filter" "D" "NOPLOT" "")

(command "-layer" "filter" "N" "P" "" "PLOTTABLE==\"False\"" "NOPLOT" "x" "")

 

what's your oppinion about this solution?


It should work as expected...

 

Henrique

EESignature

0 Likes