Convert autocad .dwg file to revit .rvt file through C# Add-Ins

Anonymous

Convert autocad .dwg file to revit .rvt file through C# Add-Ins

Anonymous
Not applicable

Hi Everyone,

 

I'm new for Revit API development.

 

I would like to convert autocad .dwg file to revit .rvt file using C# Add-ins.

I am working on Revit 2013 and went through the Revit 2013 API help file.

I do not see any method to convert dwg to rvt.

 

 

Is it possible ?


Please advice me Experts !!!!

 

Appreciate any help!!!

 

Thank you in advance.

 

 

Best Regards,

Thet Tin Oo

 

0 Likes
Reply
3,061 Views
6 Replies
Replies (6)

augusto.goncalves
Alumni
Alumni

There is not direct conversion between formats, .dwg and .rvt are completely different types of files, with different types of data...

 

You can, for instance, import the .dwg into a .rfa or .rvt, but will be a single solid, not a parametric element

 

Or you can read read the .dwg, analyze and create an equivalent .rvt, but this is hard to program (too many rules/logic)

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes

Anonymous
Not applicable

Hi Augusto,

 

Thank you so much.

 

btw, Do you have any reference link to read and analyze the .dwg  programmatically in C# or python ?

 

 

 

 

 

 

Best Regards,

Thet Tin Oo

0 Likes

Anonymous
Not applicable

Hi Augusto,

 

As you mentioned earlier , after I have made some research on how to read and analyze .dwg and I also tried to convert .dwg -> .dxf -> .rvt .

I still can't figure it out.

 

 

 

Thank you for guiding me.

 

 

 

 

 

Best Regards,

Thet Tin Oo

 

0 Likes

augusto.goncalves
Alumni
Alumni
To read .dwg files you'll need AutoCAD installed, from there you can read the data. This is supported on .NET (and others), but not in Python (there some samples, but it's not fully supported).
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes

augusto.goncalves
Alumni
Alumni

For some samples on how import a .dwg into a .rvt (using Revit), please download the Revit SDK and get the ImportDWG sample.

 

www.autodesk.com/developrevit

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes

Anonymous
Not applicable

Hi Augusto,

 

 

I have checked ImportDWG sample in Revit 2013 SDK sample project.

There seems to be not my direction.

Thank you so much.

 

 

Sorry for my late reply.

 

 

Best Regards,

Thet Tin Oo

 

0 Likes