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) Turning a closed signal path into a polygon
  • 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
  • Replies 3 replies
  • Subscribers 179 subscribers
  • Views 707 views
  • Users 0 members are here
Related

Turning a closed signal path into a polygon

WestfW
WestfW over 17 years ago

I have some relatively complex shapes drawn with a sequence

of wires and arcs, and closed using the autorouter (if needed):

 

    "wire '%s' (p  %f %f) (p %f %f)\n;", signame, id, a1, od, a1);

    "wire '%s' (p  %f %f) (p %f %f)\n;", signame, id, a2, od, a2);

    "arc '%s' cw (p %f %f) (p %f %f)  (p %f %f);\n", signame,

         id, a1, id, a2, id, a2);

    "arc '%s' ccw (p %f %f) (p %f %f)  (p %f %f);\n", signame,

         od, a1, od, a2, od, a2);

 

(These draw a radial wedge with approx half-circle inside and

outside segments, sorta like you'd want for a "pretty" version

of a touch-sensitive wheel.  But this is actually for a radial

dirod HV electrostatic generator, so smooth curves are important.

See attached image, if it stays attached.)

 

I'd like to turn these into polygons.  The curved wire choices

don't seem to have a variant that works like "arc", so I'm

having trouble making a direct conversion of the code. (am I

missing something there?)

 

Does anyone have a ULP that will turn a closed path of wires

(including arcs) into a polygon?  Even if that means treating

the arcs as a series of straight wire segments?  Something

that works on a particular signal name and stops when it hits

an airwire would be ideal, I think.

 

Is there some other way to do this?

 

Thanks

Bill W

 

Attachments:
image
  • Sign in to reply
  • Cancel
  • Richard_H
    Richard_H over 17 years ago

    Bill Westfield schrieb:

    I have some relatively complex shapes drawn with a sequence

    of wires and arcs, and closed using the autorouter (if needed):

     

       "wire '%s' (p  %f %f) (p %f %f)\n;", signame, id, a1, od, a1);

       "wire '%s' (p  %f %f) (p %f %f)\n;", signame, id, a2, od, a2);

       "arc '%s' cw (p %f %f) (p %f %f)  (p %f %f);\n", signame,

            id, a1, id, a2, id, a2);

       "arc '%s' ccw (p %f %f) (p %f %f)  (p %f %f);\n", signame,

            od, a1, od, a2, od, a2);

     

    (These draw a radial wedge with approx half-circle inside and

    outside segments, sorta like you'd want for a "pretty" version

    of a touch-sensitive wheel.  But this is actually for a radial

    dirod HV electrostatic generator, so smooth curves are important.

    See attached image, if it stays attached.)

     

    I'd like to turn these into polygons.  The curved wire choices

    don't seem to have a variant that works like "arc", so I'm

    having trouble making a direct conversion of the code. (am I

    missing something there?)

     

    Does anyone have a ULP that will turn a closed path of wires

    (including arcs) into a polygon?  Even if that means treating

    the arcs as a series of straight wire segments?  Something

    that works on a particular signal name and stops when it hits

    an airwire would be ideal, I think.

     

    Is there some other way to do this?

     

    Thanks

    Bill W

     

     

    The WIRE (and the POLYGON) command can draw arcs, too.

    You can use the following syntax:

     

      WIRE (x1 y1) +@radius (x2 y2)  for an arc ccw

    or

      WIRE (x1 y1) +@radius (x2 y2)  for an arc cw

     

    It's also possible to use a curve parameter:

     

      WIRE (x1 y2) +/-curve (x2 y2)

     

     

    And the same could be done with a polygon. Of course you can

    add the signalname here. For example:

     

    POLYGON  'signalname' (x1 y1) (x2 y2) +@radius1 (x3 y3)

              (x4 y4) -@radius2 (x1 y1);

     

    HTH

     

     

    --

    Mit freundlichen Gruessen / Best regards

    Richard Hammerl

      CadSoft Support -- hotline@cadsoft.de

      FAQ: http://www.cadsoft.de/faq.htm

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • WestfW
    WestfW over 17 years ago

    Richard Hammerl wrote:

     

    The WIRE (and the POLYGON) command can draw arcs, too.

    You can use the following syntax:

     

    WIRE (x1 y1) +@radius (x2 y2)  for an arc ccw

     

    Ah.  I think the @radius option will do what I want.  Is

    that form available via mouse-clicks as well?  I can get

    the GUI "arc" command to do what I want, but drawing curves

    as a part of "wire" commands never seems intuitive.  I think

    it's doing "curve" when I want it to do "radius", and I MISS

    that extra click (from "arc") that explicitly sets the radius.

     

    Thanks

    BillW

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • WestfW
    WestfW over 17 years ago

    The WIRE (and the POLYGON) command can draw arcs, too.

     

    This worked quite nicely (using CURVE, rather than radius, in the end),

    once I combined your message with the documentation and actually figured

    out how it was working.

     

    Attachments:
    image
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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 © 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