tlantela / KiCAD_layout_cloner

A python script to clone a part of a layout in Pcbnew. I do not really maintain the code or monitor this repository actively but if you improve the script, feel free to send a pull request so others can also benefit.
MIT License
35 stars 17 forks source link

Problem with ground plane #1

Open smooker opened 8 years ago

smooker commented 8 years ago

Iterating through all the pads for each cloned zone, might take a few seconds... Original zone location (243110000, 148500000) ###bottom right of the ground planes areas Traceback (most recent call last): File "./layout_cloner.py", line 110, in if templateRect.Contains(zone.GetPosition()) and zone.GetLayer() is not 41: #If the zone is inside the area to be cloned (the comment zone) and it is not the comment zone (layer 41) NameError: name 'templateRect' is not defined

mihnen commented 7 years ago

Same issue here:

Original reference: U201 , Generated clone references [] Original reference: C201 , Generated clone references [] Original reference: R201 , Generated clone references [] Original reference: R202 , Generated clone references [] Original reference: R203 , Generated clone references [] Original reference: C202 , Generated clone references [] Original reference: U202 , Generated clone references [] Original reference: U203 , Generated clone references [] Original reference: U204 , Generated clone references [] Original reference: R204 , Generated clone references [] Original reference: R205 , Generated clone references [] Original reference: R206 , Generated clone references [] Original reference: P201 , Generated clone references [] Modules moved and oriented according to template. Iterating through all the pads for each cloned zone, might take a few seconds... Zones cloned. Traceback (most recent call last): File "layout_cloner.py", line 121, in if track.HitTest(templateRect): #Find tracks which touch the comment zone NameError: name 'templateRect' is not defined

tlantela commented 5 years ago

Sorry, I don't really maintain the code or offer support as you may have noticed from the couple of years of delay in responding... Feel free to fix any bugs you encounter and commit.