purge problem script

purge problem script

Anonymous
Not applicable
800 Views
4 Replies
Message 1 of 5

purge problem script

Anonymous
Not applicable

Dear all,

 

For making life simple I am trying to make a script for all the "standerd things to do before closing" the drawing.

 

I got this far:

 

Zoom
E
Pdmode
0
Grid
2
Grid
Off
-Layer
Set
0
-PURGE
A

*

N
-qsave

 

It works until -purge and the commandline gives me error: Invalid option keyword

 

I tried: (, is enter)

-purge, A,*,N

-purge, ALL, *, N

-purge, A, O

and every other combination I could imagine.

 

 

I have no idea what I am doing wrong and we can not use LIPS at work (security deletes LISP routines...) but I only find LISP solutions. Hope somebody can help.

 

Dear regards,

 

Esther

 

0 Likes
Accepted solutions (1)
801 Views
4 Replies
Replies (4)
Message 2 of 5

Kent1Cooper
Consultant
Consultant
Accepted solution

You have not completed the LAYER command.  It's -PURGE that is an invalid option in LAYER.  Add a blank line to supply the Enter to finish LAYER:

....

-Layer
Set
0


-PURGE
A

....

Kent Cooper, AIA
Message 3 of 5

Anonymous
Not applicable

I had the feeling that it was something as simple as that =). Thanks a lot!

0 Likes
Message 4 of 5

Sea-Haven
Mentor
Mentor

Not sure how you talk to each other "we can not use LIPS at work"

 

Anyway you can put lisp in a script can help with end commands problem.

 

 

(setvar 'clayer "0")
(command "-purge" "a" "*" "n")

 

0 Likes
Message 5 of 5

Kent1Cooper
Consultant
Consultant

Another option, since System Variable names can be used as if they were commands, and using the CLAYER System Variable that way doesn't require the extra Enter to finish it, as the LAYER command does:

 

....

Grid

Off
CLAYER

0
-PURGE
A

....

Kent Cooper, AIA
0 Likes