Unexpected results with DELETE command in scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a board with 4 identical sections that are each based on one module in the schematic. I have done the layout and routing for section 1 manually, but to avoid having to constantly adjust the layout of all 4 sections, I wrote a ULP script that:
1) attempts to clean up sections 2-4 by ripping up old wires and deleting old polygons
2) copies the wires, vias and polygons from section 1 into the other three sections
The copy part works well, but I am getting unexpected results with the DELETE commands during the "cleanup" phase of the script. It appears that if -- for some reason -- the object that was supposed to be deleted is no longer at its place when the script runs, the DELETE command will erase whatever other object it finds nearby: parts, dimension lines, air wires, whatever.
I found the "set" parameter "catch_factor" and thought that setting it to 0 would work, but no (I also tried 1 with no success).
Does anyone know how to avoid this "eager" delete behavior?
Does anyone know of a better way to lay out and route a 4 section board?
I am using Eagle 7.7.0 for Mac.
Thanks,
doug
