1 Answers
A:
It’s totally possible to write a translator add-in for Inventor using VB.NET. The reason most samples are in VC++ is historical (and a bit of Autodesk inertia), but the Inventor API is fully accessible from .NET languages, including VB.NET.
Example Flow (VB.NET):
Dim translator As TranslatorAddIn = CType(app.ApplicationAddIns.ItemById("{GUID}"), TranslatorAddIn)
Dim context = app.TransientObjects.CreateTranslationContext()
Dim options = app.TransientObjects.CreateNameValueMap()
Dim dataMedium = app.TransientObjects.CreateDataMedium()
context.Type = IOMechanismEnum.kFileBrowseIOMechanism
dataMedium.FileName = "C:\ExportedFile.step"
If translator.HasSaveCopyAsOptions(doc, context, options) Then
translator.SaveCopyAs(doc, context, options, dataMedium)
End If
Autodesk Inventor
AutodeskHelp the community
Be the First to Answer these questions
Disclaimer
Techjockey’s software industry experts offer advice for educational and informational purposes only. A category or product query or issue posted, created, or compiled by Techjockey is not meant to replace your independent judgment.
20,000+ Software Listed
Best
Price Guaranteed
Free Expert
Consultation
2M+
Happy Customers