Configuring the Logistics Manager

With the Logistics Manager, logistical information can be changed to a specific set of definitions by configuring a macro named change_logistics.cmd in the logistics folder of the norms.

Using a logistical selection, part information will be available in relation to the selected report layout, in the sequence according to the Work Breakdown structure. The change_logistics.cmd macro can be used to change the values of the given data or part of it. In all cases only "Editable" fields in the logistical database layout will be changed.

The basic setup of the macro is as follows:

arguments string @Change

{

   Change='yes'

}

exit

The Change argument must be set to yes or the part data will not be changed. This argument is used after checking the data.

For each part, there are two global arrays: Name[Number] and Value[Number]. There is also the Number counter which gives the array a length, starting from 1.

Additionally, there are two global arrays: WBD_Name[WBD_Number] and WBD_Value[WBD_Number]. There is also the WBD_Number counter which gives the array a length, starting from 1. This is for indicating the situation of the part at that moment.

Example:

arguments string @Change

{

   numeric v1,v2,v3

   

   # Find the index of logistical field 'Part'

   v1=1

   while name[v1]<>'Part' & v1<=Number

   {

    v1=v1+1

   }

   

   # Find the index of logistical field 'Planelayer'

   v2=1

   while name[v2]<>'Planelayer' & v2<=Number

   {

    v2=v2+1

   }

 

   # Find the index of logistical field 'SubPanel'

   v3=1

   while name[v3]<>'SubPanel' & v3<=Number

   {

    v3=v3+1

   }

   

   # In case all indexes are found Change SubPanel by using a combination of the field 'Part' and 'Planelayer'

   if v1<=Number & v2<=Number & v3<=Number then

   {

     Value[v3]=ltrim(Value[v2]//'_'//Value[v1])

     Change='yes'

   }

   else Change='no'

}

exit