Component Library

Your Ad Here


A component library is an .xml file that cross-references the components in the from-to list to the SolidWorks part documents for those components. It also defines connector data for use when you create a harness drawing with the harness flattening and detailing functionality. (If you are not importing data with a from-to list and are not going to create a harness drawing, you do not need a component library.)

To create a component library, do one of the following:

You can also use the Routing Electrical Library Wizard to help you create, edit, and import electrical cable and component data.

The component library contains the following fields.

Field

Description

Part number

A unique value for each component.

The value in this field must match the value in the Part number field in the from-to list.

Library part name

The name of the SolidWorks part for this component, such as db15e.sldprt or c:\myparts\plug.sldprt. This can be a relative pathname (relative to the location of the component library .xml file) or a full pathname.

Configuration name

The configuration of the SolidWorks part to use for this component.

Description

A text description of the component. This field is for information only; the value is not used by the software.

Pins

A comma-delimited list of pin names/numbers (for example, 1,2,3,4,5 or In,Out,Gnd). This field is used only when you create a harness drawing.

Terminals

A comma-delimited list of terminal part numbers that apply to the connector (for example, 3289435,34872634,485903). This field is used only when you create a harness drawing.

Size

A numeric value or dash-delimited range of values representing the allowable sizes of terminals or wires that can fit into the connector's pin cavities (for example, 2.5 or 2.5-4.0 for millimeters, or 20 or 20-24 for gauge.). This field is used only when you create a harness drawing.

To create an Excel file for import into a component library:

Create an Excel file containing the fields listed in the table above. Keep the following in mind:

To import an Excel file into a component library:

  1. Click Routing, Electrical, Import Component Library.

  2. Set options in the PropertyManager.

  1. Click .

    The Excel file is imported into a component library (XML file).

To edit an existing component library:

  1. Click Routing, Electrical, Open Component Library.

    The Component Library dialog box appears and displays the most recently accessed library.

  2. In the dialog box:

When you browse to the part document, you can also select a configuration.

  1. Click Save to save the edited values in the existing library, or Save As to save the edited values in a new file.

  2. Click OK.

 

Return SolidWorks Help Index

Your Ad Here