1 Reply Latest reply on Aug 30, 2013 3:53 AM by Simon Turner

    swSensorType return value = 4?

    Jakob Brusewitz

      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

      http://help.solidworks.com/2013/English/api/swconst/SolidWorks.Interop.swconst~SolidWorks.Interop.swconst.swSensorType_e.html

       

      swSensorDimension2
      swSensorInterfaceDetection3
      swSensorMassProperty1
      swSensorProximity5
      swSensorSimulation0

       

       

      / Jakob