4.24.4.3.2.6.  Tabbed pages "Standard name", "Standard name (short)", "BOM name"

PARTlinkManager -> Extras menu -> Configure ERP environment -> Configure dialog box -> Standard designation [Standard name] tab page | Standard designation (short) [Standard name (short)] | Parts list designation [BOM name].

Example: Changing the standard designation [Standard name]

Example: Changing the standard designation [Standard name]

[Important]Important

File names for the exported CAD document should be absolutely unique.

The entire CAD administration, including definition of the naming rule, is carried out by default via the CAD configuration files under $CADENAS_SETUP/if<cad name>.cfg by default.

Detailed information on CAD administration in general can be found at Chapter 2, PARTsolutions - CAD Integration - Administration . Detailed information on the creation of the CAD file name in particular can be found at Section 2.2.7, “Set file name ("FileName" key) and pool path ("poolpath" key) ”.

By default, NO entries should be made on the Standard designation [Standard name], Standard designation (short) [Standard name (short)] and Parts list designation [BOM name] tab pages, or only in consultation with Consulting! By default, in PARTdataManager the standard [Standard name] standard designation is then displayed in the 3D view, the standard parts list [BOM name] designation is displayed above the table and the standard [BOM name] parts list designation is also displayed in the parts list [Bill of material] docking window.

The setting under $CADENAS_SETUP/if<cad name>.cfg is used unchanged for the export to CAD.

Component designation: 3D view -> Standard designation [Standard name] [NB] | Table -> Parts list designation [BOM name] [LINA ] | Docking window "Parts list [Bill of material] " -> "Parts list designation [BOM name] " [LINA ]

Component designation: 3D view -> Standard designation [Standard name] [NB] | Table -> Parts list designation [BOM name] [LINA ] | Docking window "Parts list [Bill of material] " -> "Parts list designation [BOM name] " [LINA ]

If the parts list designation [BOM name] is changed in the Configure -> Parts list designation [BOM name] tab page dialog box (plinkcommon.cfg -> Block [PARTdataManager] -> Key LINA) dialog box, the change in the PARTdataManager only has an effect in the BOM [Bill of material] docking window.

The parts list designation [BOM name] displayed above the table can only be changed via the configuration file psolopt.cfg.

[SETTINGSTABLE]
TABDESCRIPTION=$LINA. additional text

4.24.4.3.2.6.1. Examples

Example 1:

If no entry is made on the Standard designation [Standard name] tab page, the name is created with the standard [Standard name] standard designation [NB ].

This would be according to:

NB='$NB.'

Example 2: A condition is used.

If no ERP number is available, the NB (standard designation [Standard name] ) is created by default, otherwise the ERP number is used.

Through the ERP_PDM_NUMBER uniqueness is ensured. The standard name provides a meaningful part in the file name.

IF ('$ERP_PDM_NUMBER.'.EQ.'')THEN
NB = '$NB.'
ELSE
NB = '$ERP_PDM_NUMBER._$NB'
ENDIF

Example 3:

If there are different strength, surfaces, etc. available for parts which are identic regarding their geometry then this can be considered in the naming rule.

E.g.: Creation of the file name by NB plus material.

NB=('$NB._$MAT_NAME.')

4.24.4.3.2.6.2. Change NB via vbs scripting

If the options in the entry field do not suffice, you can generate a reference to a vbs script and work with complex conditions.

The external script is called using NB=TSCRIPT('nb.ruletable','$CALCED_ROW.','$NB.').

The entries are made under standard designation [Standard name], standard designation (short) [Standard name (short)] or parts list designation [BOM name].

Script call

Script call

An exemplary script "nb.ruletable" could look like the following. The called function's name is "ruletable" in this example.

function ruletable(table,calced_row,orgNB)
  result=""
  mmrow=cint(calced_row)
  if mmrow >= 0 then
     tmp=table.NN
     normbezeichnung=table.rows.item(mmrow).resolvevariables("$NB.",0)

'0.************************************************
    pos=Instr(1,normbezeichnung,"DIN")
    if pos = 1 then
       result=tmp+"_"+table.rows.item(mmrow).resolvevariables("$NENN.$MAT_NAME.",0)
    end if

'1.************************************************
    if tmp="DIN 912" then
       result="ISO4762abcd"+"_"+table.rows.item(mmrow).resolvevariables
       ("$NENN.$MAT_NAME.",0)
    end if

'2.************************************************
    if tmp="DIN 2448" then
       result="DIN 2448"+"_"+table.rows.item(mmrow).resolvevariables
       ("$D._$S._$L.___$MAT_NAME.",0)
    end if

'3.************************************************
    if tmp="DIN 2576" then
       result=tmp+"_"+table.rows.item(mmrow).resolvevariables
       ("$NENN._$D1.$MAT_NAME.",0)
    end if

'4.************************************************
    pos=Instr(1,normbezeichnung,"FAG")
    if pos >= 1 then
       result=table.rows.item(mmrow).resolvevariables("$NB.",0)
    end if

'5.************************************************
    pos=Instr(1,normbezeichnung,"EO EL L-Verschraubung mit Dichtkegel")
    if pos >= 1 then
       result=table.rows.item(mmrow).resolvevariables("$ERP_PDM_NUMBER.",0)+
       "-EL"+table.rows.item(mmrow).resolvevariables("$ROHR.$S.",0)
    end if

'6.************************************************
       if tmp="DIN 7993-B 2" then
       result=table.rows.item(mmrow).resolvevariables("$ERP_PDM_NUMBER.",0)+
       "-A"+table.rows.item(mmrow).resolvevariables("$D1.",0)+"---DIN7993"
    end if

' *************************************************

    if result="" then
      result=orgNB
    end if

  end if
  ruletable=result
end function
[Note]Note

A special license is required for self-created vbs files.

You can only use the script nb.vbs if you insert the key NBMODULE in the configuration file plinkcommon.cfg in the Common block in PARTadmin and set this to the value nb .

4.24.4.3.2.6.3. Change NB according to project

If the NB is part of the naming rule the NB can be adjusted according to projects.

See Section 4.24.8.2.7.1, “Change standard descriptions according to project ”.

4.24.4.3.2.6.4. Syntax

To define the standard name [Standard name] and thus the CAD file name, you can use IF conditions, Fortran syntax, constants and ERP variables (call with '$Variablenname.') to form the name:

Fortran syntax :

.EQ.

eq ual (equal)

.GT.

g reater t hen (greater than)

.GE.

g reater e qual (greater than or equal to)

.LT.

l ower t hen (less than)

.LE.

l ower e qual (less than or equal to)

.AND.

(both conditions - right and left of .AND. - must be fulfilled)

.OR.

(one of the two conditions - to the right or left of .OR. - must be fulfilled)

.NE.

n ot e qual (unequal)

Constant

Meaning

CURRENT_DATE

Current date

CADENAS_LANGUAGE

Current language

PROJECT_VERSION

Project version

VALUERANGES

Values of all value range variables

VALUERANGESWITHNAME

Values of all value range variables with names of the variables

CHANGEABLEVALUES

Values of all value range variables that can be changed by the user, i.e. are not locked (see common.cfg - LockDimRange=0/1)

CHANGEABLEVALUESWITHNAME

Changeable value ranges with names

CATALOG_NAME

Name of the catalog

CATALOG_DESC

Visible name of the catalog (in the current language)

SHORTNB

Short standard designation

CADSYSTEMNAME

Name of the registered CAD system (if several are registered at the same time, separate the list with a comma)

CALCED_ROW

The line number that is currently being calculated

NB

Standard designation

LINA

Parts list designation

NENN

For DIN 912 e.g. $d.x$L. (Only for standard parts, not for catalogs)

Any ERP field

Address like all constants via $xy.