element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products & Partners
    Products & Partners
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products & Partners
  • More
Autodesk EAGLE
Forum Have a question about CadSoft EAGLE?  Ask our Expert, Richard! (Archive)
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 1129 replies
  • Subscribers 244 subscribers
  • Views 57696 views
  • Users 0 members are here
  • eagle
  • expert
  • richard_hammerl
  • cadsoft
Related

Have a question about CadSoft EAGLE?  Ask our Expert, Richard! (Archive)

nlarson
nlarson over 16 years ago

This thread is now locked - but you can still ask Richard by posting your questions here.  If you'd rather browse other member's questions you can read the CadSoft EAGLE Forums for past questions and answers. Enjoy!

 

Browse past Q&A help on anything technical relating to CadSoft EAGLE!


image

 

Richard Hammerl

Richard is an engineer with 16 years experience in EAGLE customer support and is waiting for your questions.

  • Sign in to reply
  • Cancel
Parents
  • e14 Contributor
    e14 Contributor over 16 years ago
    Hi Richard,
    I'm endevoring to provide more extensive cross-refrencing for net labels.   From the sheets() context the frames() loop doesn't seem to be executing.  I am  extracting info into a string that I display to see how the program is progressing  and a sprintf() statement in the frames() loop is not executing.  I am able to  see the label value, label coordinants and the row and column data members from  the nets() loop.  The row and column data is valid showing that the frame is  there.  Any suggestions?
    Btw, it would be very handy to have the row and column be data members of  the labels() loop.
    Thanks,
    Randy Waite
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Richard_H
    Richard_H over 16 years ago in reply to e14 Contributor

    Hi Randy,

     

    couold you please send me the ULP or at the last the part of theULP you are referring to? It's hard to judge without having seen the source.

     

    Regards,
    Richard

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 16 years ago in reply to Richard_H

    Thanks for responding, Richard.

    I am hacking the cmd-renumber.ulp to see if I can do what I would like.  Here is the code section I'm testing to see if I can collect information on the net labels:

    void view_labels(void) {
    schematic(S) {
       i = 0;
       cmd = "";
       S.sheets(SH) {
         sheetnum = SH.number;
         h= ""; sprintf(h, "sheet %d\n", sheetnum);
         cmd += h;
         SH.frames(F)  {
           widthx = u2inch(F.x2);
           widthy = u2inch(F.y2);
           h= ""; sprintf(h, "frame %d %d %d\n", sheetnum, F.x1, F.y1);
           cmd += h;
         }
         SH.nets(N)  {
           scol = N.column;
           srow = N.row;      
           N.segments(SG)  {

     

             SG.labels(L)  {
               if (L.text.value)  {    // if there is a label for this net segment
                 i += 1;
                 labelvalue[i] = L.text.value;
                 labelx = u2inch(L.x);
                 labely = u2inch(L.y);
                  h= ""; sprintf(h, "%d %.2f %.2f %s %s %s\n", sheetnum, labelx, labely, labelvalue[i], scol, srow);
                 cmd += h;
                 }       
               }
             }
           }
         }
       }

     

      dlgDialog("Part names") {
        dlgHBoxLayout {
          dlgVBoxLayout dlgSpacing(300);
          dlgTextView(cmd);
          }
        dlgHBoxLayout {
          dlgStretch(1);
          dlgPushButton("-Close") dlgReject();
          }
        };
    }

     

    The displayed string contains entries from the first and third sprintf() but not the second one, the one in the frames() loop.

     

    I have been looking into the second part of the project which is to write text on the schematic next to the net labels.  This text would reference all instances of the label.  It doesn't look like there is a way to place text on the schematic from a script file.  Would you please comment on this observation?

     

    By way of explanation, there has been some interest in making our schematics more readable by including a reference to all locations of a net label, more than the one location provided by the cross-reference option the Eagle nativly provides.  What I was looking into was generating a list of all the net labels (the ULP that I'm hacking) and generate a script that would add all of the instances of a net label.  Granted, the text I would add wouldn't be linked to the label so care would have to be taken when a label was moved.  I was thinking of placing my home-made cross-reference text on a separate layer for ease of identifying and editing the hime-made cross-references.  I have found Eagle to have many nice qualities and I think it is a great platform for our PC board development.

     

    Thanks for your help.

     

    Randy

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Richard_H
    Richard_H over 16 years ago in reply to e14 Contributor

    Hi Randy,

     

    thanks for posting the ULP, but without the scheamtic it does not help too much. Could you please send me the schematic as well? Best is through private mail to support @ cadsoft.de

     

    Thanks,

    Richard

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Richard_H
    Richard_H over 16 years ago in reply to e14 Contributor

    Hi Randy,

     

    thanks for posting the ULP, but without the scheamtic it does not help too much. Could you please send me the schematic as well? Best is through private mail to support @ cadsoft.de

     

    Thanks,

    Richard

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube