AutoCAD.TypedValue
Description
An element of a AutoCAD.TypedValueArray.
This class holds data found in a single resbuf element.
When converting a resbuf
to a TypedValue, FlexSim stores the original restype
value in the type property.
FlexSim then attempts to convert the original
resval
value to a Variant. If the value cannot be converted, the following
occurs:
- The value property is set to null.
- The isOpaque property is set to True (1).
- The original data is stored internally.
Properties
isOpaque | True (1) if the data could not be converted to a Variant value, False (0) otherwise. |
type | Returns the type of the element. |
value | Returns the value of the element. For opaque elements, this property returns null. |
Methods
set | Sets the type and value of the element. |
Constructor
AutoCAD.TypedValue | Creates a new element. |
Details
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.TypedValue.isOpaque
readonly int isOpaque
Description
True (1) if the data could not be converted to a Variant value, False (0) otherwise.
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.TypedValue.value
readonly Variant value
Description
Returns the value of the element. For opaque elements, this property returns null.
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.TypedValue.set()
set( int type , Variant value ) |
Parameters
type | The new type of the element. |
value | The new value of the element. |
Description
Sets the type and value of the element.
Calling this method overwrites the original data, even if the data was opaque. It is up to the user to specify the correct type and value combination.Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.TypedValue Constructor
AutoCAD.TypedValue( int type , Variant value ) |
Parameters
type | The type of the new element. |
value | The value of the new element. |
Description
Creates a new element.
It is up to the user to specify the correct type and value combination.