Message 1 of 6
Getting iAssembly Name using Inventor API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone,
I'm trying to export BOM using iLogic, but when it comes to iAssemblies, it exports the QTY's for all the iAssembly members. I'm trying to define the BOMView iAssembly member like so:
Dim oDocument As AssemblyDocument = ThisApplication.ActiveDocument
Logger.Trace(oDocument.ComponentDefinition.iAssemblyMember.Row.MemberName)
Dim oBOMView As BOMView = oDocument.ComponentDefinition.BOM.BOMViews.Item("Structured")
If Not oDocument.ComponentDefinition.iAssemblyMember Is Nothing Then oBOMView.iAssemblyMemberName= oDocument.ComponentDefinition.iAssemblyMember.Row.MemberName
oBOMView.Export("C:\Users\Ilyas\Desktop\test.xlsx", kMicrosoftExcelFormat)
But I'm not able to get the iAssembly name. Does anyone know the trick?
Regards
Ilyas