AnsweredAssumed Answered

Get selected component in macro

Question asked by michalstadnik on Jul 28, 2017



Does anybody know how to get selected components through macro in PADS layout?


The code below works but only as a script. In macro I get an error.

Dim comps

Set comps =  Application.ActiveDocument.GetObjects(ppcbObjectTypeComponent,,True)


Only solution I found is to list each component and check if Componet.Selected property is true. But this method takes time....