This chapter defines the file format expected by PDM Gateway for creating SOLIDWORKS documents.


Information to be processed :

We take the following example below:

  • A document to be updated whose identifier is: "A_001.sldasm »

The attributes to be updated are :

    • Attribute: "Designation "/ New value: "Proto Machine »
    • Attribute: "Supplier "/ New value: "VISIATIV »
  • A document to be updated whose identifier is: "P_120.sldprt»

The attribute to be updated is :

    • Attribute: "Supplier "/ New value: "VISIATIV »


In this case if the article does not exist we will create it.

If the item identifier is defined by the file name with extension, it is not necessary to add the tag that defines the file type because the extension defines the type.

Otherwise you have to add theTYPE with the sldprt or sldasm extension.


XML file to be processed by the :

Sample file received from ERP - XML format :


<?xml version="1.0" encoding="utf-8" ?> 

< PDM_GATEWAY>

                                               < PDM_GATEWAY_ACTION name="Type" value="Import_Attributs" />

                                                 <PRODUCTS>

                                                       <PRODUCT>

                                                               <FIND name="Name" value="A_001" /> 

                                                               <FIND name="CONFIG" value="Default" /> 

<FIND name="TYPE" value="sldasm" /> 

                                                               <FIELD name="Designation" value="Proto Machine" /> 

                                                               <FIELD name="Supplier" value="VISIATIV" /> 

                                                       </PRODUCT>

                                                       <PRODUCT>

                                                               <FIND name="Name" value="P_120" /> 

<FIND name="TYPE" value="sldprt" /> 

                                                                <FIELD name="Supplier" value="VISIATIV" /> 

                                                       </PRODUCT>

                                               </PRODUCTS>

</ PDM_GATEWAY>


Note: This file can contain the update of several attributes for a given document, and/or several documents to be processed .


Sample file received from ERP - CSV format :


 


The "Designation" and "Supplier" are ERP fields and the correspondence must be defined in the configuration interface.