1 Reply Latest reply on Oct 24, 2018 4:25 AM by matthias.cosaert

    Update a Plane shape

    etib@rafael.co.il

      Hello all,

      I create a Plane shape and try to update his Obstruct Type :

       

      PlaneShape p =pcbDoc.PutPlaneShape(1,arrPnts.Length /3 ,arrPnts,null,false,EPcbHatchTypeDefault,0,0,null,EPcbUnit.epcbUnitMM);

      p.ObstructType=EPcbObstructType.epcbObstructTraceVia;

       

      When many times throw an exception from the command

      p.ObstructType=EPcbObstructType.epcbObstructTraceVia

       

      I would appreciate any help in that matter.

      Thanks

      E.Bilgoray

        • 1. Re: Update a Plane shape
          matthias.cosaert

          Hello,
          Is the exception an DRC error? If so you can do the changes without online DRC checks using transactionstart and transactionend.

           

          Here is an example in vbscript:

           

          pcbDoc.transactionstart(epcbDRCModeNone)

          For each planeShape in pcbDoc.planeshapes(epcbselectall)

               planeShape.ObstructType = epcbObstructTraceVia

          next

          pcbDoc.TransactionEnd