Share

VirtualComponentDefinition Object

Derived from: ComponentDefinition Object

Description

This object derives from the ComponentDefinition object. It represents a ComponentDefinition that exists solely for the BOM.

Methods

Name Description
FindUsingPoint Method that finds all the entities of the specified type at the specified location.
FindUsingVector Method that finds all the entities of the specified type along the specified vector using either a cylinder or cone that to define the tolerance within the defined vector.
GetUnusedGeometries Method that gets the unused sketches and work features.
PurgeUnusedGeometries Method that purges unused sketches and work features.
RepositionObject Method that repositions the specifies object(s) to the new position within the collection of the object in the document.

Properties

Name Description
ActiveMaterial Gets and sets the material for the VirtualComponentDefinition.
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
AttributeSets Property that returns the AttributeSets collection object associated with this object.
BOMQuantity Property that returns the BOMQuantity object.
BOMStructure Gets and sets how the component is used/viewed in a BOM.
ClientGraphicsCollection Property that returns the ClientGraphicsCollection object.
DataIO Gets the object that directly deals with I/O to and from a storage-medium, including Streams(IStream).
DisplayName Gets and sets the name of the virtual component.
Document Property that returns the containing Document object.
ModelGeometryVersion Property that returns a string that can be used to determine if the document has been modified. This version string is changed every time the assembly is modified. By saving a previous version string, you can compare the current version string to see if the assembly has been modified.
Occurrences Property that returns the collection object.
OrientedMinimumRangeBox Read-only property that returns the oriented minimum range box for this object.
PreciseRangeBox Gets a bounding box that tightly encloses all the solid and surface bodies under the ComponentDefinition.
PropertySets Property that gets the PropertySets object associated with the virtual component.
RangeBox Property that returns a Box object which contains the opposing points of a rectangular box that is guaranteed to enclose this object.
SurfaceBodies Property that returns all of the result SurfaceBody objects contained within this ComponentDefinition.
Type Returns an ObjectTypeEnum indicating this object's type.

Samples

Name Description
Using the BOM APIs This sample demonstrates the Bill of Materials API functionality in assemblies.

Version

Introduced in version 10

Was this information helpful?