Thank you to forums like these I've been picking up (or at least trying) this Lisp stuff. It's been a big help.
I am trying to write a script for AutoCAD to clean up some Exported models from Revit. i am trying to get the script to add a new G-ANNO-VPRT layer, put all viewports on that layer, take all block references in model space that have a name that starts with 803000... and move them to the back, then explode them, the script will also force all colors of all objects to ByLayer in model and paper space, then it will remove all text masking and zoom extent, purge, audit, and save.
I have a script that runs a few lisps, and I'm very close. I am getting hung up on selecting all the block references in modelspace that starts with 803000... to send them to back and explode them. The current lines I have for that only are selecting one of the block references in the file, it will eventually select the other one, but it has to be run an additional 2-3 times for it to be included, I have no idea why.
I have attached my script and the lisp files it runs if you'd like to take a look.
Thank you.


Reply With Quote

