Class SmartReal
Represents a smart real value.
Inherited Members
Namespace: TopSolid.Kernel.Automating
Assembly: cs.temp.dll.dll
Syntax
[AvailableSinceVersion(7, 6, 0, 0)]
public class SmartReal : SmartObject
Remarks
This class is available since v7.6.
Constructors
SmartReal(ElementId)
Declaration
public SmartReal(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of providing element. |
SmartReal(ElementId, ItemLabel)
Declaration
public SmartReal(ElementId inElementId, ItemLabel inItemLabel)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of providing element. |
ItemLabel | inItemLabel | Label of providing element item. |
SmartReal(SmartRealType, UnitType, String, Nullable<Double>, ElementId, ItemLabel, String)
Initializes a new instance of the SmartReal class.
Declaration
public SmartReal(SmartRealType inType, UnitType inUnitType, string inUnitSymbol, double? inValue, ElementId inElementId, ItemLabel inItemLabel, string inFormula)
Parameters
Type | Name | Description |
---|---|---|
SmartRealType | inType | Type of smart real. |
UnitType | inUnitType | Type of units, or None if unknown. |
System.String | inUnitSymbol | Unit symbol in English, or null if unknown. |
System.Nullable<System.Double> | inValue | Value in SI units, or null if unknown. |
ElementId | inElementId | Identifier of providing element, or Empty for none. |
ItemLabel | inItemLabel | Label of providing element item, or Empty for none. |
System.String | inFormula | Formula, or null for none. |
SmartReal(SmartRealType, UnitType, String, Nullable<Double>, ElementId, ItemLabel, String, ScriptType)
Initializes a new instance of the SmartReal class.
Declaration
public SmartReal(SmartRealType inType, UnitType inUnitType, string inUnitSymbol, double? inValue, ElementId inElementId, ItemLabel inItemLabel, string inFormula, ScriptType inScriptType)
Parameters
Type | Name | Description |
---|---|---|
SmartRealType | inType | Type of smart real. |
UnitType | inUnitType | Type of units, or None if unknown. |
System.String | inUnitSymbol | Unit symbol in English, or null if unknown. |
System.Nullable<System.Double> | inValue | Value in SI units, or null if unknown. |
ElementId | inElementId | Identifier of providing element, or Empty for none. |
ItemLabel | inItemLabel | Label of providing element item, or Empty for none. |
System.String | inFormula | Formula, or null for none. |
ScriptType | inScriptType | Type of script. |
SmartReal(UnitType, Double)
Declaration
public SmartReal(UnitType inUnitType, double inValue)
Parameters
Type | Name | Description |
---|---|---|
UnitType | inUnitType | Type of units. |
System.Double | inValue | Value in SI units. |
SmartReal(UnitType, Double, String)
Declaration
public SmartReal(UnitType inUnitType, double inValue, string inTolerance)
Parameters
Type | Name | Description |
---|---|---|
UnitType | inUnitType | Type of units. |
System.Double | inValue | Value in SI units. |
System.String | inTolerance | Tolerance. |
SmartReal(UnitType, String)
Declaration
public SmartReal(UnitType inUnitType, string inFormula)
Parameters
Type | Name | Description |
---|---|---|
UnitType | inUnitType | Type of units. |
System.String | inFormula | Formula. |
SmartReal(UnitType, String, String)
Declaration
public SmartReal(UnitType inUnitType, string inFormula, string inTolerance)
Parameters
Type | Name | Description |
---|---|---|
UnitType | inUnitType | Type of units. |
System.String | inFormula | Formula. |
System.String | inTolerance | Tolerance. |
SmartReal(UnitType, String, String, ScriptType)
Declaration
public SmartReal(UnitType inUnitType, string inFormula, string inTolerance, ScriptType inScriptType)
Parameters
Type | Name | Description |
---|---|---|
UnitType | inUnitType | Type of units. |
System.String | inFormula | Formula. |
System.String | inTolerance | Tolerance. |
ScriptType | inScriptType | Type of script. |
SmartReal(UnitType, String, ScriptType)
Declaration
public SmartReal(UnitType inUnitType, string inFormula, ScriptType inScriptType)
Parameters
Type | Name | Description |
---|---|---|
UnitType | inUnitType | Type of units. |
System.String | inFormula | Formula. |
ScriptType | inScriptType | Type of script. |
Fields
ElementId
Providing element identifier, or empty if none.
Declaration
public ElementId ElementId
Field Value
Type | Description |
---|---|
ElementId |
Formula
Formula, or null if none.
Declaration
public string Formula
Field Value
Type | Description |
---|---|
System.String |
ItemLabel
Providing element item label, or empty if none.
Declaration
public ItemLabel ItemLabel
Field Value
Type | Description |
---|---|
ItemLabel |
ScriptType
Type of script.
Declaration
public ScriptType ScriptType
Field Value
Type | Description |
---|---|
ScriptType |
Tolerance
Tolerance, or null if none.
Declaration
public string Tolerance
Field Value
Type | Description |
---|---|
System.String |
Type
Type of smart real.
Declaration
public SmartRealType Type
Field Value
Type | Description |
---|---|
SmartRealType |
UnitSymbol
Unit symbol in English, or null if unknown.
Declaration
public string UnitSymbol
Field Value
Type | Description |
---|---|
System.String |
UnitType
Unit type, or None if unknown.
Declaration
public UnitType UnitType
Field Value
Type | Description |
---|---|
UnitType |
Value
Value in SI units, or null if unknown.
Declaration
public double? Value
Field Value
Type | Description |
---|---|
System.Nullable<System.Double> |