Share

AssemblyDocument.ComponentDefinition Property

Parent Object: AssemblyDocument

Description

Property that returns the object associated with this assembly. For a standard assembly document, an AssemblyComponentDefinition object will be returned. For a weldment assembly, a Weldment object.

Syntax

AssemblyDocument.ComponentDefinition() As AssemblyComponentDefinition

Property Value

This is a read only property whose value is an AssemblyComponentDefinition.

Samples

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.
Traverse an Assembly This sample shows how to recursively traverse an assembly and get the count of leaf node components and subassemblies.
Exporting the assembly BOM This sample demonstrates exporting the Assembly BOM to an external file.
Client Graphics - Draw Range Box This sample demonstrates the use of client graphics to draw the range box of selected entities.
Create assembly occurrence with representations This sample demonstrates how to create an assembly occurrence by specifying various representations.

Version

Introduced in version 5

Was this information helpful?