How to create an Annotaitive Scale Purge/Cleanup Script?

How to create an Annotaitive Scale Purge/Cleanup Script?

Anonymous
Not applicable
461 Views
3 Replies
Message 1 of 4

How to create an Annotaitive Scale Purge/Cleanup Script?

Anonymous
Not applicable

I've taken a stab at creating an Annotaitive Scale Purge/Cleanup Script that will reset the annotative scale list to defaults.

With my limited programming knowledge, I haven't been able to get it to work. Can anyone correct it?

Please help!

 

Corey B.

P.S. Script Code I've created below:

 

-scalelistedit

reset

1:1

y

erase

Audit

y

-purge

all

n

_qsave

close

0 Likes
462 Views
3 Replies
Replies (3)
Message 2 of 4

hmsilva
Mentor
Mentor

Hi coreybarge,

 

using the -scalelistedit command, and enter the reset option, the code expects:

Reset scale list to defaults? [Yes/No] <No>:

I don't understand the 1:1 and the Y, are you trying to redefine the 1:1 scale?

 

Could you please try to enter the command sequence at the command line, then copy/paste in the next message?

 

Henrique

EESignature

0 Likes
Message 3 of 4

Anonymous
Not applicable

I copied the code from a LISP routine into the script and do really know what I'm doing yet. Need to enroll in "AutoCAD Programming 101"! LOL!

Just trying to learn how to program.

any help in making this work is appreciated!

 

Corey B.

0 Likes
Message 4 of 4

hmsilva
Mentor
Mentor

@Anonymous wrote:

I copied the code from a LISP routine into the script and do really know what I'm doing yet. Need to enroll in "AutoCAD Programming 101"! LOL!

Just trying to learn how to program.

any help in making this work is appreciated!

 

Corey B.


Hi Corey,

to creat a .scr file, @Anonymous simplest way is enter the command @ command line, enter the options we need, press F2 and copy the command sequence to the script file.

Each space or empty line, means an <enter> in the .scr file

ex.

Command: -scalelistedit
Enter option [?/Add/Delete/Reset/Exit] <Add>: reset
Reset scale list to defaults? [Yes/No] <No>: y
Scale list reset to default entries.
Enter option [?/Add/Delete/Reset/Exit] <Add>: y

Command:

 

in the script:

-scalelistedit reset  y  e <<empty space to the last enter

Audit y <<empty space to the last enter
-purge all n <<empty space to the last enter
_qsave <<empty space to the last enter
close <<empty space to the last enter

 

note: the '<<empty space to the last enter' is just graphic, don't use it in the script...

 

Hope this helps,
Henrique

 

EESignature

0 Likes