Adds the specified component for the specified configuration options to this assembly.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IAssemblyDoc
Dim CompName As System.String
Dim ConfigOption As System.Integer
Dim NewConfigName As System.String
Dim UseConfigForPartReferences As System.Boolean
Dim ExistingConfigName As System.String
Dim X As System.Double
Dim Y As System.Double
Dim Z As System.Double
Dim value As Component2
value = instance.AddComponent5(CompName, ConfigOption, NewConfigName, UseConfigForPartReferences, ExistingConfigName, X, Y, Z) |
Parameters
- CompName
- Path name of a pre-loaded part or assembly to add as a component (see Remarks)
- ConfigOption
Mode in which to open the document as specified in swAddComponentConfigOptions_e
- NewConfigName
- Name for the new assembly configuration; valid only if ConfigOption = swAddComponentConfigOptions_e.swAddComponentConfigOptions_NewConfigWithAllReferenceModels or swAddComponentConfigOptions_e.swAddComponentConfigOptions_NewConfigWithAsmStructure
- UseConfigForPartReferences
- If true, the configuration specified in ExistingConfigName is used
- ExistingConfigName
Name of the configuration of the loaded component; valid only if UseConfigForPartReferences = true
- X
- X coordinate of the component center
- Y
- Y coordinate of the component center
- Z
- Z coordinate of the component center
Return Value
IComponent2
Example
Remarks
See Also
Availability
SOLIDWORKS 2010 FCS, Revision Number 18.0