Message 1 of 3
LISP for handovers to bind then TRIM xrefs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Perhaps there’s something similar out there that can be modified to suit my case, but after a Brief search I couldn't find anything suitable...
I’m looking for ideally a LISP that will do just about all of the following via one command, though steps 1,2,4 & 5 I could do by Hand if need be as they don't take Long - just lisping step 3 would save me numerous hours each month.
Lisp Name should be “HANDOVER” and basically from the current .dwg, which has / can have multiple layouts, should carry out the following:
- Detach any xrefs which are not currently active (be it turned off or because they can’t be found)
- Binds all of the remaining xrefs (with Xref-Name as new Layername-Prefix)
- Cropping out unwanted information: This is where the user should be promted whether he wants to restrict the modelspace Information to objects defined by viewport(s) or whether he wants to draw/select a polygon(s) directly from modelspace to have everything outside this polygon trimmed from the drawing...
→In the Event the user selects the former ("Viewports"), the following steps 1 and 2 Need be applied.
→In the Event hte user selects the latter ("Modelspace-Polygon"), then he should be prompted to draw (D) a single polygon or select (s) one or even multiple Polygons. This would mean the following steps 1 and 2 would be ignored...:- Create polygons around each of the viewports on each of the layouts (polygon should receive a new layername “ViewportBorder”, which should be a non-print layer), then
- Move/transfer all of these polygons from Paperspace(s) to Modelspace.
....................... - Trim everything that lies outside of the polygons (to cut the .dwg filesize down and to not hand over any unwanted/unnecessary information). This could of course be tricky since all of the original Xrefs are now in Block-form, which could have blocks inside them, etc.
- Layer Purge:
- removes all layers which are turned off, frozen or have no entities attributed to them after the Xref-Block Trim from step 3 (i.e. deletes all objects which are on frozen/turned-off layers, then purges the layernames)
- Saves the drawing as (should be prompted for a new filename/-path, where the User can also choose which .dwg-Version to save as)
Running AutoCAD Architecture 2020, in German