As we progress, we are inevitably using Revit in replacement of where we use to use AutoCad. We are now even using Revit for some master planning.
What this does mean, is we are having to use more and more AutoCAD (dwg) files in Revit. We need to be able to edit them and users want then in a Revit format, not just a linked dwg.
So we endeavour to clean the dwg files up before we bring it into Revit with tools like “Overkill, Audit, Purge”, rationalize the layers and hatching, remove floating elements outside the drawing area and I also filter and remove short lines relative to the scale.
What is more difficult is to fix lines that are 0.2 degrees off axis and 45 degrees, ie “Line slightly off axis” Currently I just have to import the file to Revit, explode and fix the errors. One of the last times I imported a file, I got 1300 lines slightly off axis. That is just too much to clean up.
Is there anyway someone with programming knowledge can come up with an AutoCAD lisp routine or a Revit API to fix the lines with an error up. It would need to find lines that are 0.2 degrees off 0, 45 and 90 degrees. These lines would then be rotated from their centre axis no more than 0.1 degree to 0, 45 or 90 Degrees or the other way to 0.201 degree of 0, 45 or 90 degrees.
I’ve looked for such a script without any luck. How difficult would it be to produce such a command?