Inserts an OLE object from a file.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function InsertObjectFromFile( _
ByVal FilePath As System.String, _
ByVal CreateLink As System.Boolean, _
ByVal Aspect As System.Integer, _
ByVal XPos As System.Double, _
ByVal YPos As System.Double, _
ByVal ZPos As System.Double _
) As SwOLEObject |
Visual Basic (Usage) | |
---|
Dim instance As IModelDocExtension
Dim FilePath As System.String
Dim CreateLink As System.Boolean
Dim Aspect As System.Integer
Dim XPos As System.Double
Dim YPos As System.Double
Dim ZPos As System.Double
Dim value As SwOLEObject
value = instance.InsertObjectFromFile(FilePath, CreateLink, Aspect, XPos, YPos, ZPos) |
C++/CLI | |
---|
SwOLEObject^ InsertObjectFromFile(
& System.String^ FilePath,
& System.bool CreateLink,
& System.int Aspect,
& System.double XPos,
& System.double YPos,
& System.double 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