Creates an OLE object on the active document.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function ICreateOLEObject( _
ByVal Aspect As Integer, _
ByRef Position As Double, _
ByVal ByteCount As Integer, _
ByRef Buffer As Byte, _
ByRef ErrorCode As Integer _
) As SwOLEObject |
Visual Basic (Usage) | |
---|
Dim instance As IModelDocExtension
Dim Aspect As Integer
Dim Position As Double
Dim ByteCount As Integer
Dim Buffer As Byte
Dim ErrorCode As Integer
Dim value As SwOLEObject
value = instance.ICreateOLEObject(Aspect, Position, ByteCount, 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)
- ByteCount
- Number of bytes
- 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