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
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
  • More
Autodesk EAGLE
EAGLE User Support (English) SOLVED: How do I set an attribute on all parts on a single schematic sheet?
  • 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
  • State Verified Answer
  • Replies 6 replies
  • Answers 1 answer
  • Subscribers 180 subscribers
  • Views 1747 views
  • Users 0 members are here
  • bom
  • ulp
  • attributes
Related

SOLVED: How do I set an attribute on all parts on a single schematic sheet?

AnalogNotes
AnalogNotes over 13 years ago

Hiya everybody,

 

I'm trying to figure out if I have missed something obvious...

 

I have a multi-sheet design, and I'm trying to get a separate bill of materials for each sheet of that design.  (It's a DIY project, and I want to say in the instructions, "collect all the parts for the PSU".)  In the past, when there were only a couple sheets, I would delete everything except for the sheet I was working with and use the ULP to output the BOM for what remained.  Now that I have 18 sheets in my project that is a bit less convenient...  image

 

I think I have two options to fix this.  1) Add an attribute to every part and use my BOM spreadsheet to sort them, and 2) Modify the BOM ULP to list parts by schematic sheet.  Are there other options that I should consider?

 

I have tried setting attributes, but so far, I have only been able to add them globally or to each part individually.  I have about 1100 parts, so I'm trying not to have to add attributes to each part one at a time!  I tried the group command, selected everything on a sheet and then tried to use the attribute command line, but when I typed "attr SECTION 'PSU'" that gave me an invalid part or gate error.  I also tried grouping and then "attr * SECTION 'PSU'", but that set a global attribute.  Is it possible to add an attribute to a group of parts or is it only possible to set a global or individual part attribute one at a time?

 

I'm starting to learn how to program a ULP (attended the webinar about ULPs yesterday, thanks Ed) but I haven't gotten very far yet and impatience has started to rear it's ugly head...

 

Thanks,

Doug

  • Sign in to reply
  • Cancel
Parents
  • AnalogNotes
    0 AnalogNotes over 13 years ago

    Thanks Chuck, I was thinking that it would be nice to have names for each sheet in the GUI instead of just sheet numbers.  Version 6 does indeed have that.  In my ULP, it's pretty simple to have an array of names indexed by sheet...

     

    Now, I just ran into something incredibly silly!!!

     

    export partlist

     

    is the command that I needed the whole time!

     

    Regards,

    Doug

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
Reply
  • AnalogNotes
    0 AnalogNotes over 13 years ago

    Thanks Chuck, I was thinking that it would be nice to have names for each sheet in the GUI instead of just sheet numbers.  Version 6 does indeed have that.  In my ULP, it's pretty simple to have an array of names indexed by sheet...

     

    Now, I just ran into something incredibly silly!!!

     

    export partlist

     

    is the command that I needed the whole time!

     

    Regards,

    Doug

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • 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.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube