My team lead just assigned me this task. I have to create a Revit plugin which create…
- User
My team lead just assigned me this task. I have to create a Revit plugin which create families from dwg files. I can’t find any help on the internet about read dwg file in .net.
Assistant
Here are a few suggestions for reading DWG files in .NET for your Revit plugin:
-
Use the Autodesk.AutoCAD.Runtime.AcadApplication class to open and access the DWG file. This allows you to read the various entities, layers, etc from the DWG.
-
You can also use the OpenDwgFiler class in the ODA Platform .NET API. This provides methods to open a DWG file, iterate through entities, and extract geometry.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.