AnsweredAssumed Answered

Retrieving measurment sensor data using SolidWorks API

Question asked by Ramunas Zebarauskas on Jun 3, 2016
Latest reply on Jul 19, 2016 by Taus Moller

I have created a simple sensor of measurment type.

Now I try to retrieve sensor data using SolidWorks API.

  1. First of all trying to get sensor type from sensor object Sensor.SensorType it returns 4, and there
    is no such definition in swSensorType_e enumeration. So what number 4 stands for?
  2. Sensor.GetSensorFeatureData() returns an object, but trying to cast it to DimensionSensorData
    returns null. So to what object type I should cast the object returned by Sensor.GetSensorFeatureData() in
    order to get sensor data?



Thanks a lot for any help!