Project Wide Utilities using script and action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I recorded and action, named QWE. That action highlights an area, deletes the contents and purges blocks. Then I copy a good block with a basepoint of 0,0.
I wrote a quick script:
(command "QWE")
(command "_pasteclip" "0,0")
(command ".qsave")
(princ)
When I run this script using Project Wide Utilities, it stalls at the first page, until I click in the drawing window. Then it moves to the next drawing in the project.
Here's the command log:
Command: (command "QWE")
QWE Regenerating model.
_.ACMRSELECT
Select objects: _Crossing
Specify first corner: -11.59525917117410,4.032727427062099 Specify opposite corner: 15.28275920647508,-8.470227418184485 1 found
Select objects:
Command: ERASE
Select objects: 1 found
Select objects:
Command: -PURGE
Enter type of unused objects to purge [Blocks/DEtailviewstyles/Dimstyles/Groups/LAyers/LTypes/MAterials/MUltileaderstyles/Plotstyles/SHapes/textSTyles/Mlinestyles/SEctionviewstyles/Tablestyles/Visualstyles/Regapps/Zero-length geometry/Empty text objects/Orphaned data/All]: Blocks Enter name(s) to purge <*>: * Verify each name to be purged? [Yes/No] <Y>: _N Deleting block "PLCIO_I_2TERM".
1 block deleted.
Command: Playback of action macro complete
nil
Command: (command "_pasteclip" "0,0")
_pasteclip Substituting [simplex.shx] for [romansl.shx].
Specify insertion point: 0,0
Command: nil
Command: (command ".qsave")
.qsave
Command: nil
Command: (princ)
Command:
If you see something let me know. I miss leaning back and letting the magic happen.
Thank you,
J.