You are on page 1of 8

T

T
E
E
C
C
H
H
N
N
I
I
A
A
C
C
A
A
L
L


D
D
O
O
C
C
U
U
M
M
E
E
N
N
T
T


www.aveva.com













AVEVA Marine
(12 Series)

Defining line types in
Outfitting Draft







2
www.aveva.com
Revision Log

Date Revision Description of Revision Author Reviewed Approved
2010-02-26 1.0
Issued and published to Customers /
Business Units






Updates / Suggestion / Problems
All headings containing updated or new material will be highlighted.

Copyright
Copyright and all other intellectual property rights in this manual and the associated software, and every
part of it (including source code, object code, any data contained in it, this document and any other
documentation supplied with it) belongs to AVEVA Solutions Ltd. or its subsidiaries.
All other rights are reserved to AVEVA Solutions Ltd and its subsidiaries. The information contained in this
document is commercially sensitive, and shall not be copied, reproduced, stored in a retrieval system, or
transmitted without the prior written permission of AVEVA GSC Marine Support. Where such permission is
granted, it expressly requires that this Disclaimer and Copyright notice is prominently displayed at the
beginning of every copy that is made.

The document and any associated documentation may not be adapted, reproduced, or copied in any
material or electronic form without the prior written permission of AVEVA Solutions Ltd. The user may also
not reverse engineer, decompile, copy or adapt the associated software. Neither the whole nor part of the
product described in this publication may be incorporated into any third-party software, product, machine or
system without the prior written permission of AVEVA Solutions Limited or save as permitted by law. Any
such unauthorised action is strictly prohibited and may give rise to civil liabilities and criminal prosecution.
The AVEVA products described in this document are to be installed and operated strictly in accordance
with the terms and conditions of the respective licence agreements, and in accordance with the relevant
User Documentation. Unauthorised or unlicensed use of the product is strictly prohibited.
Printed by AVEVA Solutions on 19 April 2010
AVEVA Solutions and its subsidiaries 2001 2007
AVEVA Solutions Ltd, High Cross, Madingley Road, Cambridge, CB3 0HB, United Kingdom.









3

www.aveva.com
Contents
1 How to define a specific line style in Marine ........................................................................................ 4
1.1 How to define the new line style .................................................................................................... 4
1.2 Style World ....................................................................................................................................... 5
1.3 Style 1 ............................................................................................................................................... 5
1.4 Style 2 ............................................................................................................................................... 6


4
www.aveva.com

1 How to define a specific line style in Marine



Hull Drafting has a system defined line style System16 which has the following representation;




The example the customer requires is shown below;





This can be defined in Hull Drafting or Outfitting Draft but is rather complex.

At version 12, new functionality was provided that allows users to define their own line styles.
Unfortunately, no User Interface was provided to carry out the task. The line style definitions have to be
created using the Command Line, which is rather arduous because the system cannot display the line style
as the user creates it. The only process available is as follows;

1. Create a new line definition
2. Update Line Styles
3. Create a line in a drawing using the new linestyle
4. Print the drawing to check that the output is correct


1.1 How to define the new line style

At the current version, it is not possible to define a new line style that contains two lines. There is a planned
development for release at 12.1 that would allow this, but for the moment we can only produce the
requested line style by mimicking it using glyphs.

The actual solution depends upon how the user wishes the line defined. We will discuss two methods here,
firstly an invisible line with two parallel lines, one thin and one thick, and secondly a single thick solid line
with a thin line running parallel;

Style 1






Style2






Start
Point
End
Point
Start
Point
End
Point

5
www.aveva.com
1.2 Style World

The Style World holds the line style and glyph definitions. In a suitable database create a new style world
and the line style and glyph tables;

NEW STYLWL /User_StyleWorld

NEW GLYTB /GlyphTable

NEW LSTYTB /LineStyleTable


1.3 Style 1

To produce user defined line style 1, we must create a new glyph that we will apply to a new line style
definition. In /GlyphTable;

NEW GLYPH /Glyph-1

NEW GLYOUTLINE
GDEFIN MTO -10 10 LTO 10 10 LTO 10 20 LTO -10 20 LTO -10 10
GFILLD true

NEW GLYOUTLINE
GDEFIN MTO -10 -10 LTO 10 -10

What does this do? The first primitive is a solid fill rectangle that will be repeated along the line;



The second primitive is a single line that will also be repeated along the line;










Centrelin
e
X
axis
Y
axis
X 0
Y 0
X 10 X -10
Y 20
Y 10
1 2
3 4
GDEFIN MTO -10 10 LTO 10 10 LTO 10 20 LTO -10 20 LTO -10 10

Move to position 1 Draw a line to
2
Line to 3 Line to 4 Line to 1
Centrelin
e
X
axis
Y
axis
X 0
Y 0
X 10 X -10
Y -10
1 2
GDEFIN MTO -10 -10 LTO 10 -10
Move to position 1 Draw a line to
2

6
www.aveva.com
To use this glyph, we create a new line style. In /LineStyleTable;

NEW LINESTYLE /LineStyle-1

PATNAM Off
GLYREF /Glyph-1
DECSIZ 5
DECREP 1

Here we are setting the line pattern to OFF (so there will be no system defined line) and referencing the new
glyph we defined above. To get the glyph to repeat we have set the repeat spacing to 1 and set the size to 5
(this works in combination with the Glyph attribute REFSIZE).

Before using the new linestyle, update the styles using the command UPDATE LINEST

You would have to adjust the settings to obtain the actual representation you wanted, both for the line style
and the glyph. These are just example values to show how it might work.

There are of course issues at corners when you create a polyline;




There are also issues when attempting to identify the line in Outfitting Draft.
You must click on what would be the centreline not the displayed lines.

Once the line has been defined, when you re-enter Hull Drafting, the new definition should automatically
appear in the Line Type Selector form, but there might be issues here.



1.4 Style 2

To produce user defined line style 2 in /GlyphTable;

NEW GLYPH /Glyph-2

NEW GLYOUTLINE
GDEFIN MTO -10 -20 LTO 10 -20

The primitive is a single line that will be repeated along the line as shown in the first example above.
To use this glyph, we create a new line style. In /LineStyleTable;

NEW LINESTYLE /LineStyle-2
LWIDTH 0.5
PATNAM Solid
GLYREF /Glyph-2
DECSIZ 5
DECREP 1

UPDATE LINEST

This still has issues with corners;




7
www.aveva.com
Notes Added by GSC


Outfitting Draft

To test this it is possible to modify the line style of a primitive by navigating to the STRA element and key in
NLStyle /LineStyle-1 on the command line.

The new line styles were also tested by setting the Style Library to the new Linestyle for an EQUI item and
changing the function owning zone to suit the rule set. The resulting line types worked to a degree, but there
appears to be some issues with intersections.





Note: to navigate to the ruleset used by a view, first make the
View current, then key in goto rrsf on the command line.
















Hull Drafting

When creating the two linestyles as described above only the second linestyle appears on the form:-



























8
www.aveva.com
Also when this linestyle is applied to geometry or to a view via the Style there only appears to be a single
line.

You might also like