Администрирование предприятия > Загрузка данных Windchill > Loading Product Objects and Parts: Windchill PDMLink Example > Loading Relationships Between Parts and Documents
  
Loading Relationships Between Parts and Documents
The describedBy link on a part links to a specific document iteration. The referencedBy link links to a document master, rather than a specific iteration of the document.
The <csvPartDocReference> tag creates the referencedBy link and the <csvPartDocDescribes> tag creates the describedBy link.
Example 1
In this first example, document number DOC100 is added as a reference document on part PART100, version D, iteration 1, in the Manufacturing view.
The XML should resemble the following:
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standardX20.dtd">
<NmLoader>
<csvPartDocReference handler="wt.part.LoadPart.createPartDoc
Reference">
<csvdocNumber>DOC100</csvdocNumber>
<csvpartNumber>PART100</csvpartNumber>
<csvpartVersion>D</csvpartVersion>
<csvpartIteration>1</csvpartIteration>
<csvpartView>Manufacturing</csvpartView>
</csvPartDocReference>
</NmLoader>
Example 2
In this second example, document number DOC100, version A, iteration 2 is added as a describing document for part number PART100, version D, iteration 1, in the Manufacturing view.
The XML should resemble the following:
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standardX20.dtd">
<NmLoader>
<csvPartDocDescribes handler="wt.part.LoadPart.createPartDoc
Describes">
<csvdocNumber>DOC100</csvdocNumber>
<csvdocVersion>A</csvdocVersion>
<csvdocIteration>2</csvdocIteration>
<csvpartNumber>PART100</csvpartNumber>
<csvpartVersion>D</csvpartVersion>
<csvpartIteration>1</csvpartIteration>
<csvpartView>Manufacturing</csvpartView>
</csvPartDocDescribes>
</NmLoader>
Tag Descriptions
As shown in the previous examples, the following tags are used by both the <csvPartDocReference> and <csvPartDocDescribes> tags to create the referencedBy and describedBy link:
<csvdocNumber>—The document number. A value is required.
<csvdocVersion>—The document version. If no value is specified, the latest version is used.
<csvdocIteration>—The document iteration. If no value is specified, the latest iteration is used.
<csvpartNumber>—The part number. A value is required.
<csvpartVersion>—The part version. If no value is specified, the latest version is used.
<csvpartIteration>—The part iteration. If no value is specified, the latest iteration is used.
<csvpartView>—The part's view. If no value is specified, the part not assigned a view is used.