ComponentOccurrences.Add Method
Parent Object:
ComponentOccurrences
Description
Method that creates a new for an existing part or subassembly. This method is the equivalent of the 'Place Component' command.
Syntax
ComponentOccurrences.
Add(
FullDocumentName As String,
Position As
Matrix ) As
ComponentOccurrence
Parameters
FullDocumentName |
String |
Input string that specifies the full document name of the part or the sub-assembly. If only the FullFileName is specified, the master document within the file is used. |
Position |
Matrix |
Input object that defines the location and orientation to position the occurrence. |
Samples
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. |
iMate Result Creation |
This sample demonstrates creating an iMate result using two existin iMate definitions. |
Place Content Center Parts |
Places all of the items in a specified family within an assembly. The specific family is identified by the strings where it's setting the HexHeadNode variable. |
Version
Introduced in version 4