Lisp to clean up drawing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm aware there are similar requests on this forum but as far as I know/can find, nothing that fits my exact requiremenst.
I often get .dwg/.dxf files from architects which have been created in non-AutoCAD software (revit, microstation, etc.) and have a lot of useless information which bloats the file. I would like to use a single-command (lisp) to carry out the following on the (opened) .dwg file:
1) explode all blocks repeatedly, until there are no more blocks in the drawing
2) turn all layers to Layer=0 and colour=ByLayer and line weight = ByLayer
3) purge to remove any now unused layer, unused blocks, unused scales, etc.
4) overkill to remove any duplicate elements (to an accuracy of 0.0001)
5) check drawing units and change to METER if not already set to METER
6) zoom extents
Does anyone have something like this handy or can write a lisp up for me?
Ultimately I want to convert that lisp into a clickable icon/command to put inside a ribbon, but that's a different topic / for another day