# Cadsoft Eagle Library: How to create device variant?

I'm creating a custom device in Eagle Library. Generally I need two device, let's say they're CONN2.54_1 and CONN2.54_2. These two devices are connectors, they both have 4 pins, thus they have the same symbol. The difference is the package, one is vertical mount and one is horizontal.

Now I can create 2 separate device successfully. However I want to know how to group them under one "sub-category" in the Library?

For example: when I use the add button in the Schematic Editor, my custom Library should appear like:

MY_LIBRARY\ (This is the main library)

  CONN2.54\       (There's a sub-folder name CONN2.54)


      CONN2.54_1  (The first device is inside the sub-category)
CONN2.54_2  (The second device is also inside the sub-category)


Thank you!

• Typically you would create one device and assign it two packages. If you are having issues with it not letting you do that, make sure you are giving the second variant a variant name - the default only works for the first package option. – Chris Stratton Aug 5 '16 at 2:41