powered by CADENAS

Manual

Manual

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

PARTlinkManager -> Extras menu -> Configure ERP environment -> dialog box Configure -> tabbed page Standard name | Standard name (short) | BOM name.

Example: Change of Standard name

Example: Change of Standard name

[Important] Important

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

The entire CAD administration, including definition of name rule, is performed via CAD configuration files under $CADENAS_SETUP/if<cad name>.cfg.

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

By default, on the tabbed pages Standard name, Standard name (short) and BOM name NO entries should be performed or only in conjunction with Consulting! By default, in PARTdataManager, then in the 3D view, the default Standard name is displayed, the default BOM name over the table and in the docking window Bill of material the default BOM name as well.

The export settings under $CADENAS_SETUP/if<cad name>.cfg will be applied without change.

Part designation: 3D view -> Standard name [NB] | table -> BOM name [LINA] | docking window "Bill of material" -> "BOM name" [LINA]

Part designation: 3D view -> Standard name [NB] | table -> BOM name [LINA] | docking window "Bill of material" -> "BOM name" [LINA]

If the BOM name, in the dialog box Configure -> tabbed page BOM name (plinkcommon.cfg -> block [PARTdataManager] -> key LINA) is changed, then this change only affects the docking window Bill of material in the PARTdataManager.

The BOM name displayed over the table can only be changed via configuration file psolopt.cfg.

[SETTINGSTABLE]
TABDESCRIPTION=$LINA. additional text

4.25.4.3.2.6.1. Examples

Example 1:

If there is no entry on the tabbed page Standard name, the name is generated with the default Standard name [NB].

This would be according to:

NB='$NB.'

Example 2: A condition is used.

If there is no ERP number available then the NB (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.25.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.

Calling the external script is performed via NB=TSCRIPT('nb.ruletable','$CALCED_ROW.','$NB.').

Set the entries under Standard name, Standard name (short) or 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

For self-created vbs files, a special license is required.

You can only use a script nb.vbs, if in PARTadmin; in configuration file plinkcommon.cfg, in the block [Common], the key NBMODULE is inserted and the value set to nb.

4.25.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.25.7.7.1, “Change standard descriptions according to project ”.

4.25.4.3.2.6.4. Syntax

To define the Standard name and thus the CAD file name you can use IF conditions, Fortran syntax, constants and ERP variables (launch with '$Variablename.') to create names:

Fortran syntax:

.EQ.

eq ual

.GT.

g reater t hen

.GE.

g reater e qual

.LT.

l ower t hen

.LE.

l ower e qual

.AND.

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

.OR.

(one of both conditions - right and/or left of .OR. - must be filled)

.NE.

n ot e qual

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 name

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 values with name

CATALOG_NAME

Name of catalog

CATALOG_DESC

Visible name of catalog (in current language)

SHORTNB

Short standard description

CADSYSTEMNAME

Name of the registered CAD system (if more than one are registered, separate by comma)

CALCED_ROW

The row number currently being calculated

NB

Standard name

LINA

BOM name

NENN

For DIN 912 z.B. $d.x$L. (only for standard parts, not catalogs)

Any ERP field

Activate as all constants via $xy.