<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how to use command NAME to change a signal without mouse click? in EAGLE Forum</title>
    <link>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7080510#M37079</link>
    <description>&lt;P&gt;I'm writing a ULP now, I want change the signal name in my ULP. but how to use NAME command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example, a signal with name N$1 , I write down a command in command line in shematic editor: "NAME N$1 TN; " , it popup a message, tell me that N$1 not found... dose I can only use this command to change the device name without mouse click?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 16:15:34 GMT</pubDate>
    <dc:creator>huayuliang</dc:creator>
    <dc:date>2017-05-12T16:15:34Z</dc:date>
    <item>
      <title>how to use command NAME to change a signal without mouse click?</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7080510#M37079</link>
      <description>&lt;P&gt;I'm writing a ULP now, I want change the signal name in my ULP. but how to use NAME command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example, a signal with name N$1 , I write down a command in command line in shematic editor: "NAME N$1 TN; " , it popup a message, tell me that N$1 not found... dose I can only use this command to change the device name without mouse click?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 16:15:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7080510#M37079</guid>
      <dc:creator>huayuliang</dc:creator>
      <dc:date>2017-05-12T16:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to use command NAME to change a signal without mouse click?</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7080559#M37080</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4732502"&gt;@huayuliang&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I'm writing a ULP now, I want change the signal name in my ULP. but how to use NAME command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example, a signal with name N$1 , I write down a command in command line in shematic editor: "NAME N$1 TN; " , it popup a message, tell me that N$1 not found... dose I can only use this command to change the device name without mouse click?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can tell it the "click" position when you create the command string in ulp by putting (x y) after the command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. NAME myNewName (x y);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done this in the nameNet.ulp I wrote in my EAGLE ULP utils library which for reference you can find here:&amp;nbsp;&lt;A href="https://www.element14.com/community/people/rachaelp/blog/2017/03/03/eagle-ulp-utilities-library" target="_self"&gt;https://www.element14.com/community/people/rachaelp/blog/2017/03/03/eagle-ulp-utilities-library&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rachael&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 16:39:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7080559#M37080</guid>
      <dc:creator>rachaelATWH4</dc:creator>
      <dc:date>2017-05-12T16:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to use command NAME to change a signal without mouse click?</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081564#M37081</link>
      <description>&lt;P&gt;Thanks your reply, I'm reading your ULP.&lt;/P&gt;&lt;P&gt;In fact, I'm try to writing a ULP to convert PCB to schematic.&lt;/P&gt;&lt;P&gt;this "idear" is very simple, once I have brd file, but need provide sch file, just place the device in schematic and place short net wire on pin, use the net name in brd replace net name in sch according same pin of device.&lt;/P&gt;&lt;P&gt;I have test this &lt;SPAN style="color: #2e3033; font-family: Arial, 'Microsoft YaHei', 微软雅黑, 宋体, 'Malgun Gothic', sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"&gt;manual&lt;/SPAN&gt;ly by using ERC..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another way is modify the sch file, since EAGLE use XML file, all becomes&amp;nbsp; posible, But my poor language skill stop me do tis.... I need learn```&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2017 06:26:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081564#M37081</guid>
      <dc:creator>huayuliang</dc:creator>
      <dc:date>2017-05-13T06:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to use command NAME to change a signal without mouse click?</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081670#M37082</link>
      <description>&lt;P&gt;your "nameNet.ulp" is very useful for me!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I do a little modify for myself, add the part name as prefix to avoid net name conflict:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   if (schematic) {
      schematic(S) {
         S.sheets(SH) {
            SH.instances(IN) {
&lt;FONT color="#FF0000"&gt;	       string part_name = "";
	       device_name = IN.part.name;	&lt;/FONT&gt;
               IN.gate.symbol.pins(P) {
                  if (ingroup(IN)) {
                     SH.nets(N) {
                        if (N.name == P.net) {
                           if (P.direction != PIN_DIRECTION_PWR) {
                              N.segments(SEG) {
                                 SEG.wires(W) {
                                    string tmp;
                                    &lt;FONT color="#FF0000"&gt;sprintf(tmp, "NAME %s_%s (%f %f);", part_name, P.name, u2inch(W.x1), u2inch(W.y1));&lt;/FONT&gt;
                                    cmd += tmp;
                                 }
                              }
                           }
                        }
                     }
                  }
               }
            }
         }
      }
   }&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 May 2017 09:10:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081670#M37082</guid>
      <dc:creator>huayuliang</dc:creator>
      <dc:date>2017-05-13T09:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to use command NAME to change a signal without mouse click?</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081677#M37083</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4732502"&gt;@huayuliang&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;your "nameNet.ulp" is very useful for me!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I do a little modify for myself, add the part name as prefix to avoid net name conflict:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   if (schematic) {
      schematic(S) {
         S.sheets(SH) {
            SH.instances(IN) {
&lt;FONT color="#FF0000"&gt;	       string part_name = "";
	       device_name = IN.part.name;	&lt;/FONT&gt;
               IN.gate.symbol.pins(P) {
                  if (ingroup(IN)) {
                     SH.nets(N) {
                        if (N.name == P.net) {
                           if (P.direction != PIN_DIRECTION_PWR) {
                              N.segments(SEG) {
                                 SEG.wires(W) {
                                    string tmp;
                                    &lt;FONT color="#FF0000"&gt;sprintf(tmp, "NAME %s_%s (%f %f);", part_name, P.name, u2inch(W.x1), u2inch(W.y1));&lt;/FONT&gt;
                                    cmd += tmp;
                                 }
                              }
                           }
                        }
                     }
                  }
               }
            }
         }
      }
   }&lt;/PRE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm glad you found it useful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The change you made resolves one of the items I listed in my Known Limitations section on the Element14 blog post. Have you looked through those as the one regarding supply rails is particularly important?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's a whole bunch of additional tidying up I need to do on this library and more issues to resolve when I have some time to go back and sort them out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rachael&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2017 09:18:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081677#M37083</guid>
      <dc:creator>rachaelATWH4</dc:creator>
      <dc:date>2017-05-13T09:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to use command NAME to change a signal without mouse click?</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081686#M37084</link>
      <description>&lt;P&gt;Yes, you are right. the supply rail should not be change, many&amp;nbsp;manufacturers has its own naming rule. for example, there is a pin named "VSS", but we need it connect to "GND", if this ULP change all, it will be change to "VSS", and we must change it back to "GND".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;about adding prefix, if we don't need add prefix for the operation, how do you think? use another ULP? or use a dialog box for user to select ?&lt;/P&gt;&lt;P&gt;if someone like suffix ??? LOL...&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2017 09:30:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081686#M37084</guid>
      <dc:creator>huayuliang</dc:creator>
      <dc:date>2017-05-13T09:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to use command NAME to change a signal without mouse click?</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081705#M37085</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4732502"&gt;@huayuliang&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Yes, you are right. the supply rail should not be change, many&amp;nbsp;manufacturers has its own naming rule. for example, there is a pin named "VSS", but we need it connect to "GND", if this ULP change all, it will be change to "VSS", and we must change it back to "GND".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;about adding prefix, if we don't need add prefix for the operation, how do you think? use another ULP? or use a dialog box for user to select ?&lt;/P&gt;&lt;P&gt;if someone like suffix ??? LOL...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I've put some of my ideas for how it should work in the blog post, I'm planning on having additional attributes added to parts which will help guide the net naming. There will be UI elements which will be added which will help make this easy to do and guide everything, these will all be included within the one ULP. If you've got ideas which are different or in addition to how I have proposed it should work let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rachael&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2017 09:53:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081705#M37085</guid>
      <dc:creator>rachaelATWH4</dc:creator>
      <dc:date>2017-05-13T09:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to use command NAME to change a signal without mouse click?</title>
      <link>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081712#M37086</link>
      <description>&lt;P&gt;It's good.&lt;/P&gt;&lt;P&gt;I think it's best to add install and remove dialog intereface for user.&amp;nbsp; also include me , I don't like to enter&amp;nbsp; too more in command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2017 10:03:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum/how-to-use-command-name-to-change-a-signal-without-mouse-click/m-p/7081712#M37086</guid>
      <dc:creator>huayuliang</dc:creator>
      <dc:date>2017-05-13T10:03:00Z</dc:date>
    </item>
  </channel>
</rss>

