Virtual Component <IvVirtualComponent>

Synopsis

Used to create a Virtual Component within an Inventor assembly.

Mixins

IvCommonOccurrenceMixin

IvComponentMixin

IvAssemblyChildMixin

Parameters

Name Type Description
occurrenceName string (From IvCommonOccurrenceMixin) Can be used to specify the occurrence name to use (in Inventor) for the component within its parent assembly. Defaults to a string representing the relative reference chain of the part from its containing assembly part .
bomStructure name (From IvCommonOccurrenceMixin) Defines how the component (within an assembly) viewed and used in the BOM. Available choices are: :Default :Reference
DefaultBOMStructure name Defines how the component is used and viewed in the BOM. Available choices are: :Normal (this is the default) :Inseparable :Purchased :Phantom :Reference
BOMBaseQuantity string Sets the base quantity for the component. This is either the value "Each", or can be a legal units expression, e.g., "1in".
BOMBaseUnits string Sets the true unit that the component is quantified in. It can be a measure of length, volume, or mass. This is only used when something other than "Each" is specified in BOMBaseQuantity. Must be a valid Inventor units string .
PartNumber string Sets the Part Number property. Defaults to the value from the {"Part number", "PN"} sublist in the iProperty rule. The part number is set only on signature generation time of the document. It is not possible to have 2 member files that differ only by their Part Numbers . The existing assembly documents will not have their part numbers updated.

Methods

GetNewPartNumber( docHandle As String ) As String
Used to return the value of the Part Number . May be overridden in user code. The default implementation returns the value from the {"Part number", "PN"} sublist in the iProperty rule. If no value exists, the occurrence display name is returned.