element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
Forum Display netname on silkscreen
  • Blog
  • Forums
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Autodesk EAGLE requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 76 subscribers
  • Views 128 views
  • Users 0 members are here
Related

Display netname on silkscreen

steve@teradiode.com
steve@teradiode.com over 6 years ago

Is it possible to have the schematic’s netname show up on the board layout’s silkscreen ?

I am displaying netnames on the schematic using a Label so that I can see what a connector’s pin’s function is for example (“sensor 1, sensor2, etc” for example).

I would also like to have those netnames show up (automatically ?) on the board’s layout’s silkscreen so I know visually on the board what each pin’s function is for identification.

 

I know I could use text to place the netname as text onto the silkscreen but I have many such labels and if there were an automatic way to have them appear it would save a lot of typing…

  • Reply
  • Cancel
  • Cancel
  • rachaelp
    0 rachaelp over 6 years ago

    You could write a ULP to do this but it wouldn't be 100% automatic although it would reduce typing. Here is one called netToText.ulp I knocked up in 5 minutes to do this in a fairly basic way. You currently still need to select tNames or bNames to put the text on the silk screen layer. This will run from the right click context menu or from the command line.

     

    #usage "en: Adds a text label to the selected net\n"

               "run netToText install - to install to the boards context menu"

     

    if (argv[1] == "install") {

        exit("edit .brd; set context wire 'Add Net Label...' 'run netToText';");

    } else {

     

        string cmd="";

        string name="";

     

        if (board) {

            board(B) {

                B.signals(SIG) {

                    if (ingroup(SIG)) {

                        name = SIG.name;

                    }

                }

            }

        }

        sprintf(cmd, "TEXT %s", name);

        exit(cmd);

    }

     

    This can probably be improved, currently it only does one net if you have a group of many. I think this may be a limitation of running the TEXT command from the command line as if you terminate it with a ; you can't actually place the text so it does nothing.... You could however get it to automatically switch to a certain layer and change the font style, size etc to suit your needs.

     

    Anyway, I hope this helps.

     

    Best Regards,

     

    Rachael

     

    EDIT: I had a typo in my original script so the context menu integration appeared not to work. Now it does so the post is updated to reflect.

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Element14

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 © 2022 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.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube