To Add a Part to the Library
Download 00_library_part to start with this chapter.
Load the new library component
  1. Erase all models from the Creo session.
  2. Copy the file E1920.PRT from <install_tutorial>/models/library_prt into an new folder<install_emx90>/components/mm/library/tutorial.
  3. Open the model E1920.PRT from this directory.
    Image
Create an Image and Define the Component BOM Data
  1. Start EMX Part Mode  Administrator Tools  Component Editor Image.
    The Component Editor dialog box opens.
    Image
  2. Click Open model or *.dat file
    The File Open dialog box appears. Select e1920.prt from current working directory. The dialog is filled with default library component information.
    Image
  3. Adjust the model orientation and click ImageSnapshot
     Note
    It is recommended to display the assembly reference features so they can be identified in the image. You may edit the picture with a regular image editor afterwards.
    Image
    Define the BOM data for this component.
    Global entries of the part name dat that can be found for regular EMX components in the EMX Options  Part Names sheet.
    Image
  4. In the Source cell select Local. The part name rule will be written into the EMX_BOM_INFO section of the dat file directly and applied with highest priority.
  5. Set Add in BOM to Y so this component will be displayed in the bill-of-materials later.
  6. Enter the Part name <pre>_E1920_<id>.
  7. Enter the Alternate part name <instance>.
  8. Keep Part ID as 99<2id>.
  9. Keep BOM Name as <instance>.
  10. As target Layer enter 99_LIBRARYCOMP. The component will be place on this layer after the assembling process.
  11. Enter Group Layer -.
  12. Enter BOM Name Magnetic*ejector*set*cover. The Asterisk is used as a placeholder for spaces
  13. Keep Order Number as <ordnumber>.
Define the Assembly References
  1. Click the tab Assembly References.
  2. Click Image and select the coordinate system PLACEMENT_CSYS from the model E1920.PRT.
    A new line appears in the assembly constraints.
  3. Select this line (with ID1) and edit the entry for Reference Name in the edit area under the list to CSYS.
    Image
Define the Instances
  1. Click the tab Instances.
    In the table all instances that are defined for the library component can be seen.
    By default only one instance with the current model values is added to the table.
    In the initial step all instance dimensions need to be defined I the table
  2. Select the column Instances and click ImageInsert columns before  Image Dimensions from the Right-Mouse menu to add a set of instance dimensions to the table.
    Image
    A dialog box opens which list all defined dimensions symbols of the part model. Select S, H, LG, LG1 and LG2 from the list and confirm with OK. The instance dimensions are added to the table.
    Image
    Use ImageShift columns to the left and ImageShift columns to the right to change the order in the table.
    Image
  3. There are now two different ways to edited the isntances rows.
    • Select the rows and use Image Insert rows below and Image Insert rows above to add additional rows. Use Double-Click to edit the cell values
    • Use the Copy-Paste tools and edit the instances in Excel
    In this tutorial the focus is on the second option.
  4. Click Copy Image to copy the current content of the table.
    Image
  5. Open an MS Excel instance and paste the content to the Excel-Sheet.
    Image
    All rows will be displayed in the Excel-Sheet.
    Image
  6. Enter instances that can be found in the Meusburger Digital catalog.
    Image
    Image
     Note
    The first column always contains the type of the component in the case E1920.
    Make sure that the column for Instances and Order Number is correct and has a unique name. Otherwise EMX can not added the correct ordering number to the BOM. The entries in Instances should be proper Creo model names, so they must not contain “/” or “,”. This names will be used as partname if the wildcard <instance> is used.
  7. Copy the final instance sheet to the EMX instances list with Paste Image
     Note
    In MS Excel select the exact area of cells you want to paste including the header row.
Define the Nominal Dimensions
  1. Click the tab Nominal Dimensions.
  2. Select the table and click Image Insert rows below from the Right-Mouse menu.
    A dialog box opens which list all instance dimension which were defined in the instances table. A nominal dimension can only be defined in case it is a valid instance dimension
    .
  3. Select the dimensions LG and H from the list Click OK to confirm the selection. Two new lines appear in the Nominal Dimension list.
    Use ImageShift rows up and ImageShift rows down to change the order in the table.
  4. Select the LG line and overwrite the Dimension Name (symbol LG) with length
  5. Select the H line and overwrite the Dimension Name (symbol H) with height.
Define cutout UDFs
  1. Click the tab UDFs .
    For library components the UDF QUILT_CUT is used by default.
  2. Select the table Cut Quilts and click Image Add row from the Right-Mouse menu. The Selection menu appears.
    Select the Quilt feature CUT_QUILT in the E1920.PRT.
     Note
    Valid cut quilts will be automatically detected and added to the cut quilts list.
    Image
    No Predefined threads should be defined for this example.
Save the Library Component
  1. Click Image
    EMX will create a e1920.dat file and a e1920.gif-file in the directory where the library part is located. The model will also be saved again as e1920.prt.1. Delete the original file e1920.prt and rename the new file without an index. This step is not required, but it helps you to keep the library folders clean.
    Image
     Note
    You don’t have to create the tiny image e1920_tn.png manually. This image is used in the Library Component dialog box for preview. If the image does not exist, EMX will create it use the setting of LIBRARY_THUMB_SIZE to determine the size.
    The component is now fully defined.
Assemble the component
  1. Open the mold base TUTORIAL.ASM
  2. Create a coordinate system as assembly reference for the plate as shown in the picture below.
    Image
  3. Make sure that the orientation of the coordinate system is correct. X-Vector is normal to surface and Z-Vector points into opening direction of the mold base.
  4. Select EMX Components  Library  Assemble Image.
    Image
  5. Select the directory meusburger from the directory tree.
  6. Select part e1920 with Double-Click.
  7. Set the Length (LG) value to 446.
  8. Set the Height (H) value to 86.
  9. As assembly reference (1) CSYS select the recently created coordinate system.
    Image
  10. Leave the Library Component dialog with OK .
    Image