Creates an OLE object on the active document.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function CreateOLEObject( _
ByVal Aspect As System.Integer, _
ByVal Position As System.Object, _
ByVal Buffer As System.Object, _
ByRef ErrorCode As System.Integer _
) As SwOLEObject |
Visual Basic (Usage) | |
---|
Dim instance As IModelDocExtension
Dim Aspect As System.Integer
Dim Position As System.Object
Dim Buffer As System.Object
Dim ErrorCode As System.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