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 Chat (English) Wire styles: long dash, short dash, dot dash -- anyone know the repetition algorithm?
  • 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 Not Answered
  • Replies 2 replies
  • Subscribers 170 subscribers
  • Views 675 views
  • Users 0 members are here
  • eagle
  • pattern
  • wire
  • dot
  • dash
Related

Wire styles: long dash, short dash, dot dash -- anyone know the repetition algorithm?

Former Member
Former Member over 13 years ago

I've recently acquired an HP plotter. I know there's a ULP script that can generate HPGL, but it's routing, fill,  and pen lift/drop optimization isn't the best.  It can take a LONG to plot a small board.

 

I'm working on a python script that reads the new XML format, and creates an optimized pen path and fill patterns; this could be used for either additive (plotters) or subtractive (routers) creation of a PCB.

 

Anyway, things are going well, and I'm in the implementation phase of the rendering of the polygons.  I would like that the output matches the what's shown in Eagle exactly.  To that end, I'm having a bit of trouble with how Eagle decides to show non-continuous wire patterns.

 

Messing around with a single horizontal wire, it seems that when using the 'long dash' pattern, it begins when the wire reaches a length of 10.5 mm.  Under 10.5, it is a continuous wire. At 10.5, you have two long dashes with a 1.5mm gap.  From there, it adds another long dash every 4mm: 10.5, 14.5, 18.5, 22.5, etc.  The gap is always 1.5mm, and the longdash length is adjusted to fit.  The line always ends on a longdash.

 

For the shortdash, the first one is at 2.01 (not 2.0).

 

Can anyone comment on what rule(s) determine how many repetitions are shown for a given line length.  I can hard-code the rules into the code, but I think there is a simple mathematical rule that I haven't been able to figure out yet.

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 13 years ago

    Am 12.01.2012 20:03, schrieb Mr.Surly:

    Can anyone comment on what rule(s) determine how many repetitions are shown

     

    You need not care about the rules. EAGLE gives you the partial lines

    free of charge with

       W.pieces()

    (W being an UL_WIRE object).

     

    Andreas Weidner

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago in reply to Former Member

    You need not care about the rules. EAGLE gives you the partial lines

    free of charge with

       W.pieces()

    (W being an UL_WIRE object).

     

     

    That's true for ULP scripts.  I'm writing a python program that reads the XML file format. The XML save format does not provide the wire pieces.

    • 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