Pdms Draft: User Guide Part 1: Basic Drawing Creation & Output
Pdms Draft: User Guide Part 1: Basic Drawing Creation & Output
Pdms Draft: User Guide Part 1: Basic Drawing Creation & Output
User Guide
Part 1: Basic Drawing Creation & Output
Version 11.5
pdms1151/man11/doc1
issue 140403
PLEASE NOTE:
AVEVA Solutions has a policy of continuing product development: therefore, the
information contained in this document may be subject to change without notice.
AVEVA SOLUTIONS MAKES NO WARRANTY OF ANY KIND WITH REGARD TO
THIS DOCUMENT, INCLUDING BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.
While every effort has been made to verify the accuracy of this document, AVEVA
Solutions shall not be liable for errors contained herein or direct, indirect, special,
incidental or consequential damages in connection with the furnishing, performance or
use of this material.
This manual provides documentation relating to products to which you may not have
access or which may not be licensed to you. For further information on which Products
are licensed to you please refer to your licence conditions.
For details of AVEVA's worldwide sales and support offices, see our website at
http://www.aveva.com
AVEVA Solutions Ltd, High Cross, Madingley Road, Cambridge CB3 0HB, UK
Revision History
D Guidelines for Importing DGN files from DRAFT into MicroStation ......... D-1
D.1 Introduction................................................................................................................D-1
D.2 Exporting DRAFT drawings containing PDMS Fonts .............................................D-1
D.3 Installing PDMS Fonts into MicroStation................................................................D-2
D.3.1 Creating a new Font resource library..........................................................D-2
D.3.2 Selecting .shx files to add to resource library..............................................D-3
D.3.3 Selecting the library destination..................................................................D-3
D.3.4 Copying the fonts into the library ................................................................D-3
D.3.5 Checking The Installation ............................................................................D-3
D.3.6 Changing MicroStation font numbers .........................................................D-4
D.3.7 Select the required .rsc library.....................................................................D-4
D.3.8 Creating a new Font Geometry File.............................................................D-4
D.4 Mapping the Installed Fonts .....................................................................................D-5
D.5 PDMS font file names ................................................................................................D-5
D.6 Colours........................................................................................................................D-7
D.7 Line Styles..................................................................................................................D-7
Index
DRAFT produces fully annotated scale drawings showing selected parts of the design
model created in PDMS DESIGN. DRAFT is fully integrated with DESIGN.
A model can be viewed from any direction, with hidden detail automatically removed or
shown in a different linestyle, as required. A drawing may contain more than one view
of a 3D model; for example, a plan view, a front elevation and an isometric view may be
displayed simultaneously.
In DRAFT an annotated drawing is made up of different types of graphics:
• Graphics that represent the 3D model.
• Graphics to provide backing and overlay sheets which will be common to a number
of drawings.
• Graphics providing annotation, including not only dimensioning and text but also
such items as leader lines and label boxes.
All the graphic items exist as, or are defined by, elements in the DRAFT database.
The DRAFT database contains a complete definition of a DRAFT drawing. The DRAFT
database does not contain information describing the geometry of the graphics that
make up a drawing, but gives a description of how those graphics should be presented
on a drawing.
From this database definition (together with the Design and Catalogue databases which
describe the appropriate 3D model) a drawing is generated which reflects the state of
the design at that particular time. The drawing can be displayed on the screen and
processed to produce a hard copy plotfile.
This is a command-level manual, written for people who are writing or customising their
own graphical user interface. It describes all the DRAFT commands, with worked
examples where appropriate. It is assumed that you are familiar with the normal way of
using DRAFT, via the supplied Graphical User Interface (GUI).
For an introduction to using DRAFT via the GUI, see Drawing Production Using
VANTAGE PDMS, and for further information, see the online help. For information
about DRAFT System Administration, see the VANTAGE PDMS DRAFT Administrator
Application User Guide.
For general information about customising the graphical user interface, see the
VANTAGE Plant Design Software Customisation Guide and VANTAGE Plant Design
Software Customisation Reference Manual.
This manual, Part 1 of the User Guide, is divided into the following chapters:
• Chapter 2, General PDMS Commands, describes some general PDMS commands,
common to several PDMS modules, that are available in DRAFT.
• Chapter 3, Drawing the Design, describes how to create a DRAFT picture without
annotations. It describes the part of the DRAFT database that stores the main
administrative and graphical elements and how to create them. It also describes
Views, which are the areas used to display Design elements, and how to define their
content.
• Chapter 4, Graphic Representation, describes how Design elements are defined and
drawn using Representation Rules. It describes how Representation Rules are
defined and describes the part of the DRAFT database that stores the
Representation Rules. It also describes Hatching Rules, used for the automatic
hatching of faces of Design elements.
• Chapter 5, Section Planes, describes how you can construct sections through Design
items, using Planes in DRAFT, which can be displayed at VIEW level.
• Chapter 6, Using the Cursor, describes how, with many DRAFT commands, you can
use the cursor to identify an element in the graphics window by using the ID
command followed by an @:.
• Chapter 7, Plotting and Drawing Output, describes how you can generate, at any
time during the drawing process, a plotfile consisting of a single Sheet, View, or the
content of an Area View.
• Chapter 8, Pens and Linestyles, defines the attributes that are associated with pens
and describes how to set these attributes.
• Chapter 9, Reports, Circulation lists and Revisions, describes how to create the
drawing office administrative elements; reports and circulation lists. It also
describes how DRAFT handles revision numbers.
• Chapter 10, Change Highlighting, describes how you use Change Rules to control
how Design and Annotation elements that have been changed are drawn on a
DRAFT View. It describes how Change Rules are defined and describes the part of
the DRAFT database that stores the Change Rules. It also describes the concept of
Comparison Dates and how these are used to determine whether Design and
Annotation elements have been changed
• Appendix A, DRAFT Database Hierarchy, provides a graphical representation of the
DRAFT database structure.
• Appendix B, System Update Commands, describes functions in DRAFT that can be
used to minimise problems with cross-database referencing when Design databases
are deleted and rebuilt from macros. It also describes how the UPDATE
INSTANCES command is used to update picture files that use the ‘instancing’
mechanism.
• Appendix C, Picture File Naming Conventions, describes the structure of picture file
names.
• Appendix D, Guidelines for Importing DGN Files from DRAFT into MicroStation,
describes how DRAFT drawings can be output as DGN files that can be imported
into a freshly installed version of microStation/J. It contains guidelines for ensuring
that fonts are translated correctly and how to improve other aspects of the
translation.
This Section describes some general PDMS commands, common to several PDMS
modules, which are available in DRAFT.
2.1 Saving
The Multiple Database Access facilities allow you to list information about the
databases you are using. It is also possible to change to another Multiple Database (see
Section 2.2.5), thus entering MDB Mode, from which further database-related activities
can be performed.
project, the modules and databases which they are using, and whether they are
examining (Read-only status) or modifying (Read/Write status) the database. A typical
response to the SYSTAT command could be:
USER USERA (13d3-PC378)
MODULE DRAFT
MDB /USERB
DB MODE
USER/USERB RW
MASTER/DRAFTAPP R
MASTER/DRAFTLIB R
USER/DESIB R
MASTER/CATA R
MASTER/DESI R
This shows that user USERA is currently logged in and using module DRAFT. He is
accessing the MDB named /USERB whose constituent DBs are as listed. He has Read-
only status for the DBs owned by the MASTER (System) team and Read/Write access to
the DB USER/USERB.
GEN (GENERAL)
TEAMS : TEST
The information generated by the LIST command will be displayed within the PDMS
DRAFT REQUESTS window and can sent to a file - see Section 2.5.3.
If a Draft (PADD) DB has been created as a multiwrite database, several users can
write to it simultaneously, although they cannot change the same element.
Multiwrite databases can either be Standard multiwrite databases, or Extract
databases. In both types, an element must be claimed before it can be modified.
Claiming an element prevents other users claiming (and modifying) the element; the
element must be unclaimed or released before another user can change it.
Claiming can be either explicit, where the user must use the CLAIM command before
attempting to modify the element, or implicit, where the claim is made automatically
when the user tries to modify the element. The claim mode is set when the DB is
created. For full details see the VANTAGE PDMS ADMIN Command Reference Manual.
CLAIM /VIEW2-1
Claims Sheet which owns named View (since VIEW is not a primary
element)
An element must be unclaimed before another user can claim it and change it. User
claims are always unclaimed when you change modules or leaves PDMS, and you can
also unclaim elements at any time during a PDMS session using the UNCLAIM
command.
UNCLAIM /SHEE2 /SHEE3
Unclaims named Sheets
UNCLAIM ALL
Unclaims all elements currently claimed
• Elements cannot be unclaimed if there are updates outstanding. You must issue a
SAVEWORK command first.
• You can insert/remove primary elements in a members list without claiming the
owner. For example, you can add a Sheet into a Drawing without claiming the
Drawing. Thus two users can add different Sheets to the same Drawing: any
discrepancies will be resolved when a SAVEWORK is attempted.
• Before an element can be deleted, that element and all of its sub-hierarchy must be
claimed.
• The following potential problems may not be revealed until you try to save changes:
• If two concurrent users allocate the same name to different elements, the
second user to attempt a SAVEWORK will show up an error. The second user
must rename their element.
• If one user inserts a primary element into another element’s list, while a
concurrent user deletes the latter element, an attempt to SAVEWORK will
show up an error. Either the first user must delete or move the primary
element, or the second user must QUIT without saving the deletion.
DB PIPE/PIPE
USERA
DB PIPE/PIPEX1 DB PIPE/PIPE-X2
USERX1 USERX2
USERA creates a Pipe and flushes the database back to the owning database,
PIPE/PIPE. The results of various Q CLAIMLIST commands by the three Users, together
with the extract control commands which they have to give to make the new data
available, are shown in the following diagram.
USERA:
EXTRACT REFRESH DB PIPE/PIPE
Q CLAIMLIST:
none
Q CLAIMLIST OTHER:
/PIPE-100 Extract PIPE/PIPE_EX7001
Q CLAIMLIST EXTRACT:
/PIPE-100
Note:
Q CLAIMLIST EXTRACT tells you what you can flush
Q CLAIMLIST OTHERS tells you want you can't claim
A useful querying command when you are using extracts is:
Q DBNAME
This command will return the name of the database which you are actually writing to.
You can query the extract claimlist for a named database. The database can be the
current one or its owner:
Q CLAIMLIST EXTRACT DB dbname
When you create an element, PDMS only sees it as a user claim, not an extract claim,
until the element is flushed. It will then be reported as an extract claim (as well as a
user claim, if it has not been unclaimed).
Note that a change in the claim status of an existing element will be shown by the
appropriate Q CLAIMLIST command as soon as appropriate updates take place, but a
user will have to GETWORK as usual to see the changes to the Design model data.
We recommend that:
• Before you make a user or extract claim, you should do an EXTRACT REFRESH and
GETWORK.
• If you need to claim many elements to an extract, it improves performance if the
elements are claimed in a single command, for example, by using a collection:
EXTRACT CLAIM ALL FROM !COLL
To query whether or not the PADD DB which you are using permits multiwrite access:
Q DBAC
where DBAC is a pseudo-attribute which can have the text settings CONTROL,
UPDATE or MULTIWRITE.
To query the claim mode of the database, use:
Q DBCL
where DBCL is a pseudo-attribute which can have the text settings EXPLICIT or
IMPLICIT.
To query whether or not an element which you want to modify is currently claimed by
another user, navigate to that element and use:
Q LCLM
where LCLM is a pseudo-attribute with the logical settings True (element already
claimed) or False/Unset (element available for you to modify).
To produce a list of all elements currently claimed by yourself:
Q CLAIMLIST
To produce a list of all elements currently claimed by other users who are accessing the
same DB:
Q CLAIMLIST OTHER
Summary of Commands
Entering DRAFT...
Leaving DRAFT...
MDB mode...
MDB UPDATE - saves changes and enters MDB Mode MDB NOUPDATE enters
MDB Mode without saving changes.
In MDB mode you can give the following commands. See the
VANTAGE PDMS MONITOR Reference Manual for more
information.
EXCHANGE alter the databases in the current list of the current MDB
DEFER
CURRENT
PROTECT temporarily alters your access rights to specified
databases.
USER changes the current user
PROJECT changes the current project
VAR allows you to set variables
OUTPUT selection [CHANGES] [SINCE [date : session number] EXTRACT [ no. : name]
List changes (optional) to selected part of database compared with
the given date or session in the given extract, which must be
higher in the extract hierarchy.
DIFF selection [CHANGES] [SINCE [date : session number] EXTRACT [ no. : name]
List differences (optional) to selected part of extract database
compared with the given date or session in the given extract,
which must be higher in the extract hierarchy.
EXTRACT REFRESH
Refreshes the extract with changes made to the owning extract.
ALP LOG /LF1 OVER - as above, but overwrite existing file /LF1
This Section describes how to create an unannotated DRAFT picture. It describes the
part of the DRAFT database which stores the main administrative and graphical
elements, and how to create them. It then describes Views, which are the areas used to
display design elements, and how to define their contents.
Note: Throughout this manual, view (lower case letters) means an area view, alpha
view or plot view, whereas VIEW (upper-case letters) refers to the VIEW
database element. All other database elements are also named using four
upper-case letters (eg DRWG, SHEE, LIBY), but may also be referred to in
unabbreviated form with just a leading upper-case letter (eg Drawing instead
of DRWG).
DRAWING
SHEET
VIEW
The top-level element in a PDMS database is the World. Users cannot delete or create
the World. Starting with the World as the current element, you can create the hierarchy
under the World using a command sequence such as:
NEW DEPT /PIPES
NEW REGI /PIPREG
NEW DRWG /PD101
NEW SHEET /SHEET1
NEW VIEW /PLAN
You can omit all commands except for NEW DRWG and NEW VIEW if there is only
Department, one Registry and one Sheet on the Drawing. If the administrative elements
do not exist they will be created automatically.
Departments (DEPT) and Registries (REGI) are administrative elements.
Departments own Registries, as shown in the following diagram.
WORLD
DEPT
REGI
DRWG REPO
LIBY
SHEE
(or to a DESIGN
DLLB database element)
VIEW
DESIGN
IDLI IDLN
Database
ADDE REME
Note: You can have several VIEWs on a Sheet. Each VIEW can contain a picture of a
different part of the Design model, or different views of the same part of the
model. See Section 3.5 for details of manipulating the contents of a VIEW.
The AUTO command adds a specified design element to the View. For example:
AUTO /ZONE1
This command carries out the following operations:
• The VIEW’s IDLN (ID List Name) attribute is set to the name of the Design element
to be displayed (/ZONE1 in our example).
• The VIEW’s THPO (Through Point) attribute is set to the Site coordinates
corresponding to the centre of interest of the view.
• The VIEW’s VSCA (VIEW Scale) attribute is set to a value calculated such that the
defined picture will fit within the VIEW.
Note that AUTO only sets the IDLN attribute if it has not already been set. A second
AUTO command will not change the IDLN. The AUTO command by itself will use the
existing IDLN setting.
The projection of the Design model must now be created before a picture can be
produced. This is done by typing
UPDATE DESIGN
SAVEWORK
Notes: The UPDATE command creates the VIEW graphics in a central picture store
within the computer's memory.
The SAVEWORK command is not necessary but it is recommended. It will save
the graphics in the central picture store to picture files in the picture file
directory. In a subsequent DRAFT session, the graphics will be read from the
picture file without the need for the UPDATE command.
If you leave DRAFT via a QUIT command the graphics in the central picture
store will not be saved and any existing picture files will not be updated.
Leaving DRAFT by switching to another module will perform an implicit
SAVEWORK, and so graphics in the central picture store will be saved to picture
files.
An UPDATE DESIGN operation could take several minutes in complex cases. If you wish
to interrupt it (for example, you may realise there is another change you should have
made before giving the command), press Ctrl C (not NT).
You can add many elements to a VIEW by displaying the contents of an Id List (IDLI
element). The Id List contains a list of the elements to be displayed. Id Lists are
contained within Drawing List Libraries (DLLB elements).
Starting at World level, the library part of the database is set up as in the following
example:
NEW LIBY /LIB1
NEW DLLB /DLB1
NEW IDLI /ID1
(See the left-hand part of Figure 3-2)
• Library (LIBY) elements can appear at four positions in the hierarchy (see
Appendix A). They are administrative elements used to group together several types
of sub-library. The type of sub-library of interest here is the Drawing List
Library (DLLB).
The Id List is constructed by using ADD and REMOVE commands as in the following
example:
ADD /ZONE.PIPES2-1
ADD /ZONE.EQUI2-1
REMOVE /PIPE2-1-12
REM /PUMP2-1-12
ADD and REMOVE may be combined on a single line, for example:
ADD /ZONE1.EQUIP, /ZONE1.PIPES REMOVE /VESS1, BRAN 2 OF /PIPE3
The ADD and REMOVE commands automatically create the Add Entry (ADDE) and
Remove Entry (REME) elements shown in Figure 3-2, also setting those ADDE and
REME attributes which refer to (in this example) appropriate elements in the Design
database. Other Id Lists may be added or removed in the same way. For example:
NEW IDLI /LIST1
ADD /ZONE1
ADD /LIST2
REM /LIST3
Note that when evaluated individually both /LIST2 and /LIST3 must define a set of
design elements which are then added to/removed from /LIST1, respectively. In
particular if /LIST3 is being used to remove a number of Branches (say) from /LIST1
then it should be defined as:
ADD /BRAN1, /BRAN2, /BRAN3
and NOT as:
REM /BRAN1, /BRAN2, /BRAN3
If an Id List has Remove entries then the member list order is important. For an entry
to be removed it must have been (implicitly) added previously. Hence a Remove Entry
should never be the first element in an Id List. Consider the command sequences:
Sequence 1 Sequence 2
ADD /ZONE.PIPES ADD /ZONE.PIPES
ADD /PIPE1-1 REM /PIPE1
REM /PIPE1 ADD /PIPE1-1
In Sequence 1 the final command removes all branches owned by /PIPE1 - including
/PIPE1-1 which has been added by the second command (and implicitly by the first). In
Sequence 2 these commands have been reordered so that having removed all branches
in /PIPE1 (second command) the required Branch (/PIPE1-1) is added by the final
command.
Having created an Id List it can be used to define the contents of a VIEW by setting the
VIEW's IDLN attribute directly:
IDLI /ID1
or indirectly:
AUTO /ID1
as described in Section 3.3.
You must be sure to use the RULE keyword in these cases, otherwise the criterion will
be evaluated when the Rule is defined, and very many ADDEs and REMEs may be
created.
These forms of the ADD and REMOVE commands set the CRIT attribute of the ADDE
and REME elements. The CRIT attribute can also be set directly, for example:
NEW ADDE
CRIT ALL BRAN WITH ( PSPE EQ /RF300 )
In this case the RULE keyword is not required.
This section describes the effects of changing the VIEW attributes. Attributes can be set
explicitly in the usual way, and the effect on an element’s attributes of giving the
various DRAFT commands can be seen by giving a QUERY ATTRIBUTES command for
the element concerned.
ONPO ONPO
VRAT 1 TO 75
VRAT 1/16in TO 1ft
Two positive values have to be specified but the TO may be omitted. Setting VRAT will
cause the existing VIEW scale (VSCA attribute) to be recalculated. Setting VSCA
directly causes VRAT to be unset. The AUTO command calculates and sets VSCA
directly so this will also cause VRAT to be unset.
Care should be taken when changing VSCA, as it is easy to move the VIEW contents
over the VIEW frame. The AUTO command takes the ONPOS value into consideration
when it calculates the VSCALE.
ADEG 0 ADEG 90
3.5.6 Perspective
PERS (perspective) can be used to give a perspective projection, the value taken by the
PERS attribute being related to the view angle. The default value of 0 gives a parallel
projection, which would be the normal setting for drawings. If PERS is changed, an
UPDATE DESIGN command must be given to change the picture.
which are defined by the attributes DIR, THPO and FRPO. Setting one of these will
unset one of the other two, assuming they are both already set.
DIR (direction) specifies the looking direction, down by default. This attribute is set by
commands such as
LOOK E
LOOK N45W
ISO3
PLAN
ELEVATION N
DIR D
Note that the picture produced by changing the looking direction may not necessarily fit
into the VIEW frame.
The THPO (through point) attribute is set to the Design coordinates corresponding to
the centre of interest of the view. These will be calculated automatically from the
VIEW’s related Id List by the AUTO command.
FRPO (the from point) is the position (in Design coordinates) at which the observer is
deemed to be.
The through point and from point may be set explicitly by commands such as:
LOOK THROUGH N53426 W632764 U2125
LOOK FROM N53426 W632764 U2125
FRPO N125671 E67342 U11254
THPO N125671 E67342 U11254
Changing the DIRECTION, THROUGH point or FROM point will make the existing
VIEW graphics out of date, so this must be updated by typing
UPDATE DESIGN
before any change in the picture will be seen.
The 3D view direction equivalent to 2D Sheet direction may be queried using
Query VIEWDIRection <sheet-dir>
where <sheet-dir>is Left, Right, Up or Down. This command gives an error when the
VIEW has Perspective or the current database position is not at or below a VIEW.
For example, in a plan VIEW with RCODE UP (the default), then the query
Q VIEWDIR LEFT
would give:
Viewdirection Left W
However, for a plan VIEW with RCODE LEFT, the result would be:
Viewdirection Left N
and for a plan VIEW with ADEG 120 (and RCODE UP) the result would be:
Viewdirection Left E 30 N
Previous sections have described the use of the AUTO command to add Design elements
to views. There are two other uses of AUTO:
AUTO LIMITS OF /idlist_name
Here the VIEW’s VSCA and THPO attributes are calculated using only the LIMI
attribute of the referenced Id List, ignoring any Design items in the VIEW. If the Id List
name is omitted, the Id List relevant to the VIEW is assumed.
AUTO FROM position TO position
The VIEW’s VSCA and THPO attributes are calculated from the box defined by the two
3D coordinates given. The position may be specified using the cursor (3D point or
p-point), explicit p-point reference, origin of a named element, or an explicit 3D
coordinate.
The VTYP (view type) attribute controls the hidden-line representation of displayed
pictures. Five possible VTYP setting are provided. These give progressively greater
graphical accuracy at the expense of increasing processing requirements. This facility
allows you to produce preliminary and intermediate drawings (where graphical accuracy
may be of secondary importance) quickly, leaving only finished drawings to incur the
greatest processing overhead. The default VTYP setting is WIRELINE, which gives a
conventional wireline picture as shown in Figure 3-6.
Local Hidden Line representation gives a picture where hidden lines are removed
from individual significant elements (EQUI, SUBS etc), but not from items hidden
behind them. This gives a picture as shown in Figure 3-8.
Global Hidden Line representation gives a picture where all hidden lines are removed,
giving a picture as shown in Figure 3-9.
In the above examples, design_id must refer to a Design significant element, that is
EQUI, SUBE, STRU, SUBS, FRMW, SBFR, TMPL, BRAN, or HANG.
The IN view_id may be omitted if your current database position is at or below a View.
DRAFT determines whether design items are visible by scanning the data in the picture,
not by scanning the IDList. Thus elements hidden by the hidden-line-removal process
will not be found. This command cannot determine how much of the element is visible.
NOTE: A significant Design element will not be found in a View if it only owns other
significant elements. It must own visible primitives. This affects EQUI, STRU
and FRMW elements; they will not be found unless they own visible primitives.
The ROTATION option allows the rotation (ie the VIEW’s RCOD attribute) to be
considered if required.
The response will be the nearest and next-nearest sides, and also whether the item is
inside or outside the View. For example, Point 1 in Figure 3-11 will be LEFT UP
OUTSIDE.
You can switch between the Design, Draft and Catalogue Databases using the
command:
SWITCH
If the current element is in the Design database, SWITCH will make the element last
selected in the DRAFT database current. Similarly, giving the SWITCH command when
in the Draft database will return to the element last selected in the Design database.
If the current element is a Catalogue Component, SWITCH will return to the last Design
element accessed. You can go directly to the Draft database or Design Database using
the commands:
CONTEXT DRAWING
CONTEXT DESIGN
Summary of Commands
At Id List . . .
ADD design_element_identifier [design_element_identifier...]
adds Design element to Id List.
LIMITS ID @ ID @ set limits as 3D coords via Design elements using the cursor
UPDATE BSHEETS updates Backing Sheets. Will ensure that the latest version of the
referenced BACK is used and will re-evaluate hash codewords on it
(see Section 13).
UPDATE ALL updates annotation, tag rules and Design graphics (but only for
that part of the picture file determined by the level in the
hierarchy at which the command is used).
(The above commands can be given from anywhere in the hierarchy if an appropriate
element identifier is inserted after the UPDATE keyword.)
The UPDATE DESIGN, UPDATE ANNO and UPDATE ALL commands can be specified
with the option SHOW CHANGES, for example UPDATE DESIGN SHOW CHANGES.
Database changes will be shown in the manner defined by the View's Change Ruleset.
For more information see Section 10. This option is only valid at View elements or
above, it cannot be used for a Layer, say.
UPDATE PICTURE regenerates Sheet level picture. Updates annotation graphics (but
not Design graphics). Use only when the picture file is corrupted.
DRAFT will prompt the user when this is necessary. Use at Sheet
level or equivalent.)
At VIEW . . .
SIZE xvalue yvalue set VIEW size in mm with origin at default i.e. centre of Sheet.
Min, Max, x,y values are 1 mm, 3276 mm respectively.
SIZE paper_size set VIEW size to a standard paper size, e.g. SIZE A2
AUTO design_element_identifier
set VIEW Scale and Through Point through
design_element_identifier and scale to fit
AUTO idlist_name set VIEW Scale, Through Point and Id List reference. If
idlist_name is omitted the IDLI relevant to the VIEW is assumed.
THPO ID @
(or LOOK THROUGH ...)
set Through Point as Design element p-point (converted to 3D
coord)
FRPO @
(or LOOK FROM ...) set From Point in 3D coords with cursor
FRPO ID @
(or LOOK FROM ...) set From Point as Design element p-point (converted to 3D coord)
ONPO @ position the Through Point relative to the VIEW origin using the
cursor
TURN value
(or ADEG value) rotate VIEW anticlockwise
LOOK value
(or DIR value) set VIEW direction (standard PDMS)
Anywhere . . .
SW switch Design/Drawing contexts
DELETE NULL IDLI deletes all ADDE and REME elements whose IDNM attribute is
null or which references an unknown element
Representation Rules control how Design elements are drawn. Each Rule can specify
a given type or types of element, or named elements. Representation Rules refer to
Styles. The attributes of a Style define a series of pens, for example, frontface, backface
and centreline pens, and whether items such as plines and obstruction volumes are
shown. The pens define properties such as linestyle and colour. For more information
about pens see Section 8.
Representation Rules can be created in a Library and be referred to from a VIEW, or
they can be owned directly by a VIEW, in which case they are known as local rules.
Local Rules override Library Rules. See Section 4.2.2 for more information about the
order in which Rules are applied.
Representation Rules (RRUL) are stored in Representation Rulesets (RRST),
which in turn are owned by Representation Libraries (RPLB).
RPLBs are also used to store STYLs. The reference from an RRUL to a STYL is made by
setting the STYF attribute of the RRUL. When a View references a RRST, the reference
is made by setting the RRSF attribute of the View.
Library
VIEW
RPLB RRSF
RRUL
RRUL
STYF
For details of how changes to design elements can be shown see Section 10 Change
Highlighting.
The Representation Style (STYL) defines the appearance of the elements specified by a
RRUL that references it. The STYL attributes, with their defaults, are as follows:
Tube flag TUBEF OFF
Centreline flag CLIN ON
Piping Symbol flag PSYM ON
Obstruction flag OBSTF OFF
Insulation flag INSU OFF
Profile flag PRFG OFF
P-line flag PLFG ON
Drawing Level DLEV 0
Frontface Pen FFPEN Pen 1
Centreline Pen CLPN Pen 4
Backface Pen BFPEN OFF
Obscured Pen OBPN OFF
P-line Pen PLNP 5
Member line Pen MLNP OFF
TUBEF, CLIN, PRFG, PLFG, PSYM, OBSTF and DLEV are standard PDMS display
representation controls and are not described here. (See the PDMS DESIGN Reference
Manual for details.)
If INSU is ON, Piping Component Insulation will be drawn using the frontface pen
(FFPEN). The outline of the piping Components will be hidden by the insulation in
hidden-line views. If insulation and Components are required to be displayed, two
similar views (that use different Styles) will need to be defined and superimposed.
The pen attributes allow different parts of chosen items to be drawn differently, and are
used as follows:
• Frontface Pen. In wireline VIEWs this attribute controls the pen to be used to
represent all edges. All edges are shown except for holes which will be drawn with a
dashed line of the same colour as the FFPN. Set directly, for example:
DRAWI elements owned by EQUI, SUBE, STRU, SUBS, or PTRA will be drawn using
the centreline pen of the STYL specified. For these DRAWIs the setting of the STYL’s
centreline flag (CLFG) will be ignored even though the centreline pen is used; the
LEVEL attribute should be used to control whether the DRAWI appears on the drawing.
Set directly, e.g.
CLPN 2 - use pen 2 for centrelines.
• Backface Pen. In hidden line VIEWs, this attribute controls the pen to be used to
draw the rear edges of items (set to OFF by default). Set directly, eg
• Obscured Pen. In global hidden line VIEWs, this attribute controls the pen to be
used to draw the front-facing edges of items that would otherwise be obscured by
other objects (set to OFF by default). Set directly, eg
OBPEN 3 (or OBPN 3) - use pen 3 for obscured front facing edges
This attribute has no effect in wireline and local hidden line VIEWs. See Figure 4-3 for
an example of the use of the Obscured Pen.
NOTE: For full details of using expressions in PDMS, see the VANTAGE PDMS
DESIGN Reference Manual, Part 1 General Commands, or use the online help
and search for ‘‘expressions”.
The comparators available are: EQ, NE, LT, LE, GE, GT (although in some instances
only EQ and NE are valid).
• Each logical expression can be preceded by NOT, for example:
Without the brackets the selection criterion would only be applied to SUBS.
Selection criteria should not be used unnecessarily. For example, if you wish to draw
small-bore Branches in style /ST1 and the rest in style /ST2, it is only necessary to say:
USE /ST1 FOR ALL BRAN WI (HBOR LE 80 OR TBOR LE 80)
USE /ST2 FOR ALL BRAN
As long as the criteria are defined in this order, all small-bore Branches will match the
first criterion and the rest, having failed to match the first criterion, will match the
second.
This means that you should always place the more specific rules earlier in the list.
Model faces created by section planes, and surfaces of specified Design primitives can be
hatched automatically by defining and applying Hatching Rules. The hatching is
carried out automatically as part of the Update Design process. For more information on
Section planes see Section 1.
The Hatching Rules (HRUL elements) define the faces to be hatched, and they reference
Hatching Styles (HSTYL elements). Hatching Styles define the pens to be used to
draw the hatching. Hatching Rules are stored in Hatching Rulesets (HRST elements).
Hatching Rules and Rulesets are similar to Representation Rules and Rulesets.
Hatching Styles and Rulesets are stored in RPLBs. Local Hatching Rules can be defined
by creating HRULs owned directly by Views. The Local Hatching Rules directly
reference Hatching Styles (HSTYL).
The hierarchy of database elements for hatching is similar to the Representation Rules,
and allows you to impose company or project drawing standards.
Library
VIEW
RPLB HRSF
HRUL
HRUL
HSTYF
At a HRST:
Q DESCription
will output an ordered list of descriptions – one for each of its HRULs.
At a VIEW:
Q HRSF DESCription
will output an ordered list of descriptions starting with those of the HRULs it owns &
then those of the HRST it references.
At a VIEW or HRST:
Q HSTYF FOR design-id
will return the HRUL that is relevant for the specified design item. The <design-id>
may be repeated if the HRULs for a list of design items are required.
Summary of Commands
At Representation Rule . . .
USE stylename FOR crit
CRITeria crit set the CRIT attribute for the current rule
OMIT elements omits the elements specified, by name or type, which may be an
expression, from the representation
At Representation Style . . .
FFPN integer set pen number for drawing edges (modelled wireline VIEWs) or
visible(front face) edges (hidden-line VIEWs).
BFPN integer set pen number for drawing rear edges of items (no effect in
modelled wireline VIEWs).
OBPN integer set pen number for drawing front-facing edges of items that would
OBPN OFF otherwise be obscured by other objects (global hidden-
line VIEWs only).
CLPN integer
CLPN OFF set pen number for drawing centrelines.
PLNP integer
PLNP OFF set pen number for drawing p-lines
MLNP integer
MLNP OFF set pen number for drawing member lines
PROFile ON
PROFile OFF set profile flag
PLINes ON
PLINes OFF set p-line flag
At Hatching Rule . . .
USE hstylename FOR crit
set hatching style for Design generic types, see above.
CRITeria crit set the CRIT attribute for the current HRUL.
FCODE SECTionedfaces
Sectioned faces will be hatched.
FCODE PRIMitivefaces
Primitive faces will be hatched.
DCODE ALLDirections
All faces will be hatched, regardless of direction
DCODE PERPendiculardirection
Faces perpendicular to the viewing direction will be hatched.
DCODE SPECifieddirection
Faces whose normals match the direction specified in the NORM
attribute of the HRUL will be hatched. The normal of a face is the
vector perpendicular to it and pointing out of the solid primitive.
Thus the normal of the uppermost horizontal surface of a box is
Up.
At Hatching Style . . .
OLPEN integer Set different pen number for drawing outline of selected faces.
PIPESYM TRUE
PIPESYM FALSE Pipe end symbols (or HVAC duct end symbols) will be drawn
instead of hatching.
PIPESYM TRUE
PIPESYM FALSE Pipe ends (or HVAC duct ends) will be hatched.
5.1 Introduction
DRAFT gives you the ability to construct sections through specified Design items, the
results of which can be displayed at VIEW level. All Planes are database items and can
therefore be used with more than one VIEW. There are three types of Plane element
which can be used to define four types of section plane, namely:
• A Perpendicular Flat Plane passes through a specified point in the 3D design,
being oriented so as to be perpendicular to the current VIEW direction. The VIEW
contents which are discarded can be on either side of the plane. This type of plane
would be used as either a section or a backing plane.
• A Flat Plane is similar to a perpendicular flat plane, but can be oriented to allow
views of the section from any angle.
• An Enclosed Plane. This is a particular form of stepped plane in which the first
and last points that define it coincide to form a ‘tube’ which is infinitely long along
its axis. Any VIEW direction can be used and either the inside or outside of the
‘tube’ can be removed. An enclosed plane is illustrated in Figure 5-2.
All Planes have a standard ‘retain’ and ‘discard’ side, depending on how the Plane is
defined in the database. The Plane can be used in either ‘standard’ or ‘reverse’ mode
which effectively switches the Plane’s action without altering its definition. This allows
the Plane to be used in different VIEWs both as a section or backing plane. Planes can
only be used with modelled VIEWs, that is not with basic wireline views.
All Planes are created and held within a Library structure, and are owned by a Planes
Library (PLLB) element. The part of the DRAFT database hierarchy relating to Planes
is shown in Figure 5-3.
LIBY VIEW
PLLB VSEC
PLRF
WPOS
• IDLN - an Id List name for the section to operate on. If left undefined this will
default to the World (i.e. /*). This means that all elements in the VIEW’s Id List will
be sectioned. A single Design item name can be used.
• PMOD - the mode in which the plane will be used to section the VIEW, i.e. the side
to be retained or discarded. The default is STANDARD, which is as the plane is set-
up. REVERSE switches the side to be retained or discarded. OFF switches the plane
off.
• CLMO (centreline mode) By default this is set to ON, which has no effect on
functionality. If it is set to OFF then the section will not be applied to line elements
of Piping Components. This allows you to remove Components and tubing by a
section plane, but leave the centreline to show the path of the Branch. All other non-
solid primitives are sectioned normally and are unaffected by the value of attribute
CLMO.
• SMOD (a View attribute) - the section mode attribute, which defines how small
parts of piping components and implied tube that are cut by the front and back
sectioning planes will be treated. This attribute only affects piping components and
implied tube in orthogonal, non-perspective Views.
If SMOD is set to STANDARD (the default), all elements will be sectioned in the
usual way. If SMOD is set to OMIT FRACtional PCOMonents, the following
functionality will apply when the design graphics of the View are updated:
• All piping components whose origins (P0) lie outside the front and back
sectioning planes will be removed from the drawlist. All other piping
components will be drawn completely, even if they are cut by one of the
sectioning planes.
• All lengths of implied tube that lie outside the front and back sectioning planes
will be removed from the drawlist. In this case the test for lying outside the
sectioning planes will be based on the vector Parrive -> Pleave, and not on the
actual volume occupied by the length of tube. Lengths of tube that lie within or
cross the front or back sectioning planes will be drawn completely.
POS @
- set POS attribute to a 3D Design position or
POS ID @
- set POS attribute to the 3D Design position of a Design element
POS IDP @
- set POS attribute to the 3D Design position of a Design element
p- point
NOTE: You can only input a 3D Design position on orthogonal VIEWs; the looking
direction of such a VIEW will determine which coordinate is returned as zero.
For example, a plan view will return U0 which you may need to alter to give the
required section.
Figure 5-4 illustrates the use of a perpendicular Plane, positioned at the pump coupling.
The SPLA shown in Figure 5-6 would be created by a sequence of commands such as:
NEW SPLA
DIR U
GTYP OPEN
STEP @ @ @ @ - Define a series of points through which an SPLA will be
constructed
The STEP command will invoke the cursor which will enable 3D positions or Design p-
points to be identified, automatically creating WPOS elements. DRAFT imposes no limit
on the number of steps, but in practice only four points can be defined by a single STEP
command due to command line length restrictions. If a plane with more than four steps
is required, further STEP commands will enable additional points to be appended to the
existing member list. The minimum number of points required to define an SPLA is 2,
which will have the effect of a Flat Plane.
WPOS elements can be created explicitly by command sequences such as:
NEW WPOS
POS E120500 N236785 U0
If this syntax is used you must leave the list of WPOS elements in the correct order for
the SPLA to function. Figure 5-7 illustrates some examples of Stepped Planes.
(The pictures in the left half of Figure 5-7 illustrate the use of the SKETCH PLANE
facility - see Section 5.4.)
If the STEP command is used then once a series of points are entered a check is made to
ensure correct SPLANE definition; if satisfactory then a message of the form:
Splane /name is satisfactory
is output. If the plane is not satisfactory then the message will indicate what the
problem is. Generally, an SPLA will be incorrect if parts of the plane overlap even if
extruded to infinity at the ends; Figure 5-8 illustrates this situation.
If you wish to change which side of a plane is retained or discarded, you can do this by
reversing the plane’s orientation if it is an FPLA and by changing the DIR or reordering
the WPOS points for a SPLA. The CHANGE ACTION command, for example:
Once a plane has been created, it can be queried in the following ways:
Q DESC - at Plane level (or at WPOS elements)
The plane referred to by the PLRF attribute of the VSEC can be queried by:
Q PLRF DESC - at VSEC level
It is possible to query whether a given 3D point is on the retained or discarded side by
using the following:
Q SIDE @ - at plane level
Q SIDE /plane_identifier @ - from anywhere
Q SIDE /plane_identifier E value N value U value - from anywhere
In the latter case, only two coordinates need to be given dependent on which orthogonal
view direction you are working on, e.g. for a Plan view only the Easting and Northing
are required.
You can make any plane visible in a suitable VIEW (i.e. one that is orthogonal to the
axis of the plane) by using the following commands:
SKETCH PLANE IN /view_identifier - at Plane level
Figure 5-7 shows the SKETCH PLANE command in use. Once the plane has been
Sketched then it will always be visible, irrespective of VIEW or area view manipulation.
Only one plane at a time can be sketched. A plane can be erased by either of the
following commands:
ERASE PLANE - at VIEW level
ERASE PLANE IN /view_name - from anywhere
Note that the sketch facility is only a ‘drafting aid’ and is not part of the VIEW
annotation. Any change made to a sketched Plane will not result in a corresponding
change to the displayed sketch - another SKETCH PLANE command will be needed.
Summary of Commands
For SPLAs . . .
DIR value - Set extrusion direction Use any PDMS direction syntax e.g. N45E
IDLN name - An Id list name for the section to operate on. If left
undefined will default to the Id list specified by the VIEW.
The Id list can only have Added items, any Removes will be
ignored. A single Design item name can also be used.
PMOD [STANdard | REVerse | OFF]
The Mode in which the plane will be used to section the view, i.e.
which side will be retained or discarded. The default is
STANDARD which is as the plane is set up, or REVERSE which
switches which side is retained or discarded. For a SPLA or
FPLAthis has the same result as using the CHANGE ACTIONS
command.
Querying . . .
Planes
Q DESC - At Plane level
Q SIDE /plane_name @
- From anywhere
Plane sketching . . .
SKETCH PLANE IN /view name
- At Plane level
Plane erasing . . .
ERASE PLANE - At VIEW level
P-points and structural node points (that is, PNODs and SNODs) may be picked by the
cursor. The main uses are
• for positioning annotation at a particular point on a primitive, for example the end
of a cylinder axis
A p-line (or member line) may be identified by cursor hit using the commands:
IDPL @ - select and identify p-line
IDPE/ND @ - select and identify p-line start or end
This will return syntax to the command line in the following form:
PPLINE word OF element_identifier
will return the proportional distance along the identified p-line. For example a GLAB
can be positioned by either of:
ON IDPL @
ON IDPD @
There are two query commands which enable you to convert between 2D Sheet positions
and 3D design data positions.
To derive a 3D position from 2D data use:
Q ENUPOSITION OF sheet_position (at/below a VIEW)
where sheet_position is a position on the Sheet. This position (which must be within the
VIEW rectangle) may be specified by cursor. This command returns the back-projection
of this position at Z=0 into the 3D world coordinate system of the current or specified
VIEW, for example:
W 15500 N 10020 U 0
The specified VIEW must be axonometric without perspective.
To derive a 2D position from 3D data use:
Q SHPOSITION OF position (at/below a VIEW)
where position may be a 3D point or p-point, explicit p-point reference, origin of a named
element, or an explicit 3D coordinate. This position or item may be specified by cursor.
This command returns the projection of the explicit or implied 3D position onto the
Sheet for the current VIEW. For example,
X 574 Y 200
As with the ENUPOS query command, the specified VIEW must be axonometric without
perspective and the specified position must lie within the VIEW rectangle.
You can query the 3D origin in World coordinates of any Design element using the
command:
Q IDORI @
Q IDORI sheet_position (at/below a VIEW)
The response will be of the form:
ID =123/456 ORIGIN W 0000mm N 0000mm U 0000mm
Cursor commands which request 2D points will be rounded to the nearest point on the
SNAP grid (if on). The grid is defined by the SNAP command, for example:
SNAP ON - turn the snap grid on
SNAP OFF - turn the snap grid off (the default)
SNAP ON 10 - define a square grid, 10mm in both X and Y directions
SNAP ON SPACING X25 Y40 - define a rectangular grid
When the SNAP grid is ON, all 2D cursor hits (including the BY @ command) will be
snapped onto the nearest grid point. This does not affect graphics picking or pseudo-3D
cursor hits. Snapping only applies to cursor-generated positions; positions entered
explicitly from the keyboard or via a macro are not snapped. Cursor hits will be snapped
on any picture, whether or not the visible grid (see VGRID command below) is
displayed.
By default, the SNAP grid origin is positioned at the bottom left-hand corner of the
Sheet, and is drawn parallel to the X, Y axes of the Sheet. This origin may be changed
by commands such as
SNAP AT X100 Y100 - define snap origin explicitly
SNAP AT @ - define snap origin with cursor
SNAP settings apply to all Sheets (and Symbol Libraries, Overlay Sheets etc) when
SNAP is ON. The initial setting (on entry to DRAFT) is a square grid at the Sheet
origin, with snapping switched off, i.e.
SNAP OFF AT X 0mm Y 0mm SPACING X 25mm Y 25mm
If the current PDMS units on module entry are INCH or FINCH, the initial SNAP
spacing is one inch square.
The snap grid may be queried using the command:
Q SNAP
The same information will also be output to file by a RECREATE DISPLAY command.
Visible Grids
The snap grid is invisible unless it is turned on by the command
VGRID ON
Visible grids are not output to plotfiles.
The VGRID command uses the current settings of the SNAP grid. A visible grid will be
output on the current Sheet using some multiple (default 1) of the current SNAP grid.
An element identifier may be specified as part of the command, for example:
VGRID /VIEW1-2 ON
This command would turn the visible grid on for the picture element (i.e. the SHEE,
LALB, BACK, OVER, ISOLB or SYLB) owning the specified element.
The visible grid is not maintained with changes in SNAP settings, so it is advisable to
reset the grid (with another VGRID ON command) if the SNAP settings are changed.
The spacing of the visible grid may be changed by commands such as
VGRID SNAP 2 - change visible grid spacing to twice that of snap grid
This command would give a less-cluttered grid display on the drawing. The default
setting may be returned to by giving the command
VGRID SNAP
The following would cause a visible grid to be erased from the current Sheet (or a
specified Sheet), where sheet identifier identifies a picture element or an owned
element.:
VGRID [sheet identifier] OFF
ERASE AIDS [IN sheet identifier]
ERASE VGRID [IN sheet identifier]
The following causes all visible grids to be erased:
Module switching
Entry to MDB mode
The snap multiple of the visible grid may be queried using the command:
Q VGRID
Details of the VGRID snap multiple will also be output to file by a RECREATE DISPLAY
command.
It is also possible to query whether a specified Sheet currently has a visible grid
displayed, using
Q VGRID sheet_identifier
Displayed elements can be highlighted (flashed) by using the HIGHLIGHT command. The
elements concerned may be Design elements (from significant element downwards,
including implied Tubing and Rodding) or DRAFT annotation elements (i.e. Layers,
Dimensions, Labels, 2D Drafting primitives). Overlay (OLAY) elements may also be
highlighted. For example:
HIGHLIGHT
Highlight current annotation element in all area views in which it
appears
HIGHLIGHT IN /VIEW1-1
Highlight current element (design or notation) in named VIEW
HIG IN ID VIEW @
Highlight current element in cursor-identified VIEW
HIG /1501B IN ID VIEW @
Highlight named design element in cursor-identified VIEW
HIG
HIG
HIG
HIG
IARRIVE TUBE OF /VALVE1 IN /VIEW4
ILEAVE TUBE OF CE IN /PLAN_VIEW
HEAD TUBE OF /BRAN99 IN CE
TAIL TUBE OF CE IN /E_ELEVATION
} Example commands
for highlighting
implied tubing
HIG IN _f1_v1
Highlight current element in named area view
HIG /1501B
Highlight named Design element in all area views in which it appears
HIG /1501B IN _f1_v1
Highlight named element in named area view only
Elements may also be highlighted simply by passing the cursor over them in the display
with the left-hand button held down.
NOTE: For the permanent highlighting of 2D Drafting primitives, see the ENHANCE
command in Section 9.4.4, Part 2, Drawing Annotation.
Summary of Commands
Cursor Identification/Selection . . .
ID @ - select and identify any displayed element
The following can only be used as part of a command. For example, ON IDP @:
IDP @ - select and identify p-point
IDPL @ - select and identify p-line
IDPE/ND @ - select and identify p-line start or end
ID PADEL @
ID DRAEL @ - select and identify any Draft element
Querying . . .
Q ENUPOSition OF sheet_position
derives a 3D position from 2D data
Q SHPOsition OF position
derives a 2D position from 3D data
You can query the 3D origin in World coordinates of any Design element using:
Q IDORI @
Q IDORI sheet_position
(at/below a VIEW) returns the 3D origin in World coordinates of a
Design element
P-point Visibility . . .
PPOINTS SIG - significant element p-points made visible
Highlighting Elements...
HIG /1501B - highlight named Design element in all area views in which it
appears
At any time during the drawing process, you can generate a plotfile that can consist of a
single Sheet, View or the contents of an Area View.
7.1 General
Plotfiles are produced by the PLOT command, which takes the following alternative
forms:
PLOT uuname filename [papersize] [OVERWRITE]
For example:
PLOT /SHEET1 /SH1.PLT
PLOT VIEW FILE /VW1.PLT A3
If the paper size is not specified then it will be taken as the same as the item being
plotted. Existing plotfiles will not be overwritten unless the OVERWRITE option is used.
There are three additional options which may be specified between papersize and
OVERWRITE:
• CUTMARKS. By default the rectangular limit of the plotfile will be shown; this can
be suppressed by CUTMARKS OFF.
• The BORDER value option will cause a border to be left within the specified paper
size. The image size of the item being plotted will be reduced accordingly.
• The FRAME option causes a frame to be drawn around the image; FRAME can only
be used in concert with the BORDER option and marks the inside edge of the
border. It does not control the frame around the edge of the plotfile (see CUTMARKS
above).
AutoCAD font files are provided as part of the AutoDRAFT software. Instructions
for installing these can be found in the VANTAGE PDMS Installation Guide.
• Layers are assigned to entities according to their colour definition within DRAFT.
These layers are named GT_n , where n is a number that corresponds to a PDMS
colour.
• Colours are maintained according to Layer (i.e. BYLAYER in AutoCAD). Note
that the Layer colour for all DRAFT layers is white.
The ENTITIES section then follows, and is normally closed by the standard AutoCAD
EOF.
7.2.5 Scaling
The output written to the DXF file can be scaled using the SCALEUP command option. If
required, the scaling value should be specified after the Z coordinate and character
encoding requirements. For example:
PLOT SHEE DXF /SHEET.DXF ACAD ZCOORD EUC SCALEUP 100
This will cause all values in the file to be increased by 100. Factors such as paper size,
line thickness and character height will all be affected. This option allows the effects of
VIEW scaling to be reversed to some extent.
It is also possible to omit the CONFIGDATA, in which case the default values of all the
switches will be assumed and no blocking will take place. However, in such a case a DXF
header file must be specified; for example:
Note: The default values specified in this table are those set up by the configuration
macro default_dxf.mac, as supplied with the product. The supplied default
values will always be obtained when using the System Defaults for DXF Output
option on the Configurable DXF Output form in the standard graphical user
interface.
7.3.3 Limitations
The following limitations apply:
• DRAFT's intelligent blanking primitives are not exported to the DXF file as there
are no equivalent AutoCAD primitives to which to map them.
• User-defined line patterns (see Section 18.3.2) are assigned to a fixed (dashed)
linetype definition in the DXF file using the DRAFT line pattern name as the DXF
linetype name. This definition can be redefined in AutoCAD to provide the
linestyle required.
• User-defined glyphs and line pictures(see Sections 8.3.4 and 8.3.5) are ignored.
• Differentially scaled symbols are not supported.
DLICON /myconfig
configuration_options
EXIT
A DRAFT Configuration Dataset is made up of a series of Switches, Group rules and
Level rules. The configuration_options will contain the GROUP, LEVEL and SWITCH
syntax that controls the content of the DGN file produced.
For example:
SWITCH LevelDefault '63'
Level 63 to be used by default
SWITCH SeedFileName 'seed.dgn'
Specifies the DGN header file name
GROUP ALL EQUI, INCLUDE NAME
A group will be created for each equipment, which will be tagged with
its name
LEVEL ALL NOTE, 'ON 32'
Level 32 to be used for NOTE elements
Switch names are case-independent, but are shown as mixed case here to aid legibility.
Switch values are PDMS text strings, and should be quoted.
Rules for Groups and Levels use PML expressions, similar to those used in
Representation rules. GROUP rules may be followed by the INCLUDE argument to tag
the group with attribute data; LEVEL rules should be followed by a text string defining
the level or range of levels to be used.
NOTE: For full details of using expressions in PDMS, see the VANTAGE PDMS
DESIGN Reference Manual, Part 1, Section 2-3-11, or use the online help and
search for ‘‘expressions”.
The configuration options may be overridden by LIEXEC command line options. In
particular, the OutputFileName switch would normally be overridden by an LIEXEC
option. For example:
LIEXEC /Draft_DGN_LI 'DGNOUT' CONFIGDATA 'MyConfigData' OutputFileName '%PDMSUSER%/new.dgn'
It is also possible to omit the CONFIGDATA, in which case the default values of all the
switches will be assumed, the internal default seed will be used, and no grouping or
levelling will take place.
The datasets currently defined within DRAFT can be determined by:
DLICON LIST
The definition of a specific dataset can be determined by:
DLICON name DUMP
The value of a specific switch within a dataset can be determined by:
For example:
'CHAINED:pdmsChained, DASHED:pdmsDashed, DDOTTED:pdmsDdotted'
'1–11:15,12–20:33–41'
'1–20:26–30R' (maps 1:26, 2:27, 3:28, 4:29, 5:30, 6:26, 7:27, etc.)
'20–29:1–3D6' (maps 20:1, 21:2, 23:3, 24:6, 25:6, etc.)
7.4.3.1 OutputFileName
Specifies the output DGN file name produced when exporting DGN file information. For
example:
SWITCH OutputFileName '%PDMSUSER%\DGN_file_name.dgn'
7.4.3.2 SeedFileName
Specifies the DGN seed file name to be used to create the output DGN file. If no seed file
name is provided, an internal default seed will be used. The seed file must be a valid
MicroStation 2D seed file, and must not contain any inconsistent element data. Any tag-
set definitions in the seed must not conflict with those created by Draft_DGN_LI. For
example:
SWITCH SeedFileName '%PDMSEXE%\dgndata\pdmsSeed2d.dgn'
SWITCH SeedFileName 'mySeedFile.dgn'
The use of a seed file is optional.
A sample seedfile pdmsSeed2d.dgn is supplied with Draft_DGN_LI. This contains a
colour table which maps the default PDMS colours 1-16 into Microstation colours.
Note: In configurations which use the supplied seedfile, the MapColour switch should
be set to ‘1-256:0-255’
7.4.3.3 Units
MicroStation uses three levels of working units: Master Units, Sub-Units and Positional
Units (or Units of Resolution).
The seed file contains the size ratios of these three units, and may contain descriptions
(max. two characters) of the master and sub-units, but there is no universal set of
descriptions in use. The Units switch may be used to override the settings in the seed
file, and must contain the size of a master unit in millimetres (MASTMM):
Master Units Description MASTNAME, size in millimetres MASTMM
Sub-Units Description SUBNAME, ratio per master unit SU
Positional Units Ratio per sub-unit PU
These keywords are not case-sensitive, but the values of MASTNAME and SUBNAME
are case-sensitive. The most common scenarios will be:
• The working units are set up in the seed file. In this case, the Units switch just
contains the size of a master unit in mm. For example, with an imperial seed file,
with master units inches, the Units switch should be:
SWITCH Units 'MASTMM:25.4'
• The working units in the configuration override those in the seed file: all Units
options are needed. (A minor exception is that if the MASTNAME setting is
recognised as a common value, MASTMM may be omitted.) For example, to set both
the master and sub-unit names to millimetres, with one sub-unit per master unit,
and 1270 positional units per sub-unit, the Units switch should be:
SWITCH Units 'MASTNAME:mm,SUBNAME:mm,SU:1,PU:1270,MASTMM:1.0'
The MASTNAME and SUBNAME values cannot be quoted strings, but can include
characters such as " (inches) and ' (feet). Only the first two characters of these values are
significant, and it is not possible to include a space or comma in them. (If you wish to
use a space or comma in MASTNAME and SUBNAME values, you must set up the
working units in the seed file, as in the first scenario.)
Some more examples of Units settings, respectively for Master units in feet accurate to
1/64th inch; and metres accurate to 0.01mm:
SWITCH Units |MASTNAME:',SUBNAME:",SU:12,PU:64,MASTMM:304.8|
7.4.3.4 ScaleFactor
A Scale Factor is applied to the entire DGN file to enable full-scale Design units to be
output in the DGN file. The default value is 1.0.
7.4.3.5 ShiftX
A horizontal shift is applied to everything written to the DGN file to position the
drawing at any required place on the Design Plane. The shift is measured in
MicroStation Master Units, and the default value is 0.0.
7.4.3.6 ShiftY
A vertical shift is applied to everything written to the DGN file to position the drawing
at any required place on the Design Plane. The shift is measured in MicroStation
Master Units, and the default value is 0.0.
7.4.3.7 ExcludeBack
If this switch is set to On (the default is Off), any Backing Layer of the DRAFT drawing
is not transferred to the DGN file.
7.4.3.8 ExcludeOlay
If this switch is set to On, (the default is Off), any Overlays on the DRAFT drawing are
not transferred to the DGN file.
7.4.3.9 ExcludeSheetFrame
If this switch is set to On, (the default is Off), the sheet frame on the DRAFT drawing is
not transferred to the DGN file.
7.4.3.10 ExcludeFill
If this switch is set to On, (the default is Off), no hatching (including solid fill) in the
DRAFT drawing is transferred to the DGN file. This may be useful for good performance
in MicroStation, since hatching is transferred as a set of lines.
7.4.3.11 ExcludeSolidFill
If this switch is set to On, (the default is Off), all solid fill is ignored and not transferred
to the DGN file. However, other Hatching is still transferred.
7.4.3.12 ExcludeArrowFill
If this switch is set to On, (the default is Off), any solid fill for terminators on dimension-
lines and label leader-lines is omitted from the transfer to the DGN file. Other solid fill
and hatching is transferred.
Note: More than one of these switches to Exclude Fill may apply to the same entity. If
any of these switches is true, then the entity will be excluded. For example,
either ExcludeSolidFill or ExcludeArrowFill could be used to exclude the fill for
dimension-line arrowheads. However, ExcludeArrowFill is more specific.
7.4.4.2 MapLineStyle
MicroStation has seven numbered line-styles, and can also have named custom line-
styles. MicroStation documentation recommends using named styles, but some drawing
standards specify numbered ones. DRAFT also uses a mixture of named and numbered
line-patterns. The MapLineStyle option maps the DRAFT line-pattern to a MicroStation
line-style, ignoring line picture and glyphs. (See Section 7.4.4.3 for how to map line-
styles involving line pictures or glyphs.)
A resource file pdms_lsty.rsc supplied with PDMS contains custom line-styles
equivalent to the default named PDMS line-patterns.
• Any ScaleFactor (see Section 7.4.3.4) is applied to custom line-styles used in the
DGN file.
• Any unmapped line-styles map to Solid lines.
The following example maps DRAFT’s named line-styles to their nearest equivalents in
MicroStation’s numbered styles. This is the default:
SWITCH MapLineStyle 'SOLID:0,DASHED:2,DOTTED:1,CHAINED:4,
LDASHED:3,DDOTTED:6'
The next example maps DRAFT named line-styles to some custom line-styles provided
as a MicroStation resource file:
SWITCH MapLineStyle'CHAINED:pdmsChained,DASHED:pdmsDashed,
DDOTTED:pdmsDdotted,DOTTED:pdmsDotted,LDASHED:pdmsDashed,
SOLID:0,TCHAINED:pdmsTChained'
Custom line-style names can include spaces and punctuation; for example, the default
MicroStation/J installation includes styles { -E- } and { Cable / Tele }. See Section 7.4.2.2
for details of when you must quote the style-names. As this mapping can get long, (the
preceding example is a single line mapping), you may need to use the continuation
facilities described in Section 7.4.2.3.
7.4.4.3 MapLineStyleByPen
More complex DRAFT line-styles can be set up by the combination of line-pattern, line
picture, line thickness and glyph. To map these combinations onto MicroStation line-
styles, you must map them by Pen Number. (Note that this is the pen number as stored
in the database, which is not the same as the pen number in the DRAFT Administrator
User Defined Pen Settings form.)
For example, you might have DRAFT pen numbers 217 and 222 set up as:
setpen 217 colour 4 solid lthick 2 lpic 4 glyph 1
lpicture 22 mode 3 size 2 repeat 12 gap 4
setpen 222 colour 6 solid lthick 1 lpic 22 glyph 12
and wish to map these to the MicroStation custom line-styles Pneumatic and ‘Data link’
respectively. For this you could use the switch setting:
SWITCH MapLineStyleByPen '217:Pneumatic,222:|Data link|'
Custom line-style names can include spaces and punctuation; for example, the default
MicroStation/J installation includes styles { -E- } and { Cable / Tele }. See Section 7.4.2.2
for details of when you must quote the style-names. As this mapping can get long, you
may need to use the continuation facilities described in Section 7.4.2.3.
7.4.4.4 MapColour
Both DRAFT and MicroStation use colour numbers, and the mapping between them is
controlled by the MapColour switch. The interpretation of these colours by MicroStation
depends on the colour-table loaded (this can be included in the seed file). For example:
SWITCH MapColour '1:11,2:1,3:6,4:2,5:3,6:4,7:5,8:37,9:33,10:0, 15:254'
SWITCH MapColour '1:96,2:51,3:22,4:52,5:50,6:15,7:49,8:64,9:51,
10:0,11:96,12:13,13:63,14:197,15:25416:37'
The second example gives a fairly close fit in MicroStation to the PDMS colours used if
no seed-file is specified. This is the default mapping. Any unmapped colours are mapped
to MicroStation colour 0.
The sample seed-file pdmsSeed2d.dgn contains this mapping. The following mapping
should be used with this seed-file:
SWITCH MapColour ‘1-256:0-255’
The default mapping is 1-256:0-255. Any unmapped colours are mapped to MicroStation
colour 0. This mapping should be used when the supplied seedfile is used.
7.4.4.5 MarkerSize
This option sets the size of a DRAFT marker in millimetres (at scale 1). The size of a
marker in the DGN file will be the product of this size, the scale of the relevant DRAFT
pen, and the overall ScaleFactor switch setting (see Section 7.4.3.4). The default is 1.0.
Note that using the SYMBOL font will only produce good results if it is mapped to a font
containing suitable symbol-characters in the correct character positions. The SYMBOL
font is included in the MicroStation resource file pdmsSamFont.rsc supplied with
PDMS. When using the supplied resource file, the following font mapping should be
used:
SWITCH MapFont ‘11-16:201p,21-23:202p,24-26:203p,31-33:204p,34-
36:205p,41-43:206p,44-46:207p,SYMBOL:255p’
7.4.5.2 FontSlopes
This option controls whether DRAFT font slopes are translated into MicroStation text
slants (default On) or are ignored (Off).
7.4.6.1 LevelDefault
This switch sets the default level: ie the level which will be used if no other switches or
rules apply. The default value is 1. For example:
SWITCH LevelDefault '63'
7.4.6.2 LevelPen
This switch can set a mapping to DGN levels associated with DRAFT pen numbers. This
allows fine control of which levels are used for which parts of the DRAFT drawing. (Note
that this is the pen-number as stored in the database, which is not the same as the pen
number in the DRAFT Administrator User Defined Pen Settings form.)
For example:
SWITCH LevelPen '10-20:30-40,100-200:63'
This puts lines and text drawn with pen 10 onto level 30, pen 11 onto level 31 and so on,
up to pen 20 onto level 40. DRAFT pens 100 to 200 are put onto level 63. Any other pens
have no specific levels, and the default level is used.
Note that levels set by LevelBack (see Section 7.4.6.3) or Level Rules (see Section
7.4.6.4) take priority over this switch.
7.4.6.3 LevelBack
This switch can set the level number for the backing sheet and everything contained
within it. The default is Off. If this option is switched On, then no other level switches or
rules will apply to items within the backing sheet. For example:
SWITCH LevelBack '63'
This uses level 63 for the backing sheet and everything within it.
(a message will be written to the log-file, if any, each time this occurs). Any tags
associated with the group will be associated with the first group created.
Note that the groups produced are never nested.
7.4.7.1 GroupSymb
The default for this switch is Off. If it is switched On, a single group is created for each
instanced DRAFT symbol if no other group is active.
7.4.7.2 GroupFill
The default for this switch is Off. If it is switched On, a single group is created for each
DRAFT hatch/fill pattern if no other group is active.
7.4.7.3 GroupFrame
The default for this switch is Off. If it is switched On, a single group is created for each
DRAFT view frame if no other group is active. This option puts the line representing the
frame itself, not the contents of the frame, into the group.
7.4.11 Limitations
The following limitations apply:
• DRAFT's intelligent blanking primitives are not exported to the DGN file.
• User-defined glyphs and line pictures (see Sections 8.3.4 and 8.3.5) are ignored.
However, it is possible to specify a MicroStation custom line-style for a given
DRAFT pen number.
• Differentially scaled symbols are not supported.
• Hatching (fill) is exported as a set of poly-lines.
• Dimensions are not exported as MicroStation dimensions. However, they may be
grouped.
• Multi-byte fonts are not supported with MicroStation/J.
8.1 Introduction
Every graphics primitive in DRAFT is drawn in a specific line pen. Each pen has a pen
number in the range 1-255.
Each numbered pen can be defined to have some or all of the following attributes:
• A colour.
• A line representation. This applies to all drawn lines. Each representation itself
has the following attributes:
• A thickness - 11 widths.
• A pattern - solid, dashed, dotted etc; a choice of 10 predefined patterns is
available; you can also define your own.
• A glyph (optional) - a symbol used in the definition of a line picture (see
below). A choice of 20 glyphs is available; you can also define your own.
• A line picture (optional) - defining the size of the glyphs, their spacing and
the length of gap (if any) made for them in the line path. A choice of 20
predefined line pictures is available; you can also define your own.
• A marker type. A choice of five marker types (drawn at a user-definable scale) is
available.
• A hatch pattern (used only for closed polyline graphics primitives, e.g. circles
(CIRC), rectangles (RECT) etc). A choice of 20 predefined line pictures is available;
you can also define your own.
Each of the above attributes is discussed in detail in sections 8.2 - 8.5. How to set up a
(numbered) pen with the above attributes is defined in section 8.6. Having set up a pen,
the pen number can then be assigned to a number of pen attributes possessed by various
DRAFT elements. These elements and their relevant attributes are referred to
throughout this manual, but a few general rules are given in section 8.7.
The term linestyle is used here and elsewhere in this document to describe the overall
appearance of a line in terms of its thickness, pattern and picture.
8.2 Colours
You may define colour numbers 1 to 128. The COLOUR command is used to define the
Red-Green-Blue mixfor a colour nimber or to assign a predefined colour mix by name.
For example:
COLOUR 3 GREEN
COL 4 WHITESMOKE
COL 128 MIX RED 80 GREEN 50 BLUE 50
COL 100 MIX RED 50 GRE 50 BLU 0
Note: When colours are mixed in their Red, Green, and Blue constituents the
command line must contain values for all three constituents in the correct
order. The numbers entered for the relative proportions of the basic colours
must each be in the range 0-100, but they are not percentages of the overall
colour and so do not need to add up to 100.
COLOUR MIXTURE
Red Green Blue
pink 80 57 62
salmon 98 50 44
orange 93 60 0
brightorange 100 65 0
orangered 100 50 0
maroon 6 14 42
yellow 80 80 0
gold 93 79 20
lightyellow 93 93 82
lightgold 93 91 67
yellowgreen 60 80 20
springgreen 0 100 50
green 0 80 0
forestgreen 14 56 14
darkgreen 18 31 18
cyan 0 93 93
turquoise 0 75 80
aquamarine 46 93 78
blue 0 0 80
royalblue 28 46 100
navyblue 0 0 50
powderblue 69 88 90
midnight 18 18 31
steelblue 28 51 71
indigo 20 0 40
mauve 40 0 60
violet 93 51 93
magenta 87 0 87
beige 96 96 86
wheat 96 87 70
tan 86 58 44
sandybrown 96 65 37
brown 80 17 17
khaki 62 62 37
chocolate 93 46 13
darkbrown 55 27 8
Lines may have some or all of the representation attributes listed in Section 8.1.
Examples of the available options are illustrated in the following sections.
DASHED DDOTTED
DOTTED FDOTTED
CHAINED DCHAINED
LDASHED TCHAINED
The two parameters are defined by the LPATTERN command, which takes the general
form:
LPATTERN int [TEMplate [int |name] | REPeat distance ]
[ [ REPeat distance ] pattern_description ]
The pattern_description is specified by a series of DASH and GAP keywords and relative
lengths (given in integers). For example, a chained pattern description could be given as:
DASH 20 GAP 5 DASH 5 GAP 5
A pattern description must start with a dash and it is recommended that it should end
with one as well so that lines do not end with a gap but are drawn to their full length. It
would therefore be better if the previous example was defined as:
DASH 10 GAP 5 DASH 5 GAP 5 DASH 10
If the TEMPLATE option is used then DRAFT will take the Line Pattern specified by the
template name or number as the starting point for the definition of the new Line
Pattern. In order to change the repeat distance of an existing user-defined Line Pattern
it should be specified as the template. It is not possible to change the definition of the 10
predefined Line Patterns. The LPATTERN and TEMPLATE numbers must be in the
range 1 - 100.
The definitions of the 10 predefined Line Patterns are:
Pattern Name REPEAT DASH GAP DASH GAP DASH GAP DASH
distance
SOLID - - - - - - - -
DASHED 12 4 4 4 - - - -
DOTTED 6 8 44 8 - - - -
CHAINED 24 80 32 16 32 80 - -
LDASHED 18 72 36 72 - - - -
DDASHED 22 25 25 50 24 2 24 25
DDOTTED 16 25 24 2 24 2 24 25
FDOTTED 3 1 23 1 - - - -
DCHAINED 30 60 25 25 25 25 25 60
TCHAINED 45 100 25 25 25 25 25 25
25 100
The Repeat distances are in millimetres, the DASH and GAP values are relative sizes.
See section 8.6.2 for examples of using the SETPEN command to set line pattern to a
pen number.
Note that the appearance of a pattern on a screen will not be identical to that obtained
in plotfiles and DXF files. In particular, the size of the marks and spaces will not be
affected by zooming in or out.
8.3.3 Glyphs
A choice of 20 predefined line glyphs is available, see Figure 8-3, and you can also define
your own, see Section 8.3.4. The actual size and spacing of the glyph will depend upon
the line picture with which it is used.
Glyph 2 L
Glyph 3 Cross
Glyph 4 Zigzag 1
Glyph 5 Zigzag 2
Glyph 19 Star
Examples
The following examples define the standard glyphs supplied, which are illustrated in
Figure 8-3.
Glyph 1: Double slash
LGLYPH 1 START EXTENT 20 PLINE 5 10 -15 -10 BREAK PLI -5 -10 15 10
Glyph 2: L Symbol
LGLYPH 2 STA EXT 20 PLI 0 10 0 -10 10 -10
Glyph 3: Cross
LGLYPH 3 STA EXT 20 PLI -10 -10 10 10 BRE PLI -10 10 10 -10
Glyph 4: Zigzag 1
LGLYPH 4 STA EXT 20 PLI -10 0 -10 10 10 -10 10 0
Glyph 5: Zigzag 2
LGLYPH 5 STA EXT 20 PLI -20 0 -10 10 10 -10 20 0
LGLYPH 19 ADD BRE PLI -383 924 383 -924 BRE PLI -924 383 924 -383
Glyph size: The SIZE to which the glyph reference size is scaled. This
value must be specified.
Glyph repeat distance: The approximate frequency of the glyphs. The first glyph
has its origin at half the REPEAT distance from the start of
the line. With Mode = 2 or 3 DRAFT will adjust the specified
repeat distance so as to give an integer number of repeats.
For Mode = 4, 5 or 6 the glyphs will be placed with their
origins at half the repeat distance from the appropriate
ends. With Mode = 4, 5 or 6 the repeat distance may be 0 or
unspecified, otherwise it must be specified and be greater
than 0.
All DRAFT’s predefined glyphs (except numbers 10, 11, and
20) have their origins at their centres and thus a repeat
distance of 0 with Mode = 4, 5 or 6 will cause them to be
centred upon the end(s) of the primitive. This is generally
satisfactory for balloons, dots, etc but with arrowheads it
will cause the primitive to appear longer than specified. To
avoid this, the repeat distance should be equal to the SIZE
value. This will cause the origin of each glyph to be
positioned at half the repeat distance from the end.
Gap length: The length of each GAP in the path. This may be 0 if no gaps
are required. If it exceeds the repeat distance then the path
itself is completely omitted - only the glyphs will be drawn.
If not specified then 0 is assumed.
In addition, the template option, if used, causes DRAFT to take the Line Picture
specified by the template number as the starting point for the definition of the new Line
Picture. In order to change the definition of an existing Line Picture it should be
specified as the template. The TEMPLATE number must be in the range 1-100.
Predefined Line Pictures
The line is drawn in the current thickness and pattern (i.e. dashed, chained etc). There
are 400 possible line picture/glyph combinations. Figure 8-4 shows the 20 line pictures
combined with one glyph (glyph 15).
Line pictures 1-9 produce small glyphs which will generally fit neatly in a 2mm gap in
the line. Line pictures 10-14 produce glyphs that are twice as big, and so most will fit
into a 4mm gap.
Where gaps are marked ‘50000’ the line itself is omitted, i.e. only the glyphs are drawn.
This style could be used, for example, to draw a series of arrowheads to denote flow
direction in pipework without drawing the centreline of the pipework. It is for this
reason that the set of glyphs includes backward-pointing arrowheads.
Line pictures 15-20 put the glyph at the end(s) of the line. Line pictures 15 and 16
produce small (2mm) glyphs, line-pictures 17 and 18 are larger (4mm), and 19 and 20
are much larger (generally equivalent to 12mm diameter). Actual definitions are:
All distances quoted (i.e. SIZE, REP, and GAP values) are in millimetres.
When a glyph is omitted from the definition of a pen, the line picture will be drawn with
any gaps that the line picture defines. When a line picture is omitted from the
definition, any glyph assigned to the pen will be ignored. Glyphs and line pictures may
be removed from the definition of a pen by the GLYPH OFF and LPICTURE OFF syntax,
see section 8.6.
LPIC 1
LPIC 2
LPIC 3
LPIC 4
LPIC 5
LPIC 6
LPIC 7
LPIC 8
LPIC 9
LPIC 10
LPIC 11
LPIC 12
LPIC 13
LPIC 14
LPIC 15
LPIC 16
LPIC 17
LPIC 18
LPIC 19
LPIC 20
The marker type attribute is used to define the symbol to be used to represent p-points
and MRKP primitives. A choice of five marker types (drawn at a user-definable scale) is
available.
. (STOP)
x (CROSS)
+ (PLUS)
* (STAR)
o (RING)
A predefined set of hatch patterns is provided; it is also possible for you to define your
own. Hatch Pattern is defined in terms of three parameters:
Angle: the slope of the hatch lines in degrees measured in a
counter-clockwise direction from the horizontal. The value
specified must lie in the range -360 to 360. If not specified a
value of 30 will be assumed.
Separation: the spacing between the hatch lines. If 0 then a solid fill is
achieved. The specified value will always be used in plot
files; on terminals the spacing will be device-dependent but
it will be related to the specified value. If no value is given, 4
mm will be assumed.
Offset: this is the offset of the hatch-pattern from the bottom left-
hand corner of the picture. It is only of real use when two
hatch-patterns with the same angle and separation are
combined together in a single pen. If they have different
offsets double-line hatching can be achieved. If no value is
given 0 is assumed.
In addition, the template option, if used, causes DRAFT to take the Hatch Pattern
specified by the template number as the starting point for the definition of the new
Hatch Pattern. In order to change the definition of an existing Hatch Pattern it should
be specified as the template. The TEMPLATE number must be in the range 1-100.
Predefined Hatch Patterns
Twenty predefined hatch patterns plus a solid-fill capability are provided. Hatch
patterns 1-10 are shown (within square RECT primitives) in Figure 8-6. These provide
two separations (2mm and 4mm) and six angles (30, -30, 45, -45, 0, 90). The offset value
for all of these settings is 0mm. Patterns 11-20 are similar except that they have a
different offset value. The offset for the 4mm separated patterns is 0.5mm and that for
the 2mm separated patterns is 1mm.
For all hatch patterns, the (optional) solid-fill colour will be that of the pen to which the
hatch pattern number is assigned. (See section 8.6.2 for an example command.)
It is possible to assign two hatch patterns to a single pen. This enables you to create
more complicated hatching styles. By combining two 4mm-separated patterns that differ
only in offset value (e.g. patterns 4 and 14), you can obtain a double-hatching style.
Combining two 2mm-gapped patterns that differ only in offset value (e.g. patterns 8 and
18) will produce hatching with a 1mm gap. These combination patterns are shown in
Figure 8-7. Other combinations will generally produce cross-hatching; examples of
possible permutations are shown in Figure 8-8.
Actual definitions are:
HPATTERN 1 HPATTERN 6
Angle 30° Angle 90°
Gap 4mm Gap 2mm
HPATTERN 2 HPATTERN 7
Angle -30° Angle 30°
Gap 4mm Gap 2mm
HPATTERN 3 HPATTERN 8
Angle 45° Angle -30°
Gap 4mm Gap 2mm
HPATTERN 4 HPATTERN 9
Angle -45° Angle 45°
Gap 4mm Gap 2mm
HPATTERN 5 HPATTERN 10
Angle 0° Angle -45°
Gap 2mm Gap 2mm
HPATTERN 1 + HPATTERN 6 +
HPATTERN 11 HPATTERN 16
HPATTERN 2 + HPATTERN 7 +
HPATTERN 12 HPATTERN 17
HPATTERN 3 + HPATTERN 8 +
HPATTERN 13 HPATTERN 18
HPATTERN 4 + HPATTERN 9 +
HPATTERN 14 HPATTERN 19
HPATTERN 5 + HPATTERN 10 +
HPATTERN 15 HPATTERN 20
HPATTERN 1 + HPATTERN 6 +
HPATTERN 2 HPATTERN 1
HPATTERN 2 + HPATTERN 7 +
HPATTERN 7 HPATTERN 8
HPATTERN 3 + HPATTERN 8 +
HPATTERN 4 HPATTERN 12
HPATTERN 4 + HPATTERN 9 +
HPATTERN 8 HPATTERN 13
HPATTERN 5 + HPATTERN 10 +
HPATTERN 6 HPATTERN 9
8.6.1 Defaults
By default, pens 1-120 are predefined as follows:
Notes: Hatch patterns 11 to 20 and solid fill are not assigned to pens by default.
Glyphs and line pictures are not assigned to pens by default, but a macro
(linestyles.mac) is supplied which, when run, will define pens 201 to 220 to
have the line picture/glyph combinations shown in Figure 8-9.
PEN 201
glyph 15 lpic 1
PEN 202
glyph 4 lpic 2
PEN 203
glyph 8 lpic 3
PEN 204
glyph 5 lpic 4
PEN 205
glyph 1 lpic 5
PEN 206
glyph 19 lpic 7
PEN 207
glyph 16 lpic 9
PEN 208
glyph 8 lpic 10
PEN 209
glyph 6 lpic 11
PEN 210
glyph 16 lpic 13
PEN 211
glyph 18 lpic 15
PEN 212
glyph 10 lpic 16
PEN 213
glyph 16 lpic 16
PEN 214
glyph 10 lpic 17
PEN 215
glyph 16 lpic 18
PEN 216
glyph 12 lpic 19
PEN 217
glyph 16 lpic 19
PEN 218
glyph 14 lpic 19
PEN 219
glyph 20 lpic 20
PEN 220
glyph 19 lpic 20
Colour number must be an integer in the range 1-128 (except when used with the
PLOTPEN command, see below); marker scale must be an integer in the range 1-8. The
integer used to define line picture, glyph and hatch pattern(s) must be in the range
1-100. OFF is another option for the first two of these, for example:
SETP 99 LPIC OFF GLY OFF
removes line picture/glyph definition from pen 99
When using the PLOTPEN command to define the plotter pen the colour number can be
in the range 1-255. This number is written to PDMS plotfiles as the pen number or as
the layer number (as GT_n) in standard DXF format files. If the SETPEN command is
used with a colour number in the range 129-255, only the plotter colour number is
changed.
Note that if a colour name is specified rather than a number when using the SETPEN
syntax the colour number, written to the plotfile as the pen number or the layer number
in DXF files, will be defined by PDMS and will be in the range 206-255. Thus:
SETP 100 COL 2 THIN DASHED
will cause 2D graphical primitives (drawn in DRAFT pen 100) to be assigned
pen 2 in PDMS plotfiles and to layer GT_2 in DXF files.
However:
SETP 100 COL RED THIN DASHED
will cause 2D graphical primitives (drawn in DRAFT pen 100) to be assigned
pen 214 in PDMS plotfiles and to layer GT_214 in DXF files. (As 214 is the
PDMS system colour for RED.)
Having set up a pen definition, an element will be drawn in that style by assigning the
pen number to the appropriate element attribute. For example (at a 2D drafting
primitive):
SETPEN 33 COL 4
Assign colour 4 to pen 33
NLPN 33
Set the element’s NLPN (note line pen) attribute to pen 33. The element will
be drawn in colour 4.
NLPN (note line pen) is an attribute of all 2D drafting primitives (STRA, RECT, CIRC
etc, see Section 14). Note that NLPN may be set to OFF, which enables filled 2D
primitives with no ‘edge’ to be drawn.
The DRAFT element pen attributes are too numerous to list here, but a general rule is
that they all end in ‘PEN’ or ‘PN’. Most are used to draw lines, and as such may have
any or all of the representation attributes (except hatch pattern and marker type/scale)
detailed in this Section assigned to them. Exceptions to this rule are:
• FPEN (fill pen), an attribute of closed polyline 2D drafting primitives. Only colour
and hatch pattern definition are relevant to this attribute.
For example:
SETPEN 200 COL 7 HPATT 6
FPEN 200
Primitive will be filled with hatch pattern 6 in colour 7
This Section describes how to create the drawing office administrative elements of
reports and circulation lists, and how DRAFT handles revision numbers.
The Report (REPO) element may be used to contain brief textual information relating
to a full report (which would exist outside PDMS) on the owning drawing registry. The
relevant part of the DRAFT database is shown in Figure 9-1.
REGI
REPO
TEXT
DRAFT gives you the ability to store Drawing Circulation Lists. The relevant part of the
DRAFT database is shown in Figure 9-2.
CLRF CLRF
CLLB
CIRL
CIRL RECI
RECI
The Revision (REVI) element enables you to store drawing revision data. A REVI may
be a member of a Drawing element or of a Sheet element, see Figure 9-3.
DRWG
REVI
C LRF
Summary of Commands
At Circulation List . . .
RNAM text - set name of recipient
At Revision . . .
APPR text - set name of approver
Change Rules control how Design and Annotation elements that have been changed
are drawn on a DRAFT View and are similar to Representation Rules. Each Change
Rule can be specific to a given type or types of element, or named elements. Change
Rules refer to Change Styles, either Design Change Styles or Annotation Change
Styles, depending on whether the changed element is a Design element or an
Annotation element. The attributes of the Change Styles define the way in which
changed elements will be drawn. Generally this will be by altering the pen(s) used.
Pieces of text may also have their font changed, be underlined, or be enclosed within a
specified style of parentheses. For more information about pens see Chapter 8. For
information about Representation Rules see Section 4.
In order to determine whether Design and Annotation elements have changed, it is
necessary to compare the relevant databases at two points in time. One of these two
points is always the current time. The other point used is a Comparison Date. The
concept of Comparison Dates is discussed in Section 10.5.
Design Change Rules (DCRULE) and Annotation Change Rules (ACRULE) are
stored in Change Rulesets (CRST), which in turn are owned by Representation
Libraries (RPLB).
RPLBs are also used to store Design Change Styles (DCSTYL) and Annotation
Change Styles (ACSTYL). The reference from a DCRULE to a DCSTYL is made by its
DCSTYF attribute, and the reference from an ACRULE to an ACSTYL is made by its
ACSTYF attribute. When a VIEW references a CRST, the reference is made by its CRSF
attribute.
RPLB RPLB
crsf
VIEW CRST DCSTYL ACSTYL
dcstyf
ACRULE DCRULE
acstyf
The hierarchy of database elements for Change Highlighting is similar to that for
Representation and Auto-hatching and allows company or project standards to be
imposed. However, unlike Representation and Hatching Rules, Change Rules cannot be
owned directly by a VIEW and there are therefore no local change rules.
Once the Rulesets and Styles have been set up, it is just a matter of setting the VIEW
attribute CRSF to point to the Ruleset that you wish to use, defining a Comparison
Date, and issuing an UPDATE command with the SHOW CHAnges option (see Section
10.6).
The Design Change Style (DCSTYL) defines the appearance of changed design
elements specified by a DCRULE that references it. Each DCSTYL defines eight pens
that will be used to draw changed design elements. These eight pens are equivalent to
the six pens of a Representation Style plus the two pens of a Hatching Style. All eight
pens may be set to; a pen number from 1 to 255, to OFF, or to UNCHANGED. If set to
UNCHANGED, the relevant Representation or Hatching Style pen value will be used.
Note that if any of the Representation or Hatching pens are set to OFF they will not be
overridden by the Design Change Style pen.
The DCSTYL attributes, with their defaults, are as follows:
Frontface Pen FFPN Pen 76
Backface Pen BFPN Pen 78
Obscured Line Pen OBPN Pen 80
Centreline Pen CLPN Pen 79
P-line Pen PLNP Pen 77
Member Line Pen MLNP Pen 79
Fill Pen FPEN Pen 71
Outline Pen OLPEN Pen 76
Note that DCSTYLs are not exact equivalents of Representation Styles, they do not have
Tubing Flag (TUBEF), Drawing Level (DLEV), etc. attributes. The values of these
attributes are determined from the relevant Representation Styles. The DCSTYL only
defines which, if any, of the standard pen values should be overridden in order that
changed Design elements are marked.
Design elements that have no DCSTYL assigned to them will not have any changes that
are made to them marked. Within a VIEW, it is therefore possible to mark changes
made to pipework, for example, but ignore changes made to steelwork.
The Change Ruleset (CRST) owns both Design Change Rules (DCRULEs) and
Annotation Change Rules (ACRULEs). Design Change Rules reference Design Change
Styles and Annotation Change Rules reference Annotation Change Styles.
For more information on using Selection Criteria refer to Section 2.3.11 of the
VANTAGE PDMS DESIGN Reference Manual, Part 1 General Commands.
For changes to be highlighted properly the Selection Criterion should use one of the
functions that make use of the current Comparison Date. These are; CREATED and
MODIFIED. For example:
CRIT ALL BRAN MEM WITH (MODIFIED (GEOM))
CRIT ALL SCTN WITH (MODIFIED (LENGTH))
CRIT ALL EQUI WITH (CREATED ())
CRIT ALL WITH (CREATED ())
For more information on the CREATED() and MODIFIED() functions and their use in
PDMS expressions refer to Section 2.3.11 of the VANTAGE PDMS DESIGN Reference
Manual, Part 1 General Commands.
Note that a third function associated with the Comparison Date, DELETED(), is not
relevant here, deleted design elements will not be shown on DRAFT drawings and hence
cannot be highlighted.
Each CRST therefore only needs to reference one or two ACRULES, one applicable to
Changed Annotations, one applicable to Added Annotations. If more than one ACRULE
is referenced for a type of changed annotation, only the first, in database order, will be
applied.
The syntax for the Annotation Change Rule Application attribute is:
ASCODE ADDedanno, CHANgedanno, ADDed AND CHANged
The attributes FFPN, BFPN, CLPN, OBPN, PLNP, MLNP, FPEN, OLPEN, TPEN,
NLPN and FONT all have the option of UNChanged. This is valid at DCSTYL and
ACSTYL elements only. Assigning UNChanged to these attributes at any other element
will generate the following error message:
64,275: UNCHANGED is not valid at <type> elements
The syntax for the Change Highlighting Referencing attributes is:
DCSTYF UNSET or any DCSTYL
ACSTYF UNSET or any ACSTYL
CRSF UNSET or any CRST
Change Rules can also be defined with the USE command. For example:
USE /anno-change-style-01 FOR CHANGEDANNO
USE /anno-change-style-04 FOR ADDEDANNO
USE /des-change-style-A FOR ALL EQUI WITH MODIFIED (GEOM HIER)
USE /des-change-style-B FOR ALL WITH MODIFIED()
For full details of using expressions in PDMS refer to Section 2.3.11 of the VANTAGE
PDMS DESIGN Reference Manual, Part 1 General Commands.
• By referencing a Stamp.
For example:
SETCOMPDATE 31 March 2002
SETCOMPDATE STAMP /Prelim-Milestone
The current Comparison Date can be queried by:
Q COMPDATE DATE
Q COMPDATE STAMP
A Stamp is a way of referencing combinations of databases and sessions at specified
instances. Stamps are created by the PDMS Administrator. For more information on
Stamps and how they are created and used refer to the VANTAGE PDMS ADMIN
Command Reference Manual and the VANTAGE PDMS ADMIN User Guide.
The Comparison Date can be used in queries on any attributes, using the syntax OLD.
For example:
Q OLD XLEN
will output the value of attribute XLEN of the current element at the Comparison Date.
Q OLD REF OF /OLDPIPE
will output the reference of deleted element /OLDPIPE at the Comparison Date.
For more information on the Comparison Date functionality refer to the VANTAGE
PDMS ADMIN User Guide.
The commands UPDATE DESIgn, UPDATE ANNOtation and UPDATE ALL have the
option SHOW CHAnges. In each case this option will update the picture to the latest
relevant data and VIEW attributes, including changes. This option is only valid at View
elements or above. If no changes are found on the View, a message will be output to
reassure the user that the SHOW CHAnges option has been properly evaluated.
The following error conditions may be encountered when using the SHOW CHAnges
option:
• If the SHOW CHAnges option is given below View level, updating will proceed and
the following error message will be displayed:
• If the View's CRSF attribute is unset, it is assumed that default Design and
Annotation Change Rules are to be applied. These are equivalent to the following:
• If the View's CRSF attribute is invalid, updating will be abandoned and the following
error message will be displayed:
64,64: <view-name>:CRSF attribute value is invalid
followed by the error message:
64,153: <view-name>:Generation of Design (or Annotation or All)
graphics abandoned
• If the CRSF references a CRST that contains no rules, updating will be abandoned and the
ollowing error message will be displayed:
will return the DCRULE that is relevant for the specified design item.
Summary of Commands
CRITeria crit - Set the CRIT attribute for the current rule.
BFPN integer
BFPN OFF
BFPN UNCHANGED - Set pen number for drawing rear face edges.
OBPN integer
OBPN OFF
OBPN UNCHANGED - Set pen number for drawing front-facing edges of
Items that would otherwise be obscured by other
objects.
CLPN integer
CLPN OFF
CLPN UNCHANGED - Set pen number for drawing centrelines.
PLNP integer
PLNP OFF
PLNP UNCHANGED - Set pen number for drawing p-lines.
MLNP integer
MLNP OFF
MLNP UNCHANGED - Set pen number for drawing member lines.
FPEN integer
FPEN OFF
FPEN UNCHANGED - Set pen number for hatching selected faces.
OLPEN integer
OLPEN OFF
OLPEN UNCHANGED - Set different pen number for drawing outline of
selected faces.
NLPN integer
NLPN UNCHANGED - Set pen number for drawing annotation linear graphics.
FPEN integer
FPEN UNCHANGED - Set pen number for drawing annotation hatched areas.
FONT integer
FONT UNCHANGED - Set annotation font.
BRACKE SQUARE
BRACKE NONE - Set bracket style for enclosing text.
WORLD
LIBY DEPT
REPO DRWG
TEXT LIBY
(see overleaf)
SHEE REVI
TEXT
:
(see overleaf)
LAYE RRUL HRUL VSEC
HRUL
:
(see overleaf)
The command
UPDATE INSTANCES
(valid at SHEE, BACK, OVER, SYLB, LALB or above) scans the database hierarchy and
updates all those parts of picture files which use the graphics ‘instancing’ mechanism.
For example, a SYMB is an ‘instance’ of a SYTM. OLAY and BACK elements are in the
same category.
Picture file names incorporate the database reference and version number (PVNO
attribute) of the picture element. Picture file names have the form:
M46-2107-20-13
where the first two numbers are the database reference of the picture element. The third
number is the value of the EXFI attribute (which is normally the database/extract file
number at the time the picture was saved). The final number is the picture version
number (PVNO attribute). This is incremented every time the picture is modified.
Only those picture elements that may include design graphics (that is SHEEs and
OVERs) have picture files. The graphics for other picture elements (LALBs, BACKs etc.)
are created when required.
The picture file name may be queried at the picture element (SHEE, OVER) using the
command:
Q PICFilename
This returns the picture directory and file name, for example:
%ABCPIC%/M46-2107-20-13
D.1 Introduction
DRAFT drawings can be passed into MicroStation as DGN files. Various switches and
rules are available in DRAFT to allow the DGN output to be configured as required.
These notes refer only to MicroStation/J and the DGN files produced from DRAFT.
A configuration can be defined which allows DRAFT DGN files to be imported into a
freshly installed version of MicroStation/J with correct geometry, colours and styles.
However, the fonts are not likely to be correct. These notes contain guidelines on how to
produce DGN drawings from DRAFT with the correct fonts, and how to improve other
aspects of the translation.
PDMS is issued with a very large number of font files that have been assembled over a
long period from the public domain, in-house and the user community. They have all
been translated to the AutoCAD standard and take the form of pairs of source (.shp) and
compiled (.shx) files.
These notes discuss how to install these fonts into MicroStation in line with the original
DRAFT drawing. Experienced MicroStation users may know alternative ways of doing
this.
Two alternative approaches are:
• Use AVEVA’s Fontconverter utilities to create PDMS-compatible versions from
.shp versions of the fonts you wish to use in MicroStation
• Use MicroStation standard fonts similar to the PDMS fonts, and accept some
differences in text output.
If you use DRAFT’s alternative character set for characters such as ¥ © ¼ or Ω you will
need to install AVEVA’s symbol font.
It is not possible to install a 16 bit font (.SHX) fileinto Microstation/J or earlier.
The set of PDMS fonts required in MicroStation is project dependent. The supplied font
resource file pdmsSamFont.rsc uses the PDMS fonts associated with the SAM project.
Individual projects may have different fonts in use, so will require a different font
resource file. See section D.3.1 for instructions on how to create such resource files.
Font resource files should be installed alongside the corresponding MicroStation font
resource files, typically in
... \bentley\workspace\system\symb
pdmsSamFont.rsc uses particular MicroStation font numbers (201 to 207 for text fonts
and 255 for the symbol font). These are mapped to DRAFT fonts using the MapFont
switch in DRAFT. It is possible that these font numbers may clash with fonts in other
font resource files in use. If this happens, see section D.3.6 for instructions on how to
modify MicroStation font numbers.
When you install additional fonts into MicroStation DRAFT needs additional
information on the font geometry to export the drawing. This is supplied as a set of font
geometry files, fontNNN.dgn (where NNN is a MicroStation font number referred to in
the font resources file).
These fontNNN.dgn files must be in either the current directory, or a directory accessed
by the environment variable OPENDGN_FONT_DIR. This variable
OPENDGN_FONT_DIR should be set to %PDMSEXE%\dgndata or wherever the font
geometry files have been installed.
Font geometry files are supplied for the fonts used in the SAM project. These correspond
to pdmsSamFont.rsc and are supplied in the directory PDMSEXE%\dgndata. Section
D.3.7 contains instructions as to how to create further fontNNN.dgn files for other fonts.
Section D.4 discusses how PDMS font numbers are mapped onto font file names. All
AVEVA fonts are supplied in the %PDMSEXE%\autodraftfonts directory, in AutoCAD
format as .shx files.
To keep them separate the required fonts should be installed into a new font resource
library called, for example, myfont.rsc, which should be placed with the supplied font
resource libraries, typically in the directory:
... \bentley\workspace\system\symb
MicroStation refers to fonts by a number not by the name. PDMS fonts are supplied as
AutoCAD .shx files as part of AutoDRAFT. These are supplied in the directory
%PDMSEXE%\autodraftfonts (or another location).
Once fonts have been installed, they may be checked using the element/text menu. The
newly installed fonts should be visible together with the font numbers assigned by
MicroStation to the new fonts. If necessary, font numbers may be modified (see section
D.3.6.).
The font installation should follow the step-by-step procedure:
• The new name must start with 'font' appended with the font number. (e.g.
font186.dgn for MicroStation font number 186)
• Open this file in EDG first and type 'modify font=<n> whole' where <n> is the
new font number.
• Open this file in MicroStation and type 'mdl load fixrange' (Use Keyin
option).
• Compress and close the design file. (Use Compress on File menu)
PDMS fonts normally need the DRAFT export to use a font adjustment factor of 1.25,
and a special adjustment when aligning text to the top of the body. This may be
achieved by using the code p when mapping the fonts, e.g.
MAPFONT ‘11-16:201p’
For further details, see Section 7.4.
PDMS font file names follow a naming convention. This is described fully in AVEVA’s
font-building utilities, but is briefly summarised here.
PDMS font families are defined by their IR (International Registration) number and
Style number in the system database. Font file names are of the form marrrtswuu,
where m=0; a is the alphabet; rrr is the encoding; ts is the type and sub-type; w is the
weight; and uu is a serial number. PDMS fonts are exported to AutoCAD as either filled
(prefix f), or open (prefix of). All font-files have an 8-character equivalent short name:
Latin-2 2 01002 L2
UK 4 01004 LB
Latin-Cyrillic 5 09998 CL
US 6 08901 81
(or 01006) (or LA)
Greek 7 02018 GG
Cyrillic 8 03537 CR
SYMBOL - 09999 OP
Generally, PDMS uses the 8-bit Latin fonts (08901) instead of US fonts (01006), since
these include US characters. Thus IR number 6 Style number 1 is font of0890111901
(short name O8111901) ; IR number 4 Style number 3 is of0100421191 (short name
OLB21191), bold version of0100421291 (OLB21291).
The fonts available in DRAFT are organised into four font families. Each font family
uses up to two font files to set up a range of six font numbers. For example, font family 3
contains two font files to set up fonts 31-33 (normal, forward and back-slant) and the
equivalent bold font 34-36.
In addition, DRAFT uses a Symbol font for special characters (e.g. ~D gives the degrees
symbol). The AVEVA SYMBOL font is of0999911901.shx (shortname OOP11901). The
equivalent filled font is f0999911901.shx (shortname FOP11901).
To determine the font families used in a PDMS project, the following ADMIN command
should be used:
Q FONTFamily
In typical Cadcentre projects, font family 1 is a line font; font family 2 is a block font;
font family 3 is a serifed font and font family 4 an italic or typewriter font. Different
projects will use different fonts. The following font files are used in the SAM project and
are set up in pdmsSamFont.rsc:
D.6 Colours
AVEVA supplies a line style resource file containing definitions of MicroStation custom
line styles matching the proportions of DRAFT’s named line patterns. This may be
installed in the MicroStation font directory alongside Bentley-supplied font resource
files, typically at:
... \bentley\workspace\system\symb