1 Reply Latest reply on Sep 13, 2016 11:00 AM by Patrick.Cashman

    Selecting Obstruct Objects



      I am new in developing automation in pcb env. using c# .Net

      I need to collect object of type obstruct.

      I am using the Pick function:

      robstructs = doc.Pick(minx, miny, maxx, maxy, EPCBObjectClassType.epcbObjectClassConductorLayerGFX);

      (Hoping that I selected the right EPCBObjectClassType enum value)

      When I'm looping the collection robstructs I need to check which of the objects are truly Obstrcut because I'm getting other types.

      I know that by asking if(robstruct.Type == 32) I can find the objects I need. But I want to know were this "32" coming from? Which Enum defines it?

      I suspect that maybe it's EPCBObjectClassType or EPCBOnNotifyType ???


      I would appreciate any help in that matter.