9 Replies Latest reply on Nov 10, 2011 7:03 AM by

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

    HankMcSpank

      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?

        • Re: Can I move a copy a 'group' components by a set distance via the command line?

          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

           

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

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

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

                  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

                   

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

                      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.

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

                          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.

                           

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

                              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!

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

                                  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