Packs the specified native SOLIDWORKS Dispatch-based objects of the same data type into a Variant SafeArray and returns that packed Variant SafeArray to use in methods requiring passing a packed Variant SafeArray.
.NET Syntax
Visual Basic (Declaration) | |
---|
Sub PackVariant( _
ByRef VariantArray As System.Object, _
ByVal Count As System.Integer, _
ByVal Type As System.Integer, _
ByRef Data As System.Integer _
) |
Visual Basic (Usage) | |
---|
Dim instance As ISafeArrayUtility
Dim VariantArray As System.Object
Dim Count As System.Integer
Dim Type As System.Integer
Dim Data As System.Integer
instance.PackVariant(VariantArray, Count, Type, Data) |
Parameters
- VariantArray
- Packed Variant SafeArray
- Count
- Number of native SOLIDWORKS Dispatch-based objects of Type
- Type
- Data type as defined in swSafeArrayType_e
- Data
- Native SOLIDWORKS Dispatch-based objects of Type
Example
See Also
Availability
SOLIDWORKS 2015 FCS, Revision Number 23.0