We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2a1b20 commit 5a473ecCopy full SHA for 5a473ec
Scripts/IPT_BOM Quantity To Each.iLogicVB
@@ -0,0 +1,17 @@
1
+' Notes:
2
+' This rule changes the BOM Qty Type to Each.
3
+
4
+ ' Check active document type
5
+If ThisApplication.ActiveDocumentType <> DocumentTypeEnum.kPartDocumentObject Then
6
+ MessageBox.Show ("The active document is not a Part Document","Document Type Incorrect")
7
+ Exit Sub
8
+End If
9
10
+ ' Get document
11
+Dim oDoc As PartDocument = ThisDoc.Document
12
13
+' Access component definition
14
+Dim oCompDef As ComponentDefinition = oDoc.ComponentDefinition
15
16
+' Change Qty Type to BOM
17
+oCompDef.BOMQuantity.SetBaseQuantity(BOMQuantityTypeEnum.kEachBOMQuantity)
0 commit comments