# EAGLE- how to create another package based on existing one?

**URL:** <https://forum.arduino.cc/t/eagle-how-to-create-another-package-based-on-existing-one/175925>\
**Category:** Hardware Development\
**Created:** [July 30, 2013, 4:43pm UTC](https://forum.arduino.cc/t/eagle-how-to-create-another-package-based-on-existing-one/175925 "2013-07-30T16:43:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuzengqiang](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/liuzengqiang/32/213605_2.png) [@liuzengqiang](https://forum.arduino.cc/u/liuzengqiang)\
**Post date:** [July 30, 2013, 4:43pm UTC](https://forum.arduino.cc/t/eagle-how-to-create-another-package-based-on-existing-one/175925/1 "2013-07-30T16:43:22Z")

</div>

Here is what I have:

symbol for 16X2 LCD  
package for 80mm\*36mm 16X2 LCD with 4 mounting holes  
device that combines the symbol and package

Here is what I want:

another package duplicated from the original but I want to remove the mounting holes  
This package should also be used in the device so I don't have to redo the wiring between symbol and package.

What I used to do is to copy the package to a temp library, make changes, rename package, save, and then copy it back to my main library. But then I will have to redo the wiring. Any better way to do this? Thanks.

---

<div class="post-metadata">

**Author:** ![liuzengqiang](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/liuzengqiang/32/213605_2.png) [@liuzengqiang](https://forum.arduino.cc/u/liuzengqiang)\
**Post date:** [July 30, 2013, 7:05pm UTC](https://forum.arduino.cc/t/eagle-how-to-create-another-package-based-on-existing-one/175925/2 "2013-07-30T19:05:28Z")

</div>

One shortcut I found is to create a new package in my library, save, then open the original package, select everything and group cut. Then open the new package and use paste. I don't have to use a temp library. Make sure you right click at the origin otherwise you will have hard time lining up pasted part in the new package. I still have to do all the pin connections though. Hoping for a way that will avoid connecting all the pins again. This is prone to mistake.

Update: if you name your pins in the package view the same as you name your pins in the symbol view, then connecting pins is trivial. I just have to name all the pins in package from now on.

---

<div class="post-metadata">

**Author:** ![kg4wsv](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kg4wsv](https://forum.arduino.cc/u/kg4wsv)\
**Post date:** [August 5, 2013, 2:31pm UTC](https://forum.arduino.cc/t/eagle-how-to-create-another-package-based-on-existing-one/175925/3 "2013-08-05T14:31:03Z")

</div>

Open the library where you want to create the new package. Issue the command

```cpp
copy old.pac@old-library-name

```

If you want to give it a new name, append it:

```cpp
copy old.pac@old-library-name new.pac

```

You must include the library name even if it's the same library you have open for edit. (note, this is for eagle 5).

-j

---

<div class="post-metadata">

**Author:** ![liuzengqiang](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/liuzengqiang/32/213605_2.png) [@liuzengqiang](https://forum.arduino.cc/u/liuzengqiang)\
**Post date:** [August 7, 2013, 1:18am UTC](https://forum.arduino.cc/t/eagle-how-to-create-another-package-based-on-existing-one/175925/4 "2013-08-07T01:18:32Z")

</div>

Thanks.

How do you do the copy if the library is in a subfolder? Mine is ".\My lib\Ics.lbr"  
It kept trying to open My.lib, thinking the My is the name of the library, instead of part of a folder name.

---

<div class="post-metadata">

**Author:** ![liuzengqiang](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/liuzengqiang/32/213605_2.png) [@liuzengqiang](https://forum.arduino.cc/u/liuzengqiang)\
**Post date:** [August 7, 2013, 1:30am UTC](https://forum.arduino.cc/t/eagle-how-to-create-another-package-based-on-existing-one/175925/5 "2013-08-07T01:30:59Z")

</div>

OK I tried copy with context menu and it only opens that part and not making a copy. If I rename the file and check the package list again, the original part is renames. So unless command line can do the copy, this is not working.

BTW, I found this quite useful:

You can choose copy connections from a different part on this dialog. Just select a package you already connected to the symbol for the device and your pins instantly all connected. I'm happy with that. For my own copy part, I just cut an existing part, create a new one, and then paste it to the new one.

 ![EAGLE copy connection.jpg](https://europe1.discourse-cdn.com/arduino/original/4X/c/1/e/c1e85473f904a29fb5a1339fa59963dad904eb1d.jpeg)

---

<div class="post-metadata">

**Author:** ![kg4wsv](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kg4wsv](https://forum.arduino.cc/u/kg4wsv)\
**Post date:** [August 8, 2013, 2:07am UTC](https://forum.arduino.cc/t/eagle-how-to-create-another-package-based-on-existing-one/175925/6 "2013-08-08T02:07:57Z")

</div>

> So unless command line can do the copy, this is not working.

Sorry, should have said that was a command line (although the font was a hint).

If the source library is selected the copy command should find it.

-j

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 12:05pm UTC](https://forum.arduino.cc/t/eagle-how-to-create-another-package-based-on-existing-one/175925/7 "2021-05-06T12:05:37Z")

</div>

Closed on May 6, 2021, 12:05pm UTC


