Hi, I have added measurement sensor. to a part and are trying to get the value from it in a macro.
But when running the macro I get a returnvalue that not exists in the documentation, code: Debug.Print swSensor.SensorType --> 4
The return value should be 2 according to the documentation. Anyone experiencing the same?, I am running SW2013sp2
I am afraid that you cannot access sensor values via the API due to SPR 625890:
Need to add new member to swSensorType_e for measurement type sensors (ISensor::SensorType returns an undocumented value of 4)
Retrieving data ...