Solid Edge Framework Type Library
AddVariableSensor Method
Specifies the Variable object that the sensor will monitor.
Specifies the name of the sensor.
Contains a description for the sensor.
Specifies the lower value of the sensor's range, providing a mechanism for controlling the sensitivity of the sensor.
Specifies the upper value of the sensor's range.
Specifies the minimum value of the threshold for the sensor.
Specifies the maximum value of the threshold for the sensor.
Specifies the mathematical operator to be used for testing the sensor value against the threshold value. Valid values are members of the SensorOperatorConstants constant set.
Specifies the type of sensor display to use, either range type or true/false. Valid values are members of the SensorDisplayTypeConstants constant set.
Specifies whether the sensor is to update manually or automatically. Valid values are members of the SensorUpdateMechanismConstants constant set.
Description
Adds a variable sensor to the sensors collection.
Syntax
Visual Basic
Public Function AddVariableSensor( _
   ByVal variable As Object, _
   ByVal Name As String, _
   ByVal Description As String, _
   ByVal LowerRange As Double, _
   ByVal UpperRange As Double, _
   ByVal MinimumThreshold As Double, _
   ByVal MaximumThreshold As Double, _
   ByVal Operator As SensorOperatorConstants, _
   ByVal DisplayType As SensorDisplayTypeConstants, _
   ByVal UpdateMechanism As SensorUpdateMechanismConstants _
) As Object
Parameters
variable
Specifies the Variable object that the sensor will monitor.
Name
Specifies the name of the sensor.
Description
Contains a description for the sensor.
LowerRange
Specifies the lower value of the sensor's range, providing a mechanism for controlling the sensitivity of the sensor.
UpperRange
Specifies the upper value of the sensor's range.
MinimumThreshold
Specifies the minimum value of the threshold for the sensor.
MaximumThreshold
Specifies the maximum value of the threshold for the sensor.
Operator
ValueDescription
seSensorOperatorBetweenSensor operator - between
seSensorOperatorEqualToSensor operator - equal to
seSensorOperatorGreaterThanSensor operator - greater than
seSensorOperatorInvalidInvalid sensor operator
seSensorOperatorLessThanSensor operator - less than
seSensorOperatorNotBetweenSensor operator - not between
seSensorOperatorNotEqualToSensor operator - not equal to
Specifies the mathematical operator to be used for testing the sensor value against the threshold value. Valid values are members of the SensorOperatorConstants constant set.
DisplayType
ValueDescription
seSensorDisplayTypeHorizontalRangeSensor display - horizontal range
seSensorDisplayTypeInvalidInvalid sensor display
seSensorDisplayTypeTrueFalseSensor display - true/false
Specifies the type of sensor display to use, either range type or true/false. Valid values are members of the SensorDisplayTypeConstants constant set.
UpdateMechanism
ValueDescription
seSensorUpdateMechanismAutomaticAutomatic sensor update
seSensorUpdateMechanismInvalidInvalid sensor update mechanism
seSensorUpdateMechanismManualManual sensor update
Specifies whether the sensor is to update manually or automatically. Valid values are members of the SensorUpdateMechanismConstants constant set.
See Also

Sensors Collection  | Sensors Members

Send comments on this topic.