Export Revit file to IFC using VB.NET/C#

Export Revit file to IFC using VB.NET/C#

Anonymous
Not applicable
5,556 Views
6 Replies
Message 1 of 7

Export Revit file to IFC using VB.NET/C#

Anonymous
Not applicable

Hi Guys,


This is balaji, i am new to Revit API programming. I am started the exploring method API process.
Currently, i am looking for export current revit file to IFC format, through VB.NET/C#.  How to do the export process.

 

Please help me for further process and guidance.

 

 

Thnks

Balaji

0 Likes
5,557 Views
6 Replies
Replies (6)
Message 2 of 7

jeremytammik
Autodesk
Autodesk

Dear Balaji,

 

Yes, it is.

 

You can implement a Revit add-in in C# .NET to drive the  RVT to IFC export using the Document.Export method:

 

http://www.revitapidocs.com/2017/2f535342-ee41-86f9-0022-92ba1f65112d.htm

 

http://www.revitapidocs.com/2017/db8ed2bb-8949-7a7f-e09a-29f6c9916f42.htm

 

Another option is to translate the RVT to Forge and export IFC from there:

 

https://developer.autodesk.com/en/docs/model-derivative/v2/overview/supported-translations/

 

In that case, you can work in the cloud and do not need to have Revit installed at all.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 7

Anonymous
Not applicable

Hi Jeremy,


Thanks for your immediate reply. I will check with your provided urls for further process.


Is there any option to open revit files outside vb macro like vb.net application


i.e: User has to open form and select the revit file from file browsing. After file selected, function should open revit file in the background of the application and export to IFC file format.


I searched in the forum and other guide, i got little bit confused with provided sample coding.

 

Actually i created one vb.net form and given the option to user select revit files and export-button.

 

I am looking application(form based) oriented process for our requirement.

 

 

 

Thnks

Balaji

0 Likes
Message 4 of 7

jeremytammik
Autodesk
Autodesk
0 Likes
Message 5 of 7

Anonymous
Not applicable

Hi Jeremy,

 

Sorry for disturbing you.

 

Can you suggest to learn from basic level to advance method. Like PDF/HTML.

 

Actually i download one project from net "importexport-vb.net.zip", if i try to run the project it show error in the common class areas.

 

I have attached the zip file for your reference.

 

errors:

1. SelectViewsForm.vb

     Autodesk.Revit.Elements.View

 

2. Command.vb

    IExternalCommand

 

3. Units.vb

    Autodesk.Revit.Enums.DisplayUnitType

 

 

 

Command-err.pngSelectViewsForm-err.pngUnit-err.png

 

Thnks

Balaji

 

 

 

0 Likes
Message 6 of 7

jeremytammik
Autodesk
Autodesk

Please work through the basic getting started material before asking any further questions:

 

https://forums.autodesk.com/t5/revit-api-forum/starting-out-using-revit-api/m-p/7569859

 

Thank you!

 

Cheers,

 

jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 7 of 7

Anonymous
Not applicable

 

 

Sorry Jeremy,

 

Thanks for your provided url, i will go through the guide and start basic level of programming..

 

 

Thnks

Balaji

0 Likes