Integration with Other Applications > Integration with Cadence Allegro Design Workbench > Library Setup and Maintenance > The Library Attributes Mapping Files
  
The Library Attributes Mapping Files
Allegro Design Workbench Library has several synchronization files (mapping.xml, query.xml and sync.xml) that are located at the directory: $ADW_XL_INTEG_ROOT/pcbdw_lib/exchange/sync/windchill/configuration.
ADW Gateway Client side Installer brings templates of these files that have to be edited by the ADW Librarian. If mapping.xml already exists, it is renamed to mapping.xml.bak and a new 11.0 mapping.xml file is created by the Library side installer.
Configuration of the mapping.xml file has changed for ADW Gateway 11.0. The section ECAD Component/Attributes does not work for ADW Gateway synchronization and must be kept empty. The WCSyncTracker/Attributes is delivered ready for ADW Gateway and has the following format:
<Mapping type=ACSyncTracker”>
<Attributes>
<Attribute source=”WPMOid” target=”Master ID”/>
<Attribute source=”WPOid” target=”Exported ID”/>
<Attribute source=”WPOid” target=”Imported ID”/>
</Attributes>
In query.xml you must add the following attributes to the <Query type="ECAD Component"…> section in order to output the required attributes Name, Part Number, and Modified to the xml file:
<Query type="ECAD Component" limit="4">
<Attributes selected="true">
<Attribute name="name" value="*" />
<Attribute name="Part Number" value="CDN-MEM-003*" />
<Attribute name="revision" value="last" />
<Attribute name="owner" value="*" />
<Attribute name="Comment" value="*" />
<Attribute name="current" value="*" />
<Attribute name="modified" value="*" />
<Attribute name="class" value="*" />
<Attribute name="Distribution Status" value="*" />
</Attributes>
<Relations>
<Relation name="Sync Tracker" fromtype="ECAD Component" totype="WCSyncTracker"
filter="negate" export="false">
<Attribute name="Synced" value="true" />
</Relation>
<Relation name="Sync Tracker" fromtype="ECAD Component" totype="WCSyncTracker"
filter="none" export="false">
<Attribute name="Synced" value="false" />
</Relation>
<Relation name="Component Specification" fromtype="ECAD Component"
totype="Allegro Footprint Model">
</Relation>
<Relation name="Component Specification" fromtype="ECAD Component"
totype="ConceptHDL Cell Model">
</Relation>
<Relation name="Alternate Footprint" fromtype="ECAD Component"
totype="Allegro Footprint Model">
</Relation>
</Relations>
<Interface type="ECAD Component Classification" name="*">
<Attribute name="name" value="*" />
</Interface>
</Query>
To import relationship attributes to Windchill parts when the ADW Library parts are imported to Windchill, add the following to query.xml
<Relation name="Sync Tracker" fromtype="ECAD Component"
totype="WCSyncTracker" filter="negate" export="false">
<Attribute name="Synced" value="true" />
</Relation>

<Relation name="Sync Tracker" fromtype="ECAD Component"
totype="WCSyncTracker" filter="none" export="false">
<Attribute name="Synced" value="false" />
</Relation>
Refer to the Allegro Design Workbench documentation for more details.
The Client site Installer includes examples (templates) of the ADW-XL library specific files (mapping.xml, query.xml, and sync.xml) in the directory:
$ADW_XL_INTEG_ROOT/pcbdw_lib/exchange/sync/windchill/configuration
It also includes an ADW_XL Library specific file settings.sync in the directory:
$ADW_XL_INTEG_ROOT/pcbdw_lib/exchange/sync/windchill
* 
The Installer places these files only if they do not exist (except for mapping.xml). It does not overwrite existing files (except for mapping.xml) unless the new format is different from previous version. If the old mapping.xml file exists, it is renamed to mapping.xml.bak file and then the latest version of mapping.xml is installed.
* 
The files that the Installer includes are just templates (examples), and must be edited before you can use them. For further details, refer to the Cadence ADW Documentation.