Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
matt_jlt
391 Views, 2 Replies

iLogic Bug - Cannot change the BOM structure of an assembly

There seems to be a bug in iLogic in that it can't change the BOM structure in an assembly. It can read it but not modify it.

 

I have tried numerous methods of changing it. One example is below, the code below works perfectly in VBA but does not work in iLogic.

 

Public Sub AssyBOMTest()
   Dim oDoc As Document
   Set oDoc = ThisApplication.ActiveDocument
   Dim oCompDef As ComponentDefinition
   Set oCompDef = oDoc.ComponentDefinition
   oCompDef.BOMStructure = kPurchasedBOMStructure
End Sub

I came across this problem while trying to solve the issue for someone else but wanted to make a post addressing the issue directly.

https://forums.autodesk.com/t5/inventor-customization/microsoft-net-error/m-p/7465590/highlight/fals...

 

If anyone can help that would be great.

 

Thanks, Matt.