Exercise 6 Label Libraries
10.5 Creating and Deleting Hatching Styles
The upper part of the Style Library form shows the name of the current RPLB which is being used as a Style Library, and a list of all HSTYLs within it.
10.5.1 Creating a Hatching Style
To create a new HSTYL, the Create Style button is clicked to prompt the Create HSTYL form.
On entering a name and clicking the OK button the name is added to the displayed list and is highlighted as the current selection.
www.aveva.com
The attributes of the new STYL will have the default settings shown by the gadgets in the lower part of the form. These can be altered as required.
Naming the hatch style to represent the hatch type in the previous example we will create a yellow 45 degree hatch with a 4mm gap between hatching lines.Select the OK Button to commit the changes.
10.5.2 Deleting a Hatching Style
To delete a hatching STYL from the current library, the style is highlighted in the displayed list and the Delete Style button clicked.
10.5.3 Setting Hatching Style Attributes
The lower part of the Style Library form comprises two sets of gadgets which are used to set the attribute for the currently highlighted STYL.
Hatch Pattern Colour & Style 10.5.3.1
For the Hatch Pattern a colour and either a Standard fill style (which may be ‘Off’) or a User-defined fill style can be assigned.
The Colour can either be selected from a drop-down list (initially populated with the basic 16 system-defined colours) or picked from a colour-palette shown when the Pick button is clicked. The colour selector gadgets will be greyed out if the fill style is ‘Off’.
The Standard fill style is selected from the drop-down list gadget. A total of thirty system-defined fill styles plus a solid-fill and Off capability are provided. A selection of hatch patterns is illustrated below:
www.aveva.com
The hatch pattern rules are available in the TT/DRA/RPJ/HSTYL/LOCAL library and are set up by the Administrator.A Fill Style is defined by combining one or more hatch patterns. A hatch pattern can be a sequence of parallel lines all drawn with a particular line style e.g. chained, or solid-thick, at a specified angle and separation.
If a User-defined fill style is required, the checkbox should be ticked. This will cause the Standard style gadget to be greyed out and the User-defined fill styles selection form to be displayed as shown below.
The left-hand side of the form lists all the Fill Style Tables found in the MDB. Selecting one of these causes the right-hand side to be populated with the Table’s Fill styles from which a selection can be made.
As demonstrated by the above selection process and illustrated by the hierarchy, User-defined Fill Styles are defined in the database by FILLSTyle elements which are members of a Fill Style Table (FSTYTB).
A FILLST is defined either as 'Solid Fill' or by one or more Hatch Patterns (HPATTE).
A basic Hatch Pattern is defined in terms of four parameters:
Line Style (HLSTYLE)
This parameter defines the style with which the hatch lines will be drawn (either system-defined or a user-defined line style). By default HLSTYLE will be set to SOLID.
Angle (HANGLE)
This parameter defines the slope of the hatch lines, in degrees, measured in a counter clockwise direction from the horizontal. If a value is not specified, a value of 45 will be assumed.
www.aveva.com
Separation (HSEPAR)
This parameter defines the spacing between the hatch lines (measured perpendicularly). If 0 then a solid fill is achieved. If no value is given, 3mm will be assumed.
Offset (HOFFSET)
This parameter defines the offset of the hatch-pattern from a datum point on the Sheet and is only of use when two or more hatch-patterns are combined.
If the patterns have the same angle and separation but different offsets double-line hatching can be achieved. If no value is given 0 is assumed. If the value is positive the positioning of the pattern is relative to the bottom left corner of the Sheet, if negative the positioning of the pattern is relative to some feature of the area being filled. For patterns that require the precise matching of diagonal dashes (to form triangles for instance) it will probably be necessary to define relative patterns (with negative offsets) but in general positive offsets should be used. If no value is given, 0mm will be assumed.
The FILLST element also has the attributes:
FSTYNO
A system defined attribute that will have a unique value within the MDB.
SOLFILled
If set TRUE will cause the Fillstyle to provide solidfill.
FUNCtion
Text attribute for descriptive purposes.
ALTDEF
Refers to another FILLST and if set the referenced FILLST will be used on hard copy output.
When the FILLST element is created a system-defined fill style number is allocated automatically. This is a unique number in the range 1-255 and is held in the FSTYNO attribute of the FILLST element. This is the number to use for the FSTYLE attribute when it is required to use that FILLST.
Alternatively, it is usually more convenient to specify a name for the FILLST, and this is then used to set the FSTYLE attribute (although it is the FSTNO value that will be assigned to the FSTYLE attribute).
Having created a Fillstyle it must be defined within the graphics system by an 'UPDATE PENSTYLES' command if it is to be used during that session of DRAFT. In subsequent sessions it will be automatically defined during module entry.In order to create more complex patterns, such as Triangles, Brickwork, etc., it is necessary to use two additional attributes of HPATTE:
Line Pattern Advance (PATADV)
Refers to the amount by which the pattern on each individual line is advanced. The pattern is moved by a value which accumulates from line-to-line. The lines either side of the first are offset by ± the advance value. The lines either side of these are offset by ± twice the value and so on.
Line Pattern Offset (PATOFF)
Refers to the amount by which the pattern of the first hatch-line is offset from its nominal start point.
www.aveva.com
Thus for example, in order to create a Fill Style to represent brickwork (with 10mm x 4mm bricks) the Administrator is required to create a suitable line style for the vertical lines and then a Fill style with 2 Hatch Patterns. With the Style World as the current element, the following may be entered in the Command Window:
NEW LSTYTB
NEW LINESTYLE /BrickWork-VerticalLS
PATDEF 50 -50 Creates a pattern with equal sized dashes and gaps.
PATREP 8mm Sets the repeat distance to the height of 2 bricks.
NEW FSTYTB
NEW FILLSTYLE /BrickWorkFS
NEW HPATTERN /BrickWork-HorizontalHP HLSTYLE Solid
HANGLE 0
HSEPAR 4mm 4mm between horizontal lines.
HOFFSE 2mm Offsets the pattern (vertically) from its datum.
NEW HPATTERN /BrickWork-VerticalHP HLSTYLE /Brickwork-VerticalLS
HANGLE 90
HSEPAR 5mm 10mm long bricks require 5mm between vertical lines.
HOFFSE 3mm Offsets the pattern (horizontally) from its datum.
PATOFF 2mm Offsets the pattern (vertically) from its datum.
PATADV 4mm Causes the 'dash' in the vertical lines to advance by the brick height and so create the 'staggered' effect.
The application of the above can be verified through the Style Library form and the creation of a User-Defined style. The subsequent User-defined linear/fill style forms are updated to reference the new elements.
Offsetting the pattern is not strictly necessary and so attributes HOFFSE and PATOFF of both HPATTEs could be left at 0mm; it is merely done to reduce the chance of the horizontal and vertical lines coinciding with the edge of the hatched area.Outline Colour and Style 10.5.3.2
Considering the line type, a colour and either a Standard line style (which may be ‘Off’) or a User-defined line style can be assigned.
If an Outline is used, then each surface hatched will be outlined in the specific style.
Pipe Symbols 10.5.3.3
The choices are ON or OFF. Choosing ON will hatch the cross-section of a pipe or HVAC duct with a piping end symbol or ducting end symbol. OFF will hatch the full cross-section of the pipe or duct.