Blockreplace script - Purge dialogue box

Blockreplace script - Purge dialogue box

Anonymous
Not applicable
851 Views
1 Reply
Message 1 of 2

Blockreplace script - Purge dialogue box

Anonymous
Not applicable

I have a script which replaces a block defined in the drawing.

 

When using the -blockreplace command everyone's machine runs the script fine, except one user. When it asks to purge any unreferenced items, and the script replies yes, it displays the purge dialogue box, thus interrupting the script. On my machine (same drawing), the script runs through faultlessly. Other "-purge" commands in the script don't cause any problems. I compared a list of system variables and only five are different:

 

ACADLSPASDOC

AUPREC

CIPMODE

DYNMODE

LUPREC

 

None seem to be related to this issue.

 

(setq SnapMode (getvar "OSMODE"))
-OSNAP NONE
ATTREQ 0
;;;;;;;;;;;;;;;;
ZOOM EXTENT
;;;;;;;;;;;;;;;;
-LAYER THAW REVISION_A_CROSSES 
-LAYER THAW STAMPS 
-LAYER SET STAMPS 
;;;;;;;;;;;;;;;;
SSX

BLOCK
QldRail_Consult_A1_ATT

ERASE
PREVIOUS

;;;;;;;;;;;;;;;;
-PURGE
ALL
*
N
;;;;;;;;;;;;;;;;
-Insert
"V:\QldRail_Consult_A1_ATT.dwg"
0,0
1000
1000
0
;;;;;;;;;;;;;;;;
TB
;;;;;;;;;;;;;;;;
-LAYER
FI
SET
All

;;;;;;;;;;;;;;;;
-SCALELISTEDIT
DELETE
*
EXIT
;;;;;;;;;;;;;;;;
AUDIT Y
;;;;;;;;;;;;;;;;
-Insert
"V:\QR_issued_for_construction_stamp.dwg"
0,0
1
1
0
;;;;;;;;;;;;;;;;
SSX

BLOCK
QR_issued_for_construction_stamp

ERASE
PREVIOUS

;;;;;;;;;;;;;;;;
-BLOCKREPLACE
QR_not_for_construction_stamp
QR_issued_for_construction_stamp
YES
;;;;;;;;;;;;;;;;
-PURGE
ALL
*
N
-PURGE
ALL
*
N
;;;;;;;;;;;;;;;;
-LAYER SET 0 
;;;;;;;;;;;;;;;;
(if (not PDF_Fin)(load (strcat PDFLSPPATH_01 "PDF_Fin.LSP")))
(PDF_Fin)
;;;;;;;;;;;;;;;;
(command "OSMODE" SnapMode)
QSAVE
0 Likes
852 Views
1 Reply
Reply (1)
Message 2 of 2

CodeDing
Advisor
Advisor

@Anonymous,

 

If it runs flawlessly for all other users, it sounds like a PC thing or a dwg thing. Not to be "that guy" but just to be sure and eliminate the basics...

-Is the script you have provided, the one that's being used on THAT computer? ..whose copy did you post? Could've been accidentally edited.

-Have you tried and does the script work for that user on other drawings? Or is it ONLY this ONE in particular?

-Is that user running ANY other LISPs  that other users might not be?

 

I think these questions can narrow it down quite a bit.

 

Best,

~DD

0 Likes