ilogic: BIM Export to *.ADSK

ilogic: BIM Export to *.ADSK

Anonymous
Not applicable
327 Views
0 Replies
Message 1 of 1

ilogic: BIM Export to *.ADSK

Anonymous
Not applicable

Hello World :),

there are cool snippets for export to stp or dwf.

I need such a snippet for BIM Export to *.ADSK.

 

2019_11_14_12_17_50_Autodesk_Inventor_Professional_2018_3113248.iam_.png

 

After searching this forums and the internet i didn't found soething useable. So i created this post.

 

In the API there are objects for the BIM Exchange but i have problems to create a code by myself.

 

Does somebody maybe have something like this bellow for the BIM Export, which i can adopt for my code.

 

' Get the STEP translator Add-In.
Dim oSTEPTranslator As TranslatorAddIn
oSTEPTranslator = ThisApplication.ApplicationAddIns.ItemById("{90AF7F40-0C01-11D5-8E83-0010B541CD80}")
Dim oContext As TranslationContext
oContext = ThisApplication.TransientObjects.CreateTranslationContext
Dim oOptions As NameValueMap
oOptions = ThisApplication.TransientObjects.CreateNameValueMap

If oSTEPTranslator.HasSaveCopyAsOptions(ThisApplication.ActiveDocument, oContext, oOptions) Then
    ' Set application protocol.
    ' 2 = AP 203 - Configuration Controlled Design
    ' 3 = AP 214 - Automotive Design
    oOptions.Value("ApplicationProtocolType") = 3
    ' Other options...
    'oOptions.Value("Author") = ""
    'oOptions.Value("Authorization") = ""
    'oOptions.Value("Description") = ""
    'oOptions.Value("Organization") = ""
    oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
    Dim oData As DataMedium
    oData = ThisApplication.TransientObjects.CreateDataMedium
    oData.FileName = filename_exp_ly
oSTEPTranslator.SaveCopyAs(ThisApplication.ActiveDocument, oContext, oOptions, oData)
End If

 

Thanks,

Richard

 

 

 

328 Views
0 Replies
Replies (0)