Define part as "Purchased" using ilogic

Define part as "Purchased" using ilogic

MCCJohnPetty
Enthusiast Enthusiast
319 Views
1 Reply
Message 1 of 2

Define part as "Purchased" using ilogic

MCCJohnPetty
Enthusiast
Enthusiast

Is there a way, using ilogic, that I can define a part as "purchased" (i.e. Document settings/Default BOM Structure)

0 Likes
Accepted solutions (1)
320 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor
Accepted solution

Sure.  Here you go:

Dim oPDoc As PartDocument = ThisDoc.Document
oPDoc.ComponentDefinition.BOMStructure = BOMStructureEnum.kPurchasedBOMStructure

Wesley Crihfield

EESignature

(Not an Autodesk Employee)