Creates an OLE object on the active document.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function CreateOLEObject( _
ByVal Aspect As Integer, _
ByVal Position As Object, _
ByVal Buffer As Object, _
ByRef ErrorCode As Integer _
) As SwOLEObject |
Visual Basic (Usage) | |
---|
Dim instance As IModelDocExtension
Dim Aspect As Integer
Dim Position As Object
Dim Buffer As Object
Dim ErrorCode As Integer
Dim value As SwOLEObject
value = instance.CreateOLEObject(Aspect, Position, Buffer, ErrorCode)
|
Parameters
- Aspect
Viewing aspect of the OLE object as defined in the DVASPECT enumeration (see Remarks)
- Position
Top-left and bottom-right positions (see Remarks)
- Buffer
Data for the OLE object (see Remarks)
- ErrorCode
- 0 if True or 1 if false
Return Value
OLE object
Remarks
See Also
Availability
SolidWorks 2006 FCS, Revision Number 14.0