Monday, August 22, 2022

Can't Find What You're Looking For?

How To Safely Convert Details From Autocad To RevitAs I recall, it was better practice to make as many changes as possible in AutoCAD, prior to importation. We ended up creating one script that re-named the layers in AutoCAD to be the same as the linestyles in Revit. There were also some AutoCAD script elements that adjusted the text, dimensions, hatch patterns, and drawing scale. We ended up converting several hundred details, which we still use today. The macro prompts you to select a linked or imported DWG file. Once you select the DWG file, the macro will access the geometry in the file and create a new Revit line or arc using that geometry. Once it completes the conversion, the macro will let you know how many elements from the CAD file were converted to Revit elements. When its all done, select all and then copy/past the whole mess into a new blank revit file. Then save the 2nd file, and thow the first one away or keep it if you need to backtrack and re-do something maybe. One thing that I learned long time ago, we should never import any type of CAD elements to a Revit project to avoid potential model performance issues. There is another simple way of tracing CAD details in a Revit project. Link the CAD file to a 'drafting view' and then use the option 'pick lines' from 'detail lines' to automatically trace the previous CAD files.


If I knew how to code, I would have it prompt you to choose which layers go to which line style. Assigning the various line styles. Re-annotating is what slows me down the most. It still sees lines that are too short but at least I can choose to delete these and maintain end up with usable detail. With this method you would end up deleting or turning off the hatch from AutoCAD, and re-hatching in Revit. The plan is to get this sorted out during the next 500 details. The issue is that every drawing is different. It’s hard to standardize something that’s not very standard. Using this tool, I’m able to transfer all the annotation and hatches from AutoCAD to Revit in less than a minute. Essentially, every layer in the DWG file becomes a Revit linetype. Likewise with every dimension. Text style as well as all the fill patterns. For the record, I definitely DON’T recommend this method. It deposits a whole ton of extra crap in your model. Can't find what you're looking for? Ask the community or share your knowledge. Still, the best choice is editing it in AutoCAD, cleaning all the unnecessary elements, and using it as a link in Revit. You have to do a full explode, any unbroken blocks will not be editable. Double check everything has been converted using the Filter. The macro checks that the line style exists. Will give you an error if it doesn’t. The macro creates detail lines so they are only visible in the current view. Also, the macro creates the lines using the β€œMedium Lines” line style. You can edit the macro code to use any line style you prefer. Just change the value of the β€œlinestyleName” variable as highlighted below.


0 comments:

Post a Comment