AssemblyComponentDefinition Object
Derived from: ComponentDefinition ObjectDescription
The AssemblyComponentDefinition object provides access to all of the assembly information of an assembly.Methods
Name | Description |
AdjustProxyContext | Returns the specified object proxy scoped into this assembly, trimming any portion of the context from any assembly in which this assembly is a subassembly. In other words, for the given object proxy, this method makes a new object proxy which has this component definition as the context definition. |
AnalyzeInterference | Method that analyzes the interference between two components. The input ObjectCollections contain the component occurrences that are to be checked for interference. If only one set is provided then interference checking is performed between all occurrences provided in the set. If two sets are provided then the overlap between the components of the two collections are calculated. |
ClearAppearanceOverrides | Clears the appearance overrides on the provided objects. The objects can include faces, features, work surfaces, surface bodies and occurrences. |
CreateFactory | Method that converts an assembly to an iAssemblyFactory. The newly created iAssemblyFactory object will have an empty excel spreadsheet. |
CreateGeometryIntent | Method that creates a GeometryIntent object. GeometryIntent objects are used as input when creating assembly joints. They are used to identify geometry and specific locations on that geometry. |
CreateVisibleOccurrenceFinder | Method that creates an occurrence finder object that allows you to find all occurrences that are visible or hidden by a defined amount. By default, visible is defined by a portion of the part being visible from any view of the part. Optionally you can specify a camera to limit the viewing angle and the extents. |
ExportObjects | Method that 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. |
GetEndOfFeaturesPosition | Gets the current end of Features position in the browser in an assembly. |
GetUnusedGeometries | Method that gets the unused sketches and work features. |
HideAllRelationships | Method that hides all of the assembly constraints, joints and iMate objects in the document. |
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. |
SetEndOfFeaturesToTopOrBottom | Sets the End of Part marker to the top or bottom of the browser. |
SetOccurrencesProperty | Method that process the property of a collection of occurrences. |
SuppressFeatures | Property that returns the SurfaceBodies collection. Surface bodies within the assembly is not currently supported by Inventor. The returned SurfaceBodies collection will be a collection of zero. |
TransformOccurrences | Method that transforms a collection of occurrences. |
UnsuppressFeatures | Method that unsuppresses previously suppressed features. |
Properties
Name | Description |
ActiveOccurrence | Property that returns the that is currently in edit. |
AppearanceOverridesObjects | Property that returns the objects that have appearance overrides in the active design view. The objects returned in the collection can include occurrences. |
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. |
AssemblyEvents | Property returning an AssemblyEvents collection object. |
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. |
BOM | Property that returns the BOM 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. |
Constraints | Property that returns the AssemblyConstraints collection object. |
DataIO | Gets the object that directly deals with I/O to and from a storage-medium, including Streams(IStream). |
DefaultVirtualComponentMaterial | Gets and sets the default material associated with the assembly component. This is the material that is used for newly created virtual components. |
Document | Property that returns the containing Document object. |
FactoryDocument | Read-only property that returns the model state factory document when IsModelStateMember returns True. |
Features | Gets the Features collection for this assembly (assembly features). |
iAssemblyFactory | Property that returns the iAssemblyFactory object. This property will return Nothing in the case where the assembly is not an iAssembly Factory. You can determine this by using the IsiAssemblyFactory property. |
iAssemblyMember | Property that returns the iAssemblyMember object. This property will return Nothing in the case where the assembly is not an iAssembly Member. You can determine this by using the IsiAssemblyMember property. |
iMateDefinitions | Property that returns the iMateDefinitions collection object associated with this assembly. |
iMateResults | Property that returns the iMateResults collection object associated with this assembly. |
ImportedComponents | Read-only property that returns the ImportedComponents collection object. |
IsiAssemblyFactory | Property that returns if the assembly is an iAssembly factory or not. It returns True in the case where the assembly is a factory. If True, the factory can be obtained using the iAssemblyFactory property. |
IsiAssemblyMember | Property that returns if the assembly is an iAssembly Member or not. It returns True in the case where the assembly is a member. If True, the member can be obtained using the iAssemblyMember 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. |
Joints | Read-only property that returns the AssemblyJoints collection object which provides access to the existing joints in the assembly and provides the capability to create new joints. |
MassProperties | Property that returns the MassProperties object. This supports performing mass properties calculations for the entire assembly. |
ModelAnnotations | Read-only property that returns the ModelAnnotations collection 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. |
ModelStates | Read-only property that returns the ModelStates object. |
OccurrencePatterns | Method that returns the pattern element this occurrence represents. |
Occurrences | Property that returns the collection object. |
OrientedMinimumRangeBox | Read-only property that returns the oriented minimum range box for this object. |
Parameters | Property that returns the parameters collection. |
Parent | Property that returns the parent of the 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. |
RepresentationsManager | Property that returns the RepresentationsManager object. |
RevitExports | Read-only property that returns the RevitExports collection object. |
SimulationManager | Read-only property that returns the SimulationManager object. This object provides access to the various simulation API’s. |
Sketches | Gets the Sketches collection for this assembly component. |
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 that encapsulates all of the work axes defined in this ComponentDefinition. |
WorkPlanes | Property that returns the WorkPlanes collection object that encapsulates all of the work planes defined in this ComponentDefinition. |
WorkPoints | Property that returns the WorkPoints collection object that encapsulates all of the work points defined in this ComponentDefinition. |
Accessed From
AngleConstraint.Parent, AngleConstraintProxy.Parent, AssemblyComponentDefinitions.Item, AssemblyConstraint.Parent, AssemblyConstraints.Parent, AssemblyDocument.ComponentDefinition, AssemblyJoint.Parent, AssemblyJointProxy.Parent, AssemblySymmetryConstraint.Parent, AssemblySymmetryConstraintProxy.Parent, CircularOccurrencePattern.Parent, CircularOccurrencePatternProxy.Parent, ComponentOccurrence.Parent, ComponentOccurrenceProxy.Parent, CustomConstraint.Parent, CustomConstraintProxy.Parent, FeatureBasedOccurrencePattern.Parent, FeatureBasedOccurrencePatternProxy.Parent, FlushConstraint.Parent, FlushConstraintProxy.Parent, iAssemblyFactory.Parent, iAssemblyMember.Parent, InsertConstraint.Parent, InsertConstraintProxy.Parent, LayoutConstraint.Parent, LayoutConstraintProxy.Parent, MateConstraint.Parent, MateConstraintProxy.Parent, OccurrencePattern.Parent, OccurrencePatterns.Parent, RectangularOccurrencePattern.Parent, RectangularOccurrencePatternProxy.Parent, RevitExport.Parent, RigidBodyResults.Parent, RotateRotateConstraint.Parent, RotateRotateConstraintProxy.Parent, RotateTranslateConstraint.Parent, RotateTranslateConstraintProxy.Parent, TangentConstraint.Parent, TangentConstraintProxy.Parent, TransitionalConstraint.Parent, TransitionalConstraintProxy.Parent, TranslateTranslateConstraint.Parent, TranslateTranslateConstraintProxy.ParentDerived Classes
WeldmentComponentDefinitionSamples
Name | Description |
Adding iAssembly occurrences | This sample demonstrates adding iAssembly occurrences to an assembly. |
Assembly Add Occurrence | This sample demonstrates placing an assembly occurrence. |
iMate Creation During Occurrence Placement | This sample demonstrates creating multiple iMate results when adding an occurrence into an assembly. This uses the AddUsingiMate method which is the equivalent of using the Place Component command and checking the Use iMate check box on the dialog. |
Add assembly insert constraint | This sample demonstrates the creation of an assembly insert constraint. |
Add assembly mate constraint | This sample demonstrates the creation of an assembly mate constraint. |
Add mate constraint using work planes in parts | This sample demonstrates creating a mate constraint between two occurrences using the work planes within those occurrences. |
Add mate constraint with limits | This sample demonstrates the creation of an assembly mate constraint with maximum and minimum limits defined. |
Assembly Ground Occurrences | This sample demonstrates grounding an assembly occurrence. |
Create assembly occurrence with representations | This sample demonstrates how to create an assembly occurrence by specifying various representations. |