cancel
Showing results for 
Search instead for 
Did you mean: 

Solidworks attributes-to-sap Issue

Former Member
0 Kudos

Hi expert,

I've defined property "CAIZHI" in Solidworks file properties as below.

Now I want the property  value of "CAIZHI"  is assigned to one characterisic "Z_CAIZHI" of DIR_CLS automatically by "attributes-to-sap.xml"  in ECTR as below.

Question:

Below is my definition on "attributes-to-sap.xml" , is it right?

Example:

In "attributes-to-sap.xml"

<?xml version="1.0" encoding="ISO-8859-1"?>

<mapping>

  <section name="SWPRT" description="Model mapping from SOLIDWORKS 3D to SAP">

      <DIR_CLS class="CAD_SLW" CLASSTYPE="017" CHARACTERISTIC="Z_CAIZHI">

          <XFORMAT STRING="{0,char,#####################.##}">

             <APPL_ATTRIBUTE NAME="CAIZHI" />

          </XFORMAT>

      </DIR_CLS>

  </section>

</mapping>

Accepted Solutions (0)

Answers (1)

Answers (1)

GerhardHimmelsb
Advisor
Advisor
0 Kudos

Hello Martin,

please try another definition in your xml file:

<DIR_CLS class="CAD_SLW" CLASSTYPE="017" CHARACTERISTIC="Z_CAIZHI">

<APPL_ATTRIBUTE NAME="CAIZHI" />

</DIR_CLS>

Regards,

Gerhard

Former Member
0 Kudos

Hi Gerhard,

Thanks for your guidence.

Follow your suggestion I defined the XMLfile. But it didn't work.

Below is my definition:

<section name="SWPRT" description="Model mapping from SOLIDWORKS 3D to SAP">

       <DIR_CLS class="CAD_SLW" CLASSTYPE="017" CHARACTERISTIC="Z_CAIZHI">

             <APPL_ATTRIBUTE NAME="CAIZHI" />

      </DIR_CLS>

      <DIR field="DOCUMENTDESCRIPTION">

             <APPL_ATTRIBUTE name="Name"/>

         </DIR>

</section>

Same issue in "attributes-from-sap.xml"

  <section name="SLWMDL" description="Additional attribute mapping for CAD models">

    <APPL_ATTRIBUTE name="DrawNo" hidden="false">

      <DIR field="Documentnumber"/>

    </APPL_ATTRIBUTE>

  </section>

Best Regards,

Martin

david_papmahl
Member
0 Kudos

Hello Martin,

could you please open a ticket (component PLM-ECC-WKS) and attach your log and configuration files.

It's hard to analyze the problem in this way, we need more detailed informations.

Thanks, David