powered by CADENAS

Manual

Manual

3.3.6.8. Attributmapping

Wenn Sie PARTsolutions-Attribute nach PRO.FILE übergeben möchten, dann müssen diese in der Konfigurationsdatei ifprofile.cfg in einem eigenen Block deklariert werden.

[AttributeMapping(is3d)]
Attr_Content_00 =PDMDocumentAttributes
Attr_Section_00 =PDMPROFILEATTR1

Beispiel für ein "PartField":

[PDMDocumentAttributes]
NFT_STK0="REREwr"

Beispiel für ein Dokumenten-Feld:

[PDMDocumentAttributes]
DOC_VSTL1="ERP_PDM_NUMBER"
DOC....="CADENAS_ATTR"

Beim Checkin werden nun die spezifizierten PARTsolutions-Felder auf die zugeordneten PRO.FILE-Dokumente und/oder Teile-Felder übertragen.

Die Datensätze werden aber nur beim ersten Export aus PARTsolutions übertragen.

Spätere Änderungen werden nicht mehr exportiert, da das Teil ja in PRO.FILE bereits vorher angelegt und gesperrt wurde. AUSNAHME: Wenn OVERWRITE_EXISTING_PARTFIELDS auf 1 gesetzt ist, dann werden Felder alter TEILE (NFT_...) überschrieben.

Attributmapping in den variablen Teilestamm

Möglich ab Version 9.04.

Detaillierte Hinweise hierzu finden Sie in der Konfigurationsdatei.

Im Folgenden sehen Sie einige wichtige Auszüge:

Es werden zwei Blöcke deklariert:

[AttributeMapping(is3d)]
Attr_Content_00 =ProFileDocumentMapping
Attr_Section_00 =ProFileDocumentMapping
Attr_Content_01 =ProFilePartMapping
Attr_Section_01 =ProFilePartMapping

[ProFileDocumentMapping]
;This section is for ProFile documents. Each Cadenas part is represented by a ProFile document 
;in ProFile -> this mapping is for all Cadenas parts.

#:HELP;default; Example for a DocumentField.
;DOC_VSTL1=CNS TEST VAL

[ProFilePartMapping]
;This section is for ProFile parts. Only the RootDoc will be linked to a ProFile part and 
;only if it has an ERP-Number -> this section is only for Cadenas RootDocs.
;Caution: If you want to use SML numbers the key used to set the "part-type" 
;(e.g. to "Normteil") has to be the first one in this section.

#:HELP;default; Instructions:
;If you have to differ between fields with the same name (e.g. NFT_STK0) but different 
;SML-numbers you can set the SML-number in the following way:
;<FieldName>{#1}=<value1>
;<FieldName>{#1}_BLOCKNUMBER=<SML-number1>
;<FieldName>{#2}=<value2>
;<FieldName>{#2}_BLOCKNUMBER=<SML-number2>
;CAUTION: The Format has to be exactly like in the example: 
;<FieldName>{#<indexNumber>}=<value> . NO WHITESPACES !!!

[Hinweis] Hinweis

Damit PartMapping ermöglicht wird, muss im PARTdataManager auch eine ERP-Nummer vergeben werden.

Beispiel ohne SML Nummer

NFT_FLO0=?GetObject("iface.calcnameservice").start(0).Format("<ATTR(ERP_PDM_NUMBER)>").value()

Beispiel mit SML Nummer und 2 Feldern mit demselben Namen:

NFT_FLO0=?GetObject("iface.calcnameservice").start(0).Format("<ATTR(ERP_PDM_NUMBER)>").value()

NFT_STK0{#1}=Value1
NFT_STK0{#1}_BLOCKNUMBER=1531
NFT_STK0{#2}=Value2
NFT_STK0{#2}_BLOCKNUMBER=1764