COLOUR... Setting Item Colours in Plots
COLOUR... Setting Item Colours in Plots
All options in this panel have popup menus giving a range of colours, with the current selection being shown. The special colour means "not the background". This is a colour guaranteed to show up well against the current graphics window background, and is the default for text, labels and sketched items. This colour will change automatically as required if the background colour changes. | ![]() |
Sets the background colour of the graphics window. Default: black. This
can be configured in the oa_pref file using:
|
|
Sets the colour for title, date, contour bar values, etc.
Default:
. This can be configured
in the oa_pref file using:
|
|
| Sketched Items |
Sets the colour for anything sketched in any context. By default it is
set to "
", the
logical opposite of the current background setting so as to establish
good contrast. It can also to be set to a fixed colour or
which will use the same setting as
is set to.
|
| Sets the colour for item (e.g. node) labels. Default: white. |
Colours can also be set for several other types of item in PRIMER using the other popups.
|
gives options of how to colour model items.
|
|
Using colour based on PART, SECTION or MATERIAL id:
For element types that use parts (solid, shell, beam, tk shell, discrete, seat-belt, sph) the colour may be based on one of these properties. The label of the property is used, for example all elements of part 1 will be the same colour. Where a property is undefined, for example no material defined on a *PART card, grey is used.
The default is for all such elements to be drawn by PART colour.
Setting user-defined colours for individual parts or groups of parts can be achieved using Quick Pick, Part Table or Part Tree. User -defined colours may also be defined for materials, elements and some other entity types using Quick Pick.
|
Using colour based on Mechanism or Dummy Assembly id: This is a special case in which the subset of parts in the model which belong to the selected mechanism or dummy receive colours based on the assembly ids in that mechanism / dummy, and the rest of the model is coloured white. This is the default behaviour when positioning mechanisms, but when used in this context it will persist during normal operations. In the example here the seat and dummy form a mechanism. There are some limitations to this display mode. It is computed by assigning an assembly id to each part to give a colour, with parts not in an assembly (or in a different model) receiving an id of zero, which is rendered as white. This assembly id is stored in a special internal storage "slot" on the part, and the contents of this slot can get changed in the following ways:
|
|
|
In addition checking and positioning a dummy does not consider null parts when assigning assembly ids to parts, so if an assembly is coated with null parts these may end up being drawn in white. If this happens the solution is to return to this panel and to redefine the dummy / mechanism which is to be used, which will restore its colours - including those for null parts. |
|
allows you to apply custom colours to surf A and surf B for contact surfaces. Along with standard core colours, 'Default' and 'Surface A | B' buttons are provided.When the model is first loaded and the entities are turned on for contact visualization, the default colours are assigned to contacts.
| ![]() | ||||||
| allows you to change the colours used when drawing spotweld beams or solids. The default is in which case the normal colour for the element is used. If is chosen then the colour of the element will change depending on how many panels the spotweld connects. Popups allow you to change the colours as necessary. |
|
Standard Core ColoursThe top two rows show the 30 standard core colours. |
|
|
When you hover over the colour the name is shown.
This name can be used to specify this colour in preferences and dialogue inputs. When using the name, "_" is used instead of " ", for example "Hot Pink" becomes "HOT_PINK". |
|
User-Defined ColoursThe lower rows show the user-defined colours. There can be up to 150 user-defined colours. Click on a user-defined colour to apply it, or click on an empty slot to create a new user-defined colour.User-defined colours can be used in the dialogue input by specifying their name. |
|
CreatingTo create a new user colour click on an empty slot. This maps a colour palette. The colour can be edited a number of ways:
When you create a colour it is applied. |
|
EditingHover over a user colour to edit it. You have the choice to change the name of the colour, it, or it. The user-defined colours are given the standard name, for example "user_1". They can be renamed. The name must start with a letter and gets set to all lower case. If the name is not unique, a number will be appended to it, for example "green_1". maps the colour palette. If you edit a colour it is then applied.
removes a colour. The colour is no longer available when you next open the colour popup. |
|
SavingThe user-defined colours can be saved. The same user-defined colour are then available when you next run PRIMER. The user-defined colours are stored in the user_colours.xml file. If the user has permission to modify things in the INSTALL directory, the user is given the option to either save the user colours to the INSTALL directory (which is sometimes visible to multiple users) or their HOME directory. Alternatively, the preference user_colour_file can be set to specify an .xml file. When PRIMER is next started the user_colours.xml file is read in. If the same colour, for example "user_1", is defined in the user_colours.xml file in both the INSTALL and HOME directory, the HOME directory user_colours.xml file takes precedence. If the preference user_colour_file has been set, any user_colours.xml file in the HOME directory is ignored. If a colour is also defined in the user_colours.xml file in the INSTALL directory, the user_colour_file .xml file takes precedence. |
|




