Unexpected results with DELETE command in scripts

Unexpected results with DELETE command in scripts

Anonymous
Not applicable
568 Views
1 Reply
Message 1 of 2

Unexpected results with DELETE command in scripts

Anonymous
Not applicable

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

Reply
Reply
0 Likes
569 Views
1 Reply
Reply (1)
Message 2 of 2

jorge_garcia
Autodesk
Autodesk

Hi @Anonymous,

 

I hope you're having a great day. I apologize for the delay in getting back to you.

 

The DELETE command isn't supposed to be scripted with locations, in that case it's behavior may be unpredictable. The HELP page for the DELETE command doesn't offer any information on using coordinates to specify what to delete from the command line.

 

One of our users wrote a similar ULP a few years ago and it seemed to work pretty well. The big deficiency it had was when dealing with Power signals but other than that it worked really well. This is something we want to address once we get to working on the hierarchy overhaul.

 

I'll see if I can get it from him and pass it on to you. Shoot me a direct message with your e-mail and if the user can get the file to me I'll forward it to you.

 

Let me know if there's anything else I can do for you.

 

Best Regards,



Jorge Garcia
​Product Support Specialist for Fusion 360 and EAGLE

Kudos are much appreciated if the information I have shared is helpful to you and/or others.

Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
Reply
Reply
0 Likes