Author Topic: [SOLVED] How to remove unused/phatom lines in Eagle .brd file?  (Read 1738 times)

0 Members and 1 Guest are viewing this topic.

Online prasimix

  • Supporter
  • ****
  • Posts: 1129
  • Country: hr
    • EEZ
[SOLVED] How to remove unused/phatom lines in Eagle .brd file?
« on: January 25, 2018, 09:45:27 pm »
I've started length.ulp out of curiosity and found a tons of phantom zero-length traces/lines in my .brd file! I can recognize some names from previous projects, that were include parts that could be related to names of that phantoms. Design integrity is not compromised, but I'm wondering how to get rid of that garbage. Here is an excerpt in table form of that I have found:

« Last Edit: January 26, 2018, 01:27:23 am by prasimix »
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1258
  • Country: 00
Re: How to remove unused/phatom lines in Eagle .brd file?
« Reply #1 on: January 25, 2018, 11:48:56 pm »
Why are you using such an old version? Your license will allow you to use the latest V6.x.x which is V6.6.0.

In case you use the free version, switch to V7.7.0.

ftp://ftp.cadsoft.de/eagle/program/
The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 

Online jpanhalt

  • Frequent Contributor
  • **
  • Posts: 624
  • Country: us
Re: How to remove unused/phatom lines in Eagle .brd file?
« Reply #2 on: January 26, 2018, 12:15:35 am »
I checked a couple of old brd files in 7.2 and 7.7 and did not see that when running length.ulp; although, I hadn't used the ulp before.

When you re-route something, do you ripup and then re-route?   What happens if you ripup, do ratsnest, then re-route?  Just thinking about how Eagle works.

Also, are those phantom nets in the current schematic?

John
« Last Edit: January 26, 2018, 12:17:45 am by jpanhalt »
 

Online prasimix

  • Supporter
  • ****
  • Posts: 1129
  • Country: hr
    • EEZ
Re: How to remove unused/phatom lines in Eagle .brd file?
« Reply #3 on: January 26, 2018, 12:22:42 am »
I'm using 6.1 and 7.5. I tried to run the same .ulp on the 7.5 but result is the same, what is not surprising since when I opened .brd with text editor I can see that such phantoms really exists. See below:

 

Online prasimix

  • Supporter
  • ****
  • Posts: 1129
  • Country: hr
    • EEZ
Re: How to remove unused/phatom lines in Eagle .brd file?
« Reply #4 on: January 26, 2018, 12:26:55 am »
When you re-route something, do you ripup and then re-route?   What happens if you ripup, do ratsnest, then re-route?  Just thinking about how Eagle works.

Yes, I'm ripup and then start a new route. If your question is possibly related to autorouter, it is not applicable here since I never used it.

Also, are those phantom nets in the current schematic?

Cannot find them in .sch file. Strange!
 

Online jpanhalt

  • Frequent Contributor
  • **
  • Posts: 624
  • Country: us
Re: How to remove unused/phatom lines in Eagle .brd file?
« Reply #5 on: January 26, 2018, 12:45:06 am »
DRG is OK, I presume.   

It is hard to imagine how or why Eagle would keep nets that have been deleted.   I will see if I can duplicate it, but that may take awhile.
 

Online prasimix

  • Supporter
  • ****
  • Posts: 1129
  • Country: hr
    • EEZ
Re: How to remove unused/phatom lines in Eagle .brd file?
« Reply #6 on: January 26, 2018, 12:57:14 am »
DRG is OK, I presume.   

Sure.

It is hard to imagine how or why Eagle would keep nets that have been deleted.   I will see if I can duplicate it, but that may take awhile.

Yes, hard to imagine and it open a question what else is not consistent or broken in similar way. I'll try to remove manually all reported phantoms and check what Eagle will report when I open .brd file again.
 

Online jpanhalt

  • Frequent Contributor
  • **
  • Posts: 624
  • Country: us
Re: How to remove unused/phatom lines in Eagle .brd file?
« Reply #7 on: January 26, 2018, 01:12:03 am »
I was able to duplicate it faster than I thought, but what I did may not be applicable to your case.

In brief, I found an old board that had several "off-board" components, e.g., a display and XBee module.  Looking only at the XBee module, there were no nets on the schematic for it, but of course, it had a device associate with it.  The ground on that device was named "GND(7)" automatically by Eagle.  Since there were no nets, the brd didn't show any airwires either.  However, length.ulp found it and gave it 0 length.

With "show GND(7)" it was highlighted in the brd (attached below).



Then, when I deleted the device from the schematic, the zero-length net disappeared from the length.ulp listing.

Hopes that helps.

John

 
« Last Edit: January 26, 2018, 01:14:18 am by jpanhalt »
 

Online prasimix

  • Supporter
  • ****
  • Posts: 1129
  • Country: hr
    • EEZ
Re: How to remove unused/phatom lines in Eagle .brd file?
« Reply #8 on: January 26, 2018, 01:26:20 am »
That makes sense. I managed to manually clean up my .brd from all phantoms. They can be easily recognized since they don't contain anything between <signal name=></signal>. For example, one of my phantom was INV_GND that was recorded in .brd file as:

<signal name="INV_GND">
</signal>


I seems that Eagle needs a more efficient housekeeping procedure to clean up its files. Case closed.
 

Online jpanhalt

  • Frequent Contributor
  • **
  • Posts: 624
  • Country: us
Re: [SOLVED] How to remove unused/phatom lines in Eagle .brd file?
« Reply #9 on: January 26, 2018, 01:31:41 am »
Oddly, in my case, it was found on the schematic by the command dialog,  but not highlighted, so you wouldn't know what to remove.

Glad you got it solved.
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 1960
  • Country: de
Re: [SOLVED] How to remove unused/phatom lines in Eagle .brd file?
« Reply #10 on: January 27, 2018, 02:14:55 am »
Glad you got things tidied up -- although having to do it manually (in the text file, I assume?) is annoying.  Out of curiosity: Have you tried whether "OPTIMIZE *" gets rid of the zero-length traces?
 

Online jpanhalt

  • Frequent Contributor
  • **
  • Posts: 624
  • Country: us
Re: [SOLVED] How to remove unused/phatom lines in Eagle .brd file?
« Reply #11 on: January 27, 2018, 02:30:41 am »
In my experiment, I don't think that would help, because it was caused by a pin name on a device that corresponded to a net name but was not connected to that net (e.g., GND). 

Obvious question: Why include a device on the schematic that I didn't connect properly?  Answer: I wanted the device on the board so I could check geometry.  Unconnected devices were removed before I generated files to submit to get boards made.

I suspect the cause for prasimix's problem might have some relation to that but was not identical.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf