EAGLE Central Forums
Where the EAGLE community meets. Sponsored by Stratford Digital.

Home » CadSoft Support Forums » eagle.support.eng » Some Questions for schematic
Some Questions for schematic [message #170093] Sat, 18 March 2017 12:27 Go to next message
Hans Knig
Messages: 3
Registered: March 2017
Junior Member
Hello,

I have some basic questions for schematic drawing:
1. Can I use different colors for nets? They are always green, but want different colors.
2. Can I set, that the name of the net will be automatic displayed? Right now I have to set manuel a label
3. The prefix of the nets are "N$" ... can I set somewhere this? I want based on the net class each an own prefix
4. Can I update the net name via ULP?

Thank you!

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/218837
Re: Some Questions for schematic [message #170094 is a reply to message #170093] Sat, 18 March 2017 13:47 Go to previous messageGo to next message
rachaelp
Messages: 551
Registered: March 2015
Location: UK
Senior Member
> Hans König wrote:
>
> Can I use different colors for nets? They are always green, but want different colors.
Colours are determined by the layer they are on so you can't have different colours unfortunately.

> Hans König wrote:
>
> Can I set, that the name of the net will be automatic displayed? Right now I have to set manuel a label
Manually adding labels is the only way to do it I'm afraid.

> Hans König wrote:
>
> The prefix of the nets are "N$" ... can I set somewhere this? I want based on the net class each an own prefix
Nets start N$ and busses start B$, I don't think it's possible to set a prefix based on net class.

> Hans König wrote:
>
> Can I update the net name via ULP?
This one you can do! You need to build up a NAME command within the ULP which uses the form:

NAME newName (x y);

where x and y are the position values given for a wire segment of the net you wish to name.

An example would be:

{code:class=jive_macro_code _jivemacro_uid_14898448090082761 jive_text_macro|data-renderedposition=735_8_1386_368|jivemacro_uid=_1489844 8090082761}string cmd="SET CONFIRM YES; ";

if (schematic) {
   schematic(S) {
      S.sheets(SH) {
         SH.nets(N) {
            string tmp;
            if (N.name == argv[1]) {
               N.segments(SEG) {
                  SEG.wires(W) {
                     sprintf(tmp, "NAME %s (%f %f);", argv[2],u2inch(W.x1),u2inch(W.y1));
                     cmd += tmp;
                  }
               }
            }
         }
      }
   }
}

cmd += "SET CONFIRM OFF;";

exit(cmd);{code}

Best Regards,

Rachael

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/218841
Re: Some Questions for schematic [message #170097 is a reply to message #170093] Sat, 18 March 2017 19:44 Go to previous message
warrenbrayshaw
Messages: 1742
Registered: January 2010
Location: New Zealand
Senior Member
On 19/03/2017 1:27 a.m., Hans König wrote:
> Hello,
>
.......
> 4. Can I update the net name via ULP?
>
> Thank you!

There are many user created ULPs here
http://eagle.autodesk.com/eagle/ulp

Here's the link to one I created that should be just what you need.
http://eagle.autodesk.com/eagle/download/1797

On first usage just run it. it will create a context menu item for net
wires. After that just right click on the net wire and select "Rename
Net" from the context menu.

You can then type in the desired net name. The ULP already knows which
net wire you are referring to and where it is. "But wait, there's more."

If the pins that the net is attached to have their pin names visible,
then those names can be selected from a drop down list so there's no
typing needed.

Going from another posting of yours, your part is AV equipment and the
pins are connectors for cables. For an HDMI cable the pin would be named
HDMI and if you have set 'display pin names' in the symbol in the
library you will see HDMI displayed at the schematic pin and listed in
the ULP. You simply select HDMI in the ULP for the net (cable) name.

The text, like the selected HDMI, is copied into the text entry field
where it can be modified further, if desired, prior to naming the net.

A handy by-product for you is, if by mistake, you have connected your
HDMI cable between a HDMI pin and a RS232 pin you be alerted to this by
the two conflicting choices in the drop down list.


Enjoy
Warren


--
.... use NNTP://news.cadsoft.de and a functional news reader like
Thunderbird!
.... or http://www.eaglecentral.ca browser access to CadSoft EAGLE
support forums.
Previous Topic: V 8.1.0 - Obstacle - does it functioning right?
Next Topic: Distance Measuring Sensors between them ?
Goto Forum:
  


Current Time: Sun May 28 08:23:46 GMT 2017