element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) Can I copy/move a 'group' components a set distance via the command line?
  • Blog
  • Forums
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Autodesk EAGLE requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 9 replies
  • Subscribers 83 subscribers
  • Views 1901 views
  • Users 0 members are here
Related

Can I copy/move a 'group' components a set distance via the command line?

Former Member
Former Member over 10 years ago

I'm just wondering what the command would be to copy a 'grouping' of compionents and move them a set distance

 

 

For example if I wanted to move all the highlighted components 40mm down (so Y -40) how would I do that?

  • Reply
  • Cancel
  • Cancel

Top Replies

  • Former Member
    Former Member over 10 years ago +1

    Robert Smith schrieb:

     

    I'm just wondering what the command would be to copy a 'grouping' of

    compionents and move them a set distance

     

    Yes, of course.

     

    For example if I wanted to move all the highlighted…

Parents
  • Former Member
    Former Member over 10 years ago

    Robert Smith schrieb:

     

    I'm just wondering what the command would be to copy a 'grouping' of

    compionents and move them a set distance

     

    Yes, of course.

     

    For example if I wanted to move all the highlighted components 40mm

    down (so Y -40) how would I do that?

     

    - define the group;

    - MOVE (>0 0) (0 -40);

     

    Tilmann

     

    • Cancel
    • Vote Up +1 Vote Down
    • Reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Thanks...that works a charm (I did check the user guide, but the syntax wasn't clear to me at least!)

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Robert Smith schrieb:

     

    Thanks...that works a charm (I did check the user guide, but the

    syntax wasn't clear to me at least!)

     

    The syntax becomes clearer if you have a look at the general section

    about how coordinates can be entered. (Each coordinate pair represents a

    mouse click, and the ">" prefix means it's like the right mouse button,

    picking the group.)

     

    In EAGLE, you can do about anything with command line (and scripts).

    That's extremely power- and useful.

     

    Tilmann

     

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Cancel
Reply
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Robert Smith schrieb:

     

    Thanks...that works a charm (I did check the user guide, but the

    syntax wasn't clear to me at least!)

     

    The syntax becomes clearer if you have a look at the general section

    about how coordinates can be entered. (Each coordinate pair represents a

    mouse click, and the ">" prefix means it's like the right mouse button,

    picking the group.)

     

    In EAGLE, you can do about anything with command line (and scripts).

    That's extremely power- and useful.

     

    Tilmann

     

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Cancel
Children
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Me again....whilst that move works great, is it possible to group a bunch of components, and copy a duplicate of them to the offset location?

     

    The 'move' cmmand erhm, moves the 'grouped' components, whereas I seek to actually copy a copy of the grouped components to a new offset location (this is for duplicating towards panelizing)...I've no schematic (which I know can cause issues when panelizing et), just working with a board layout only.

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Robert Smith schrieb:

     

    Me again....whilst that move works great, is it possible to group a

    bunch of components, and copy a duplicate of them to the offset

    location?

     

    The move erhm, moves the 'grouped' components, I see to actually copy

    the components to a new offset location (this is for duplicating for

    panelizing)...I've no schematic, just working with a board layout

    only.

     

    Of course that's no problem, just have a look at the CUT and PASTE

    commands. Entering coordinates is always the same style, and the command

    syntax is clearly explained in the HELP (each bullet represents a

    coordinate provided by mouse click or numerical).

     

    Tilmann

     

    P.S. I could have written the concrete commands, but you learn more when

    figuring them out by yourself.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Prior to posting, I did try experimenting with the cut/paste commands ...they work fine when using the mouse to move the group, but I couldn't get the cut/paste command to work like the earlier move command eg PASTE (>0 0) (0 -40)    ...it was just saying buffer empty or similar.

     

    There must be a slick way that I've yet to discover of highlighting a group of components with the mouse, then duplicating them with a set move offset ....

     

    So here's what I'm doing

     

    1. GROUP ALL (this highlight everything)

    2. COPY (>0 0) (0 -40);    (I was hoping this would move the copied components up the board layout by 40mm, but I get an error "paste buffer is empty")

     

    please put me out my misery!

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Robert Smith schrieb:

     

    Prior to posting, I did try experimenting with the cut/paste commands

    ...they work fine when using the mouse to move the group, but I

    couldn't get the cut/paste command to work like the earlier move

    command eg PASTE (>0 0) (0 -40)    ...it was just saying buffer empty

    or similar.

     

    You didn't look exactly at the function and syntax of CUT and PASTE, did

    you? Both commands ask for one coordinate entry (the reference

    position). Of course PASTE has nothing in the buffer if you didn't CUT

    it before.

     

    There must be a slick way that I've yet to discover of highlighting a

    group of components with the mouse, then duplicating them with a set

    move offset ....

     

    There's no slick way, just follow the command reference and do it

    exactly as you would with the mouse.

     

    So here's what I'm doing

     

    1. GROUP ALL (this highlight everything)

    2. COPY (>0 0) (0 -40);    (I was hoping this would move the copied

    components up the board layout by 40mm, but I get an error "paste

    buffer is empty")

     

    COPY does not work on groups in the board, that's why I mentioned CUT

    and PASTE.

     

    It's so simple:

     

    1. GROUP all

    2. CUT (0 0);

    3. PASTE (0 -40);

     

    Tilmann

     

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Thanks again (like *really* thanks!)

     

    I did look at the manual....I dunno what it is about the Eagle command line language - I can make more sense of the hubble space telescope maintenance manual than  'simple' eagle commands! ;-)

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Robert Smith schrieb:

     

    I did look at the manual....I dunno what it is about the Eagle

    command line language - I can make more sense of the hubble space

    telescope maintenance manual than  'simple' eagle commands!

     

    There is no particular "command line language".

    All commands can be entered by mouse or by keyboard as well (or even be

    run as script). That makes it extremely powerful and precise (when using

    coordinate entry).

     

    For commands and their syntax, HELP is your friend.

    (i.e. HELP CUT, HELP PASTE...)

     

    Tilmann

     

    • Cancel
    • Vote Up 0 Vote Down
    • 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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube