Advertisement

Monday, May 4, 2015

Convert CAD Details to Revit Linework with Free Convert DWG to RVT Lines Macro (Updated)

From the ArchSmarter website...

This macro converts linked and imported CAD files to Revit lines. To run the macro, load macro RVT file then make a view active in the file containing the CAD file you want to convert. Go to Manage > Macro Manager. Select the "Convert DWG to Detail Lines" or "Convert DWG to Model Lines" macro. The macro will prompt you to select  a linked or imported CAD file. The link or import can be in any type of view. Below is a screenshot of an AutoCAD roof detail that's been linked into a Revit drafting view.


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.


The macro creates either detail lines or model lines, depending on which version you run. The macro creates the lines using the "Thin 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.


Just make sure you specify a line style that exists in the current project file.  The macro checks that the line style exists and will give you an error if it doesn't.

Below is a view of the converted AutoCAD file with the linked file removed.



As you can see, the macro does not convert AutoCAD text to Revit text. The ability to read AutoCAD text is currently not available in the Revit API. When you use the macro to convert your AutoCAD details, you will need to add the text manually. It will convert leaders and dimension strings, but not the text associated with those elements. The same goes for hatch patterns. The macro does not convert them to Revit fill patterns (at least not yet).

There's more information available on the ArchSmarter website.

To get the Sheet and View Maker Macro, which is part of the ArchSmarter Toolbox, one must subscribe to ArchSmarter's email updates.


No comments: