Inserts a third-party native CAD part or assembly into the current configuration of this assembly.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function InsertImportedComponent( _
ByVal FileName As System.String, _
ByVal X As System.Double, _
ByVal Y As System.Double, _
ByVal Z As System.Double, _
ByRef CompInserted As System.Object _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As IAssemblyDoc
Dim FileName As System.String
Dim X As System.Double
Dim Y As System.Double
Dim Z As System.Double
Dim CompInserted As System.Object
Dim value As System.Integer
value = instance.InsertImportedComponent(FileName, X, Y, Z, CompInserted) |
C# | |
---|
System.int InsertImportedComponent(
System.string FileName,
System.double X,
System.double Y,
System.double Z,
out System.object CompInserted
) |
C++/CLI | |
---|
System.int InsertImportedComponent(
& System.String^ FileName,
& System.double X,
& System.double Y,
& System.double Z,
& [Out] System.Object^ CompInserted
) |
Parameters
- FileName
- Full path name of the third-party native CAD file to insert
- X
- X-coordinate of the component center
- Y
- Y-coordinate of the component center
- Z
- Z-coordinate of the component center
- CompInserted
- IComponent2; null or Nothing if unsuccessful
Return Value
Error code as defined in
sw3DInterconnectImportErrors_e
Remarks
See Also
Availability
SOLIDWORKS 2020 FCS, Revision Number 28.0