export building components using api

export building components using api

Anonymous
Not applicable
909 Views
5 Replies
Message 1 of 6

export building components using api

Anonymous
Not applicable

can someone please share me the code that i can write in vba(inside inventor) for creating a button that will export my file to adsk format?

0 Likes
910 Views
5 Replies
Replies (5)
Message 2 of 6

HermJan.Otterman
Advisor
Advisor

it is already in Inventor,

 

Environment, Bim Content

export building components...

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes
Message 3 of 6

Anonymous
Not applicable

sir i know about that but i want to do it with the help of inventor api and thats why i am asking about the code  that can be written in vba which is provided inside inventor?

0 Likes
Message 4 of 6

Anonymous
Not applicable

Private Sub CommandButton1_Click()
    Dim strFullFileName As String
    strFullFileName = "C:\Users\Yogesh\Desktop\model1.ipt"

Dim o2 As BIMComponent
Set o2 = BIMComponent.ExportBuildingComponent(strFullFileName)

End sub

0 Likes
Message 5 of 6

Anonymous
Not applicable

but this didnt work!

0 Likes
Message 6 of 6

HermJan.Otterman
Advisor
Advisor

look at:

 

https://forums.autodesk.com/t5/inventor-ideas/export-ifc-and-rfa-files-with-inventor-api/idi-p/67209...

 

BIMComponent.ExportBuildingComponent Method BIMComponent.ExportBuildingComponent( FullFileName As String )

 

BIMComponent.ExportBuildingComponent Method

Input String that defines the full filename to write the building component to. The filename should have an adsk extension.
If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes