Skip to main content

ModelCenter APIs 2026 R1

Variant

Last update: 18.06.2026

public class Variant

This is a small class used to map win32 VARIANTs received by calls to ModelCenter's COM interface.

Author

Haisma, 2/2000

Constructors

Variant constructor(type: Int, value: Any)
******************************************* Constructor

Properties

Name Summary
BOOLEAN val BOOLEAN: Int = 5
BOOLEAN_ARRAY val BOOLEAN_ARRAY: Int = 11
DISPATCH val DISPATCH: Int = 13
DOUBLE val DOUBLE: Int = 1
DOUBLE_ARRAY val DOUBLE_ARRAY: Int = 7
INT val INT: Int = 2
INT_ARRAY val INT_ARRAY: Int = 8
LONG val LONG: Int = 3
LONG_ARRAY val LONG_ARRAY: Int = 9
REFERENCE val REFERENCE: Int = 6
STRING val STRING: Int = 4
STRING_ARRAY val STRING_ARRAY: Int = 10
UNKNOWN val UNKNOWN: Int = 0

Functions

Name Summary
booleanArrayValue public booleanArrayValue(): Array<Boolean>
booleanValue public booleanValue(): Boolean
doubleArrayValue public doubleArrayValue(): Array<Double>
doubleValue public doubleValue(): Double
getType public getType(): Int
getValue public getValue(): Any
intArrayValue public intArrayValue(): Array<Int>
intValue public intValue(): Int
longArrayValue public longArrayValue(): Array<Long>
longValue public longValue(): Long
stringArrayValue public stringArrayValue(): Array<String>
stringValue public stringValue(): String
toString public toString(): String

Connect with Ansys