Share

PartComponentDefinition Object

Derived from: ComponentDefinition Object

Description

The PartComponentDefinition object that provides access to the Part.

Methods

Name Description
ClearAppearanceOverrides Clears the appearance overrides on the provided objects. The objects can include faces, features, work surfaces, surface bodies and occurrences.
CreateFactory Converts a part to an iPart factory.
CreateGeometryIntent Method that creates a GeometryIntent object. GeometryIntent objects are used as input when creating annotations in the model. They are used to identify geometry and optionally specific locations on that geometry.
DeleteObjects Method that deletes a collection of objects that belong to the part.
ExportObjects Marks all the input objects as exported.
FindUsingPoint Method that finds all the entities of the specified type at the specified location.
FindUsingRay Method that fires a ray through the part or assembly and returns the entities intersected by the ray. The objects intersected by the ray are returned in the order in which they are intersected, with the first entities returned being those closest to the clipping plane.
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.
GetEndOfPartPosition Gets the current end of part position in the browser (in parts).
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.
SetEndOfPartToTopOrBottom Method that positions the end-of-part marker at the top or bottom of the browser.
SuppressFeatures Method that suppresses the specified features.
UnsuppressFeatures Method that unsuppresses the specified features.

Properties

Name Description
AnalysisManager Property that returns the AnalysisManager object.
AnnotationPlanes Read-only property that returns the AnnotationPlanes collection object. This object provides access to all of the annotation planes in the part.
AppearanceOverridesObjects Gets the objects that have appearance overrides in the active design view. The objects can include faces, features, work surfaces and surface bodies.
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.
BIMComponent Read-only property that returns the BIMComponent object associated with this component definition.
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.
CompactModelHistoryOnNextSave Gets/Sets the flag that decides whether the BRep's modifications through its history are saved explicitly in the next save or not (independent of CompactModelHistory setting).
DataIO Gets the object that directly deals with I/O to and from a storage-medium, including Streams(IStream).
Document Property that returns the containing Document object.
FactoryDocument Read-only property that returns the model state factory document when IsModelStateMember returns True.
Features Property that returns the PartFeatures collection object.
HasMultipleSolidBodies Determines whether the part contains multiple solid bodies or not.
iMateDefinitions Property that returns the iMateDefinitions collection object associated with this part.
iPartFactory Property that returns the iPartFactory object. This property will fail in the case where the part is not an iPart Factory. You can determine this by using the IsiPartFactory property.
iPartMember Property that returns the iPartMember object.
IsContentMember Property that indicates if this part is a Content Center part or not. A value of True indicates it is a Content Center part.
IsiPartFactory Property that returns if the part is an iPart Factory or not. It returns True in the case where the part is a factory. If True, the factory can be obtained using the iPartFactory property.
IsiPartMember Property that returns the iPartMember object. This property will fail in the case where the part is not an iPart Member. You can determine this by using the IsiPartMember property.
IsModelStateFactory Read-only property that returns whether the document is a model state factory document or not.
IsModelStateMember Read-only property that returns whether the document is a model state member document or not.
MassProperties Mass properties for this ComponentDefinition.
MeshFeatureSets Read-only property that returns the MeshFeatureSets collection object.
ModelAnnotations Read-only property that returns the ModelAnnotations collection object. This object provides access to all of the model annotations in the part.
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.
ModelStates Read-only property that returns the ModelStates object.
ModelToleranceFeatures Returns the ModelToleranceFeatures collection object. This object provides access to all of the model annotations in the part.
Occurrences Property that returns the collection object.
OrientedMinimumRangeBox Read-only property that returns the oriented minimum range box for this object.
Parameters Gets the Parameters collection object that encapsulates all of the parameters defined in this ComponentDefinition.
PartEvents Property that returns the PartEvents source object.
PointClouds Gets the PointClouds collection object that encapsulates all of the point clouds defined in this Component Definition.
PreciseRangeBox Gets a bounding box that tightly encloses all the solid and surface bodies under the ComponentDefinition.
RangeBox Property that returns a Box object which contains the opposing points of a rectangular box that is guaranteed to enclose this object.
ReferenceComponents Property that returns the ReferenceComponents collection object.
RepresentationsManager Read-only property that returns the RepresentationsManager object.
RolledBackForEdit Property that gets whether the model is currently rolled back to a previous point in the feature history.
SketchBlockDefinitions Property that returns the SketchBlockDefinitions collection object.
Sketches Gets the PlanarSketches collection object that encapsulates all of the planar sketches defined in this ComponentDefinition.
Sketches3D Property that returns the Sketches3D collection object that encapsulates all of the 3D sketches defined in this ComponentDefinition.
SurfaceBodies Property that returns all of the result SurfaceBody objects contained within this ComponentDefinition.
Type Returns an ObjectTypeEnum indicating this object's type.
UserCoordinateSystems Property that returns the UserCoordinateSystems collection object.
WorkAxes Property that returns the WorkAxes collection object.
WorkPlanes Property that returns the WorkPlanes collection object.
WorkPoints Property that returns the WorkPoints collection object.
WorkSurfaces Property that returns the collection object that encapsulates all of the work surfaces defined in this PartComponentDefinition.

Accessed From

PartComponentDefinitions.Item, PartDocument.ComponentDefinition

Derived Classes

SheetMetalComponentDefinition

Samples

Name Description
Adding iPart occurrences to an assembly This sample demonstrates adding iPart occurrences to an assembly.
Delete Face, Boundary Patch and Stitch features Demonstrates creating Face, Boundary Patch and Stitch features.
Navigation between browser and data This sample demonstrates the navigation between a browser node and it's corresponding data model object and vice versa. This sample creates a work plane, finds its browser node and gets the work plane object back from the browser node.
Replace content center part This sample demonstrates how to replace the content part referenced by an assembly occurrence.
Copy a sketch This sample demonstrates copying the contents of a sketch into another sketch via the API.
Creating a new parameter group This sample demonstrates the creation of model, reference and user parameters and copying these parameters to a newly created group.
Add a decal feature This sample demonstrates the creation of a decal feature.
Derived Parts and Assemblies This sample demonstrates the use of the API to create derived parts and assemblies.
Selectively link paramaters This sample demonstrates the selective linking of parameters from another Inventor file.
Display feature information Displays information about all of the extrude features in the active document. A part document must be active when this is run.
Hole Feature - Through holes (RegularAndTapped) This sample demonstrates the creation of through holes, both regular and tapped.
Create and Edit an Extrude Feature with a pocket This sample demonstrates how to edit an extrude feature. It shows how to create a sketch plane at a specified orientation to existing geometry.
Sketch from Face Silhouette This sample creates a cylindrical solid, creates a new sketch plane and creates some new sketch lines from the actual edges and the apparent (silhouette) edges of the cylinder.
Sketch Add This sample demonstrates the creation of a sketch using the Sketches.Add method.
Create sheet metal face and cut features This sample demonstrates the creation of sheet metal face and cut features.

Version

Introduced in version 4

Was this information helpful?