Inserts an OLE object from a file.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function InsertObjectFromFile( _
ByVal FilePath As String, _
ByVal CreateLink As Boolean, _
ByVal Aspect As Integer, _
ByVal XPos As Double, _
ByVal YPos As Double, _
ByVal ZPos As Double _
) As SwOLEObject |
Visual Basic (Usage) | |
---|
Dim instance As IModelDocExtension
Dim FilePath As String
Dim CreateLink As Boolean
Dim Aspect As Integer
Dim XPos As Double
Dim YPos As Double
Dim ZPos As Double
Dim value As SwOLEObject
value = instance.InsertObjectFromFile(FilePath, CreateLink, Aspect, XPos, YPos, ZPos)
|
Parameters
- FilePath
- Path and filename for the OLE object file
- CreateLink
True to create an external link to the OLE object file, false to embed the OLE object on the document
- Aspect
- Viewing aspect of the object as defined in the DVASPECT enumeration (see Remarks)
- XPos
- x coordinate for the OLE object
- YPos
y coordinate for the OLE object
- ZPos
- z coordinate for the OLE object
Return Value
Newly inserted
object
Remarks
See Also
Availability
SolidWorks 2006 FCS, Revision Number 14.0