Get PropID through Sensor Conveyor

Hey there!

How can i read the PropID of a moving part on a sensor conveyor in Python?

Example: I want to pick glass in multiple formats off a conveyor line with multiple robots. But Robot 1 should only pick Glass with the ID 111 and let the other parts through. I want to implement an if-statement to solve it, but I’m lacking the knowledge on how to get the PropID.

Thanks for the help!

BR Dubsepp

For anyone having the same issue:

i figured it out:

  • first of all you have to use proper spelling and call it "ProdID" ;)
  • part = sensor_signal.Value
  • ID = part.getProperty("ProdID") or any other Property

I meet the issue .
if you can provide a demo document for example?

thanks advance!