5.12.6.  Batch classification of projects

[Note]Note

The Classify projects in batch run [Batch classification of projects] function described here and the Add projects to classification function have certain application overlaps.

  • Add projects to classification:

    • Full overview of ALL classes and features

    • Characteristics can reference a variable [Variable] or a value [Value] or contain a reference [Reference] to another class.

    • Transfer of classification information from other classifications or parameters.

  • Classify projects in the batch run [Batch classification of projects]:

    • Display of the most important classes and features

    • Identification and notification of unapproved projects

    • Display of potentially available variables with the respective number of project hits

    • Setting and deleting assignments

Use the appropriate automatism for the respective purpose.

You can use the Classify projects in batch run [Batch classification of projects] plugin ( "Customize order number and type code " plugin in older versions) to successively assign the desired variable to projects for a selected class characteristic.

You select a variable. The plugin runs through the whole structure and assigns the classification to all projects containing the variable.

Afterwards a listing will show for which projects the assignment has been successful and for which not. In a next step now you can use another variable for assigning as long as all projects are classified accordingly.

Precondition

The files attribute_classification.cfg, attribute_classification.def and attribute_classification.vbb must be available in the plugin directory ($CADENAS/libs/all/plugins) must be present.[44]

Procedure

  1. In PARTproject under Project selection, select the desired directory level (catalog main directory or any other directory) and then start the plugin under Automation -> Classify projects in batch run [Batch classification of projects].

    Batch classification of projects

    Batch classification of projects

    -> The Attribute Classification dialog box opens.

  2. Select the Unassigned [Unclassified] line in a group below the desired class characteristic (here in the example Order number ).

  3. Expand the list field under Set variables and select the variable that contains the corresponding value for the selected class characteristic (here "ARTNO").

    The number in brackets identifies the amount of projects which contain the variable. If the number of projects is very big so that it cannot be detected within 5 seconds, no value is displayed.

  4. Confirm with Apply.

    -> All projects containing the set variable are classified accordingly. (The process of assigning may last a moment.)

    In this example, now the status light is showing yellow, because not all projects could be classified (because the column "ARTNO" has not been available or another variable does contain the article number or it's about a link project).

    [Tip]Tip

    Double-click on a project to open it in PARTdataManager. You can then also open it in PARTproject in the same way.

    34 of 37 projects have been classified.

    34 of 37 projects have been classified.

    -> The variable is automatically entered in the Variable with order number field or in the Class variables in dialog.

    Edit project -> General tab -> General menu item -> Variables -> Variable with order number

    Edit project -> General tab -> General menu item -> Variables -> Variable with order number

    Edit project -> General tab -> Classification menu item -> Characteristics (CNS) -> Class variables dialog

    Edit project -> General tab -> Classification menu item -> Characteristics (CNS) -> Class variables dialog

  5. Select another variable for the projects that have not yet been assigned and click Apply again.

    Once all projects found for the selected class attribute are classified, the status light becomes green.

Configuration

The dialog can be adjusted in the configuration file attribute_classification.cfg:

  • The CNS classification is displayed as standard. Any other classifications can be added (see below).

  • Adjustment of group names and value names

  • Adding, deleting of any attributes

Batch classification of projects

Batch classification of projects

Extend dialog for other classifications

For this, under "TABS" enter a further classification separated by comma and create a block with the same name.

[COMMON]
#TABS=CNSERPBASE,CNSPHYPROP,CNSSPECPROPARC
TABS=CNS,IFC4
ANALYSIS=Common Classes / Material Masterdata,CNSORDERNO,CNSTYPECODE,- Analysis -

[CNS]
CNSORDERNO=CNSERPBASE,Common Classes / Material Masterdata,Order number
CNSTYPECODE=CNSERPBASE,Common Classes / Material Masterdata,Typecode
...
...
[IFC4]
IFC4_IFCADDRESSTYPEENUM=IFC4_IFCADDRESS,Gruppenname1,Wert1
IFC4_IFCTEXT=IFC4_IFCADDRESS,Gruppenname2,Wert2
IFC4_IFCLABEL=IFC4_IFCADDRESS,Gruppenname3,Wert3

Special function "Analysis"

In the Analysis group, a special evaluation is carried out for the ORDERNO (order number [Order number] ) and TYPECODE (type code [Type code] ) characteristics for the entire classification.

[Note]Note

Each project must have classified at least one of the two and not the same variable may be used.

  • No classification -> Error "Not defined"

  • Classification of ORDERNO and TYPECODE by the same variable -> Error "Double defined"

If no errors are found, the point - Analysis - is not displayed.

Example:

Example:

Distinction of cases:

ORDERNO leer
TYPCODE leer 
 Fehler,“Not defined“

ORDERNO auf Spalte BESTNR
TYPECODE leer 
 Ok

ORDERNO leer
TYPECODE auf Spalte CODE
 Ok

ORDERNO auf Spalte BESTNR
TYPECODE auf Spalte CODE
 Ok

ORDERNO auf Spalte BESTNR
TYPECODE auf Spalte BESTNR
 Fehler, „Double defined“




[44] This is the case as of V11 SP9.