Académique Documents
Professionnel Documents
Culture Documents
Customise
You can set PML variables to customise. They are set in the file called bocuserdata.pmlfnc found in the
bocad\dflts\user\bocpml\functions folder in your data area of the application.
The user modifiable function bocuserdata.pmlfnc is found in bocad\dflts\user\bocpml\functions
If you customise the AVEVA Bocad Steel Interface forms, you must reload the base product's user interface
from macros in order to rebuild it. If you change variables in your data area, you can use the Re-initialise
option on the main Import or Export forms.
Alternatively, you may reload the AVEVA Bocad Steel Interface system variables and rebuild the forms using
the following command, after you have saved the bocuserdata.pmlfnc file:
call !!bocImpExp( )
However, if you find that the user interface forms are damaged, reload the UI from macros. A typical message
indicating this condition might be:
Object does not have a member .targetlist
Note: You must also load the AVEVA Bocad Steel Interface UI from macros if you make any changes to the
internal mapping files
Colour Code
You can change the colours of the objects on the screen using the variables listed below. If you want to
change them, the list of colour numbers is given in the Model Reference Manual. The default settings are:
!!bocColChanged = ( 12 ) $* Mauve
!!bocColAdded = ( 5 ) $* Green
!!bocColDuplicate = ( 6 ) $* Cyan
!!bocColDeleted = ( 2 ) $* Red
!!bocColExported = ( 3 ) $* Orange
!!bocColDefault = ( 1 ) $* Grey
The duplicate colour is used when the import system searches for items with duplicated mark numbers.
Tolerance Settings
You can modify the distance tolerance (the separation, in millimetres, below which two points are considered
coincident), the minimum Plate thickness, and the minimum length of Linear Members. The minimum
tolerance is used as a fine tolerance value in vector comparisons, such as for angles.
-- Set distance tolerance
!!bocDistTol = ( 1 )
!!bocMinTol = ( 0.01 )
Waiting Time
The system wait time represents a unit of time which the application will wait while the external program is
executing. If there is no response within this time, the application may assume that the external program has
stopped for some reason. This may not be the case - it may just be working hard!
You will be asked whether they want to wait for another unit period. This variable is nominally measured in
seconds, but it is also dependent on how busy the computer is on other tasks as well.
-- Set wait time
!!bocWaitTime = ( 5 )
!!bocNoOfTries = ( 5 )
There is also a variable, !!bocNoOfTries, which is used to determine how many iterations of the waiting loop
the application goes through before prompting you for further information.
https://help.aveva.com/AVEVA_Everything3D/2.1.0.22/BOCAD/BOCAD4.3.11.html 16/12/2019
Customise Page 2 of 7
https://help.aveva.com/AVEVA_Everything3D/2.1.0.22/BOCAD/BOCAD4.3.11.html 16/12/2019
Customise Page 3 of 7
For reading many files, such as the mapping files, log files or even some internal files, there is a current size
limit of 500000 lines.
Note: That this is not the size of the input model file. It is the estimated size of the internal macro file
produced during the translation process.
This may be modified by changing the lines below.
-- Maximum file size in lines
!!bocMaxFileSize = ( 500000 )
File Headers
You can select whether the file will contain listings of all the mapping files or just the section count table. This
is done by the !!bocBriefHdr variable in the bocuserdata.pmlfnc file. By default the files have brief headers,
but if you want to include details of all the files used for the translation, the variable can be switched to 'false'.
-- Brief/Verbose Bocad Interface file header
!!bocBriefHdr = true
System Configuration
There is a third level of customisation available that is accessible by a graphical user interface. This window
has access to versions of all the variables in the bocuserdata.pmlfnc function, but it does not modify that
function at all. Therefore, at this point, you are working with a local set of configuration data. This file also
stores the settings on the attribute comparison window that drives the Compare/Merge operation.
The System Configuration window is accessible from either the main Import or Export window using Control
> Configure.
https://help.aveva.com/AVEVA_Everything3D/2.1.0.22/BOCAD/BOCAD4.3.11.html 16/12/2019
Customise Page 4 of 7
The System Configuration window has five tabs Run Parameters, Model Parameters, Display Colours,
Environment Parameters and Macros. The detail of the attributes can be read above. The forms do have
some data validation, where appropriate.
https://help.aveva.com/AVEVA_Everything3D/2.1.0.22/BOCAD/BOCAD4.3.11.html 16/12/2019
Customise Page 5 of 7
https://help.aveva.com/AVEVA_Everything3D/2.1.0.22/BOCAD/BOCAD4.3.11.html 16/12/2019
Customise Page 6 of 7
https://help.aveva.com/AVEVA_Everything3D/2.1.0.22/BOCAD/BOCAD4.3.11.html 16/12/2019
Customise Page 7 of 7
By default, the system looks for a file ABSI.xml in your work area. If present, this file is accessed when this
window, and even when the whole system, is initialised. If this file is not available, then the default values that
are used are set in bocsystemdata.pmlfnc and subsequently overwritten by bocuserdata.pmlfnc. You can
save the window, settings to this default file using the Control > Save option. To save the settings to another
file, use the Control > Save as... option.
To load any settings file other than the default one use Control > Load... option. A file browser is displayed
allowing you to choose where to locate the new file.
To restore the main default settings at window initialisation, just delete the ABSI.xml file.
Click Reset to reset the values using the normal form initialisation process with the current variables and any
saved ABSI.xml file.
The Re-initialise option goes right back to the source variables in the system and user data and the default
ABSI.xml files.
Click OK to transfer the settings to the main Import/Export system for use in that session. Once the window is
displayed again, any unsaved attributes will be lost.
1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
https://help.aveva.com/AVEVA_Everything3D/2.1.0.22/BOCAD/BOCAD4.3.11.html 16/12/2019