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 Support (English) change existing rectangle "from" and "to" value
  • 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 4 replies
  • Answers 1 answer
  • Subscribers 176 subscribers
  • Views 1315 views
  • Users 0 members are here
Related

change existing rectangle "from" and "to" value

Snoopy354
Snoopy354 over 5 years ago

Hello,

 

is it possible to change the size of an existing rectangle.

So i would change the size of many rectangles

 

I want to change the "from" and "to" value:

 

In from i want to minus a value to the existing one

in to i want to add a value to the existing one

 

Thanks

Bruno

 

Example: Original:

image

After change

image

  • Sign in to reply
  • Cancel

Top Replies

  • autodeskguest
    autodeskguest over 5 years ago +1 suggested
    Bruno Hirsnik wrote: is it possible to change the size of an existing rectangle. So i would change the size of many rectangles I want to change the "from" and "to" value: In from i want to minus a value…
  • Snoopy354
    Snoopy354 over 5 years ago in reply to autodeskguest +1
    Can someone help me with the ulp, or can you give me an example? Or are the tutorials? Thanks Bruno
  • autodeskguest
    autodeskguest over 5 years ago in reply to Snoopy354 +1 verified
    Bruno Hirsnik wrote: Can someone help me with the ulp, or can you give me an example? | string cmd; | sheet(SHE) { // access the sheet context | SHE.rectangles(REC) { // loop through all rectangles on…
Parents
  • autodeskguest
    0 autodeskguest over 5 years ago

    Bruno Hirsnik wrote:

    is it possible to change the size of an existing rectangle.

    So i would change the size of many rectangles

     

    I want to change the "from" and "to" value:

     

    In from i want to minus a value to the existing one

    in to i want to add a value to the existing one

     

    well, you can change the values in the dialog ... 8-)

     

    not out of the box, but one could create an ULP to do it.

     

    As you can't easyly change an existing rectangle, I would just create

    new rectangles with the modified size and delete the old ones.

     

     

    Alternativly you could set the grid to the value you want to change

    your rectangle and drag the edge(s) with left mouse + ctrl button

    --

     

    Lorenz

     

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Snoopy354
    0 Snoopy354 over 5 years ago in reply to autodeskguest

    Can someone help me with the ulp,

     

    or can you give me an example?

    Or are the tutorials?

     

    Thanks

    Bruno

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • autodeskguest
    0 autodeskguest over 5 years ago in reply to Snoopy354

    Bruno Hirsnik wrote:

    Can someone help me with the ulp,

     

    or can you give me an example?

     

     

    | string cmd;

    | sheet(SHE) { // access the sheet context

    |   SHE.rectangles(REC) { // loop through all rectangles on sheet level

    |     if (ingroup(REC)) { // only process grouped rectangles

    |       sprintf(cmd, "%srect (%fmm %fmm) (%fmm %fmm);", cmd, u2mm(REC.x1) - 1, u2mm(REC.y1) - 1, u2mm(REC.x2) + 1, u2mm(REC.y2) + 1);

    |     }

    |   }

    | }

    |

    | exit(cmd);

     

     

    copies all grouped rectangles to the currently selected layer, adding

    1mm on all sides

     

    if you use

     

    | exit("delete (>0 0);" + cmd);

     

    as the last line, the original rectangles will be removed, leaving

    only the copies.

    --

     

    Lorenz

     

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Snoopy354
    0 Snoopy354 over 5 years ago in reply to autodeskguest

    Thanks very much

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Snoopy354
    0 Snoopy354 over 5 years ago in reply to autodeskguest

    Thanks very much

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify 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 © 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