Issue #36 resolved

Cannot change properties of multiple pads in footprint design

Guan Yang
created an issue
  1. Select a bunch of pads.
  2. In Properties, click height
  3. Type .28

I get the crash attached.

Comments (6)

  1. Guan Yang reporter

    Ooh, scripting.

    Suppose I need to rename my pads 1, 2, 3, 4. What's the easiest way to do this? I couldn't find a way to access the individual items. There’s s.items, but when I select 16 objects, len(s.items) returns 25, so I don't think that's right.

  2. Razen repo owner
    for i in range(len(s)): s[i].name = "%d" % (i+1)
    

    But that will probably give pads ordered physically differently from numerically.

    You could also create the pads from the script:

    for i in range(4): p.pad((6000,1000*i), 1000, 400, "rectangle").name = "%d" % (i+1)
    
  3. Log in to comment