element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Chat (English) making componet location file.
  • 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 Suggested Answer
  • Replies 7 replies
  • Answers 1 answer
  • Subscribers 178 subscribers
  • Views 575 views
  • Users 0 members are here
Related

making componet location file.

ulao
ulao over 10 years ago

I need to make a coordinate file for my factory and they want it in a specific format, example below.

 

header

### Module positions - created on Tue Mar 22 17:58:38 2011 ### ### Printed by PcbNew version pcbnew (2010-12-28 BZR 2695)-testing ## Unit = inches, Angle = deg. ## Side : Front

 

each item like so

 

C1  2p2             2.02001.7800270.0Front
C2  1nF             2.19001.7150  0.0Front
C3  1pF             2.13321.8200 90.0Front
C4  18pF            2.19001.7450  0.0Front

 

 

how can I generate this?

  • Sign in to reply
  • Cancel
  • clem57
    0 clem57 over 10 years ago

    Use the editor command EXPORT PARTLIST filename

    Clem

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

    On 26/04/15 02:44, Clem Martins wrote:

    Use the editor command EXPORT PARTLIST filename

    Clem

     

    Some post-processing may be required to achieve a specific format, if

    the board house really require that, using your text processing language

    of choice. Alternatively, a ULP could be written to generate the correct

    format directly.

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to autodeskguest

    I believe an excel could import and move the columns around and export again.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to autodeskguest

    I did not suggest ULP because of the coding efforts. Most are not able to tackle without many questions.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jameslittlefield
    0 jameslittlefield over 10 years ago in reply to clem57

    There are some existing ULPs to generate x,y,rot coordinates for smd parts on an eagle brd.    I think they are called "mountsmd.ulp"  or maybe just "mount.ulp".   One of these ULPs would be a good (at least) starting point.    If the OP could identify a particular machine format there might already be a ulp written.....

     

    Jim

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Joop14
    0 Joop14 over 10 years ago

    Copy and paste the following code into a new file and name it "exp-coordinates.ulp".

    Put this file in the ulp directory of Eagle.

    Open your board and run this ulp.

     

    <<<<<<<<<<<<< the code starts after this line >>>>>>>>>>>>>>>

     

    #usage "<b>Export coordinates</b>\n"

           "<p>"

           "Generates a file that can be used with pick-and-place machines. "

           "The x- and y- coordinates (units: milli-meters) are taken from "

           "the origin point of the part in the layout."

           "All elements populated in currently set assembly variant are considered."

           "<p>"

           "The syntax of the output data looks like this:"

           "<p>"

           "<tt>Reference;Value;X-Pos;Y-Pos;Orientation;Side</tt>"

           "<p>"

           "<author>Author: Teunis van Beelen teuniz@gmail.com</author>"

     

     

    if(board) board(B) {

     

      // Get filename

      string fileName = dlgFileSave("Save File", filesetext(B.name, ".csv"), "*.csv");

      if (fileName == "") exit(0);

     

      output(fileName)

      {

        printf("Reference;Value;X-Pos;Y-Pos;Orientation;Side;\n");

     

        B.elements(E) if (E.populate)

        {

          printf("%s;%s;%f;%f;%f;",

                E.name, E.value, u2mm(E.x), u2mm(E.y), E.angle);

     

          if (E.mirror)

          {

            printf("Bottom;\n");

          }

          else

          {

            printf("Top;\n");

          }

        }

      }

    }

    else

    {

      dlgMessageBox("\n    Start this ULP in a board    \n");

      exit (0);

    }

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ulao
    0 ulao over 10 years ago in reply to Joop14

    EXPORT PARTLIST did what they asked for.

    • 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