Use Variants for Array Data

AutoCAD ActiveX

 
Use Variants for Array Data
 
 
 

Variants are used to pass array data in and out of AutoCAD ActiveX Automation. This means that your array must be a variant to be accepted by AutoCAD ActiveX Automation methods and properties. In addition, array data output from AutoCAD ActiveX Automation must be handled as a variant.

NoteIn AutoCAD, VBA input arrays are automatically converted to variants. This means that you don't have to provide a variant array as input to the ActiveX Automation methods and properties when using them from VBA. However, all the output arrays will be in the form of variants, so remember to handle them appropriately.