- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a way to delete a specific block from within a drawing using a script? I've looked through many forums and can't find an exact answer but I do have a script working as below and so long as I insert the block as the last operation it will do exactly what I want.
The objective is to delete an existing title block, purge the drawing, save it and then close the sheet and repeat the cycle until all sheets have been updated. I then run another script that replaces the title block and this works great.
An even better solution would be to delete the old title block, purge and replace it with the new one all from within a single script but again is this possible as both blocks would have the same name albeit I could have the replacement block in a different file location.
Some of our projects can have up to 150 sheets so to change the drawing revision etc. manually can be very tedious.
My current script is as follows: -
_.open "C:\SteveW\P01.dwg"
Erase
L
_PURGE
_A
*
_N
_.qsave
_.close
_.open "C:\SteveW\P02.dwg"
Erase
L
_PURGE
_A
*
_N
_.qsave
_.close
etc.
Solved! Go to Solution.