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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) Modifying ULPs - help appreciated
  • 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 2 replies
  • Subscribers 171 subscribers
  • Views 327 views
  • Users 0 members are here
  • eagle
  • ulp
  • pcb
  • question
Related

Modifying ULPs - help appreciated

Former Member
Former Member over 10 years ago

hi, thanks for clicking. i've been doing some pcb design, and would like to panelise some. i've tried the panelize.ulp, which works kind of ok, but the label alignment is off and it defeats the object of using it if i then have to manually move all of them.

 

i've created my own library, and all my parts have the "name" label centered on the part, whereas by default the originals i've modified are all aligned bottom-right or bottom-left.

 

when panelize.ulp is ran the labels are all offset as if they were still aligned as per the original parts.

 

i've taken a look through the ulp code, and dug through the ulp programming reference doc (ftp://ftp.cadsoft.de/eagle/userfiles/doc/ulp5120_en.pdf), but there doesn't seem to be a data member for UL_TEXT that applies to the text alignment (page 54 of doc).

 

i can manually edit the .brd file after running the ULP, and add text alignment to the XML, but again, that defeats the purpose of automating the process.

 

screen shots attached of misaligned labels (original part names in black, labels produced by panelising in cyan), and a snap of the .brd code with added alignment code which fixes the issue, but is a pain.

 

any help greatly appreciated.

 

cheers

 

joe

Attachments:
image
image
  • Sign in to reply
  • Cancel
  • autodeskguest
    0 autodeskguest over 10 years ago

    On 16/02/2015 10:42 p.m., joe kirby wrote:

    hi, thanks for clicking. i've been doing some pcb design, and would like

    to panelise some. i've tried the panelize.ulp, which works kind of ok,

    but the label alignment is off and it defeats the object of using it if

    i then have to manually move all of them.

     

    i've created my own library, and all my parts have the "name" label

    centered on the part, whereas by default the originals i've modified are

    all aligned bottom-right or bottom-left.

     

    when panelize.ulp is ran the labels are all offset as if they were still

    aligned as per the original parts.

     

    i've taken a look through the ulp code, and dug through the ulp

    programming reference doc

    (ftp://ftp.cadsoft.de/eagle/userfiles/doc/ulp5120_en.pdf), but there

    doesn't seem to be a data member for UL_TEXT that applies to the text

    alignment (page 54 of doc).

     

    i can manually edit the .brd file after running the ULP, and add text

    alignment to the XML, but again, that defeats the purpose of automating

    the process.

     

    screen shots attached of misaligned labels (original part names in

    black, labels produced by panelising in cyan), and a snap of the .brd

    code with added alignment code which fixes the issue, but is a pain.

     

    any help greatly appreciated.

     

    cheers

     

    joe

     

    --

    To view any images and attachments in this post, visit:

    http://www.element14.com/community/message/140768

     

    Attachments:

    Screen Shot 2015-02-16 at 09.37.15.png

    Screen Shot 2015-02-16 at 09.39.10.png

     

     

     

    If you are looking at the XML of the board then you must be using at

    least Eagle version 6. So I'm puzzled why you are using  version 5.12

    copy of the ULP pages.

     

    The ULP language evolves as features are added to Eagle so you need to

    read the documentation that applies.

     

    If you look at the HELP for v6.6 you will see the text alignment data

    member you talk of exists.

     

    HTH

    Warren

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to autodeskguest

    whoops. many thanks. found the more recent doc now.

     

    i see the panelize ulp has indeed been updated and i was using an older version.

     

    i'll be more thorough with my google endeavours in future. thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
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 © 2025 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