Author Topic: Efficient labeling of nets  (Read 2447 times)

0 Members and 1 Guest are viewing this topic.

Offline taydin

  • Frequent Contributor
  • **
  • Posts: 420
  • Country: tr
Efficient labeling of nets
« on: November 11, 2017, 09:50:21 pm »
I am playing around with eagle after not having touched it for many years. Here is one very basic thing that is driving me nuts:

- I have placed three 12pin headers to the schematic and have placed nets to all pins, which is 36 nets in total. Now I want to make the label of each net visible in one step. And then I want to change the name of each label. But I can't find a way do make all labels visible in one step. What does work is:

- Run the LABEL command
- select a net
- place the default label text (N$1 etc)
- Run the NAME command
- select a net
- enter new name

Imagine having to do this for 36 nets!! I obviously know that eagle can't guess the names I want to give, but why can't it make all labels visible in one step so that the only thing remaining is giving names for each of them? I hope there's a way to do this, otherwise I'll be an old man by the time I named all the nets that I'm finding in this UPS that i'm reverse engineering  :scared:
Real programmers use machine code!

My hobby projects http://mekatronik.org/forum
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 5837
  • Country: us
    • Personal site
Re: Efficient labeling of nets
« Reply #1 on: November 11, 2017, 10:29:33 pm »
I think you can select multiple nets in a row after only a single LABEL command (at least it works if you do this from the menu). You wild still have to click 36 times, but that's much easier.
Alex
 

Offline taydin

  • Frequent Contributor
  • **
  • Posts: 420
  • Country: tr
Re: Efficient labeling of nets
« Reply #2 on: November 11, 2017, 11:27:52 pm »
I think you can select multiple nets in a row after only a single LABEL command (at least it works if you do this from the menu). You wild still have to click 36 times, but that's much easier.

Yes I tried that and it works. LABEL command, followed by a click fest of 36 clicks makes the default N$x labels visible. Then change the names.

I have also found the following method, which is only very slightly faster:

- Create one net and make it's label visible
- copy this net, together with its label
- assign the PASTE command to Control-V
- For all extra nets, position mouse to new location and press Ctrl-V

This results in all nets having the same default name N$1, but that's no problem, because I will  have to name all of them anyway.
Real programmers use machine code!

My hobby projects http://mekatronik.org/forum
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 8001
Re: Efficient labeling of nets
« Reply #3 on: November 12, 2017, 12:23:35 am »
No.  If you give the nets the same name at any stage, they become the same net.  Then when you rename them, for each visible instance it asks you whether you want to rename the whole net or just the instance you clicked.  That's a lot of extra work.
 

Offline taydin

  • Frequent Contributor
  • **
  • Posts: 420
  • Country: tr
Re: Efficient labeling of nets
« Reply #4 on: November 12, 2017, 09:38:58 am »
I tried it, and it didn't keep asking me that question. So I guess it is a different thing to give a net the same name with NAME and to copy the net with the same name.

But in any case, the schematics are documentation only. I want to repair this 3 KVA UPS and there are no schematics available for it. So what I do is, for each daughtercard on the board, I create a schematic and only place the edge connector. Then I just name the connector pins based on my research and its discovered purpose.

I have already changed all mosfets, all igbt's, most components on the mosfet driver card, a few other components that were damaged here and there. Time and part wise, I spent probably more than the cost of a new UPS, but I will keep at it, because in the end it will be a good learning experience :)
Real programmers use machine code!

My hobby projects http://mekatronik.org/forum
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 3026
  • Country: us
Re: Efficient labeling of nets
« Reply #5 on: November 25, 2017, 09:48:07 am »
This sounds like the sort of thing that the ULP extension language would be good for.
In fact, there is already ulp/net-bus-labeling.ulp in the eagle distribution (at least in 7.6

       "For labeling nets automatically you have to draw a GROUP around the area you want to "
       "have labels placed. "
       "There can be labels at net/bus bends only. Which is usually the location where "
       "two bus or net coordinates converge."
       "A label for a net will be placed with an offset of 10 mil, for a bus with an offset of 20 mils "
       "above a horizontal wire, or left of a vertical wire. A second offset places the label half the "
       "grid (50 mil) from the beginning in wire direction. The label will be placed in the "
       "same rotation the wire has. The text size of the label is 70 mil. "
 
There may be something closer to what you want uploaded to the cadsoft FTP site, or "out there" somewhere.  EAGLE has a pretty strong user community.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf