Message 1 of 2
Blockreplace script - Purge dialogue box

Not applicable
03-13-2018
07:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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