1 Reply Latest reply on Jul 19, 2016 8:25 AM by Taus Moller

    Retrieving measurment sensor data using SolidWorks API

    Ramunas Zebarauskas

      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!