Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Sigh, I feel like this should have been EASY easy, like basic level coding even in a beginner's sense. But here i am, Im trying to get iLogic to change the default bom structure field in the document settings window on an IPT. this is what i have, the 'purchasedComponent' field changes just fine, the BOM structure does nothing at all, no error, no change, nothin'... this is what i have
SyntaxEditor Code Snippet
Try If purchasedComponent = True Then iProperties.Value("Custom", "purchasedComponent") = "P" ThisDoc.Document.ComponentDefinition.BOMStructure = BOMStructureEnum.kPurchasedBOMStructure Else If purchasedComponent = False iProperties.Value("Custom", "purchasedComponent") = "M" ThisDoc.Document.ComponentDefinition.BOMStructure = BOMStructureEnum.kNormalBOMStructure End If Catch End Try
Solved! Go to Solution.