LISP for Cleaning up Drawing

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
This is my first post so I apologize in advance if this is not in the correct format or place. I'm looking for a LISP that can automate print to pdf, import to pdf, change layer names, and finally chspace with minimal to none user input
Background: We have many very large drawings with many xrefs in them that need to be shrunken in size and standalones(no xrefs) to be shipped off to clients. We only want to send the client what the viewport sees in the layout(and border) so we xtrim to delete everything outside in model space. This is a VERY VERY time consuming process as drawings are very large and require multiple explosions to successfully trim everything.
Current Methodology (not in order):
-Extrim
-xplode
-purge
-delete frozen layers
-delete non-visible layers
New Proposed Method:
-Export to pdf with layer data
-Import pdf into new drawing
-remove pdf prefix to layer names, rename command
-chspace
Whala! A standalone drawing much quicker!
What I'm looking for:
A LISP to automate print to pdf, open pdf, rename layers, and chspace with minimal/none user input
Is this possible? Is this the right way to do this? Current macros require too much user input as most of the above commands have pop-up windows