Skip to content

Commit 5a473ec

Browse files
authored
Create IPT_BOM Quantity To Each.iLogicVB
1 parent d2a1b20 commit 5a473ec

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy