The FilterType parameter is a 16 bit signed integer, which
means you use Int16[] or short[].
The FilterData is an object[]
Regarding data types, there's no such thing as
a "COM Integer".
The VB6 'Integer' type is a 16 bit signed integer,
and the VB6 'Long' type is 32 bit signed integer.
In COM, signed integer types include VT_I1, VT_I2,
and VT_I4. Multiply the numeric element by 8 for the
number of bits.
The corresponding CLR types are Byte, Int16 and
Int32, which also coorespond to the C# byte, short,
and int types.
Soooooo:
VB6 CLR C#
---------------------------------------
Long Int32 int
Integer Int16 short
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
wrote in message news:5119184@discussion.autodesk.com...
Hello,
I'm using ActiveX methods from. NET:
SelectOnScreen [FilterType][, FilterData] and
Select Mode[, Point1][, Point2][, FilterType][, FilterData].
In ActiveX/VBA FilterType is int, FilterData is variant (array).
But what are the right/exact argument types when calling these methods from C#? In AutoCAD.dll assembly it is shown as object, but
it is a runtime error when using Object, Object[], int[], AcadObject etc.
I just want to select objects based on multipl. selection filters.