Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
2982 Views, 6 Replies

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

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

 

6 REPLIES 6
Message 2 of 7
augusto.goncalves
in reply to: Anonymous

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
Message 3 of 7
Anonymous
in reply to: augusto.goncalves

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

Message 4 of 7
Anonymous
in reply to: Anonymous

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

 

Message 5 of 7
augusto.goncalves
in reply to: Anonymous

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
Message 6 of 7
augusto.goncalves
in reply to: Anonymous

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
Message 7 of 7
Anonymous
in reply to: augusto.goncalves

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

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report