Professional Documents
Culture Documents
Table of contents
1.3 Database
1.4 Primitives
- Cylinder
- Sphere
- Box
- Torus
- Cone Eccentric
- Wedge
- Pyramid
- Torus Arc
- Starting point
- Direction
- Orientation
- Radius*
- Length*
- Width*
- Height*
- Angle*
- Colour
Parameters with the * are not required for all primitives. The parameters without
the * are typical for all primitives.
All parameters relate to a database field in the specification table or to a fixed
value.
2.1 Steps
Step 1:
Create new specification record in Spec.mdb
Step 2:
Creating a new component with the primitives
Step 3:
Define connection points (nodes)
Step 4:
Creating new component group
Step 5:
Add component to AutoCAD or MicroStation toolbar
Figure 2-1
The straight tee shown can be divided into five primitives as shown in figure 2-2:
Figure 2-2
The screen shows: 4 view-ports, with 3 toolbars at the top of the screen, and
several pull-down menus. In each view-port it is possible to zoom in/out/pan and
render.
When creating a new component select the “New” option from the FILE-menu, the
following dialogue will be displayed:
Type the unique name of the component to be created (e.g. teestra) and select the
O.K. button
This dialogue box is used to create the componentindex. This is the most critical field
in the Specification table as it is used to uniquely identify valid components. The
componentindex is the first field in the Specification table and is always 75 characters
long and is divided into 15 parts of fixed length. In the edit box ‘Component class’,
using a maximum of 4 characters, enter the general name used to describe the
component (e.g. FLNG = Flange,Tee etc.).
In the edit box ‘Component type’, using a maximum of 4 characters, enter the type of
component (e.g. STRA = Straight, BLND = Blind etc.). Note: for these fields, any 4
alphanumeric characters can be used.
To determine the diameter of the component, a value has to be entered into the
“Main Diameter” edit box (e.g. the size to be used as the main diameter of the
component).
Last Revised 3/2005 2-9
Plant-4D Component Builder Manual, Athena Version
In the “Main End Condition” edit box enter the type of end condition to be used (e.g.
BW = Buttweld, FL = Flanged etc.) The Reduced and Branched diameters and End
Conditions can be entered depending upon the component. (Note for an equal tee
the Branch diameter is the same as the Main diameter, therefore, the Branch
diameter can be omitted as shown in the next example).
When all the necessary fields have been completed, select the OK button.
Complete the various fields as required. A typical entry is shown in the following
example. (Please note, not all fields need to be changed). This example would
indicate that this record would be for a 100mm diameter, buttweld Straight Tee.
When the OK button is selected, the “New Specification” dialogue box will be re-
displayed. The componentindex field will be completed, using the information
previously entered. All other fields should be entered manually where appropriate.
(Note: All Plant-4D components have a GroupID. A list of available GroupID
numbers can be found in
When the OK button is selected, the specification record for the component in the
specification database is created.
2.4 Modelling
Start the model by placing the first primitive required. E.g. a horizontal cylinder,
shown as cylinder 1 in Figure 2-2.
All primitives can be selected from the 3D Primitive toolbar or the 3D Primitive Pull-
down menu. When the required primitive is selected the appropriate Primitive
Dialogue box will be displayed. The following example shows a typical dialogue
box for a cylinder.
The first section to be completed is the starting point or origin point for the
primitive.
To define the X co-ordinate, if the value is known, it can be input into the X-value
edit box, immediately behind the “#” character.
Select the button to the right of the X-value edit box to define the starting point of
the X co-ordinate.
Give the starting point of the cylinder in the X-direction, as shown in the next
dialogue.
You can use the buttons on the right side of your screen.
We can now create the second primitive, perpendicular to the first cylinder:
Select a cylinder from the toolbar. You will see the same dialogue as when placing
the first cylinder.
The second cylinder starts in 0,0,0 and has its direction positive in the Y direction.
The next step is to define the connection nodes to the main body and the branch of
the component, so that you can connect another component to the tee in
MicroStation or AutoCAD.
As with a cylinder (start, direction, orientation etc.), you have to define your
connection point (node).
First, we will define a node, which is placed on cylinder 1 at the left side.
Choose a node from the toolbar (the one most to the right in this example).
Now select a second node, which will be placed on cylinder 1 at the right side.
Now select a third node, which will be placed on the outlet of cylinder .
The component groups define the connection conditions of the component and
what is defined in the “componentindex” of the specification for the component.
The “componentgroups” is a table in the projects directory.
The new component group is added to the “componentgroups” table of the project
in which you are modelling the component. It is advisable you add the new
componentgroup record to the prototype database, CPC_Prot.mdb
The componentbuilder has its own input tool to create new componentgroups.
From the pulldown menu, select ‘EDIT’ then, from the submenu select ‘Create
new component group’.
Component Group
This is the name of the componentgroup you want to create. It is advisable to give
it the same name as the componentname.
Specification
Component Class
Component type
The component type is the characters 5-8 in the componentindex. By filling in ‘1’
Plant-4D scans for the type (recommended)
Size 1
Fill in a ‘1’ for: Yes there is a main size, or ‘0’ for No there is no main size
Size 2
Fill in a ‘1’ for: Yes there is a reduced size, or ‘0’ for No there is no reduced size
Size 3
Fill in a ‘1’ for: Yes there is another size, or ‘0’ for No there is no other size
Endcondition 1
This is the endcondition for the first connection point (node), i.e. 0,FL for a flanged
connection or 0 for no endcondition.
Endcondition 2
This is the endcondition for the second connection point (node), i.e. 0,FL for a
flanged endcondition or 0 for no endcondition.
Endcondition 3
This is the endcondition for another connection point (node), i.e. 0,FL for a flanged
endcondition or 0 for no endcondition.
Trim 1-3
Schedule
Rating
Material
User
Pickpoints
Placement method
The placement method determines with what placement routine the component is
placed in Plant-4D Pipe. I.e. A pipe has a different placement method than a
vessel.
Methods:
Display Dialogue
Question string
When placement method 2 or 4 is used, Plant-4D will ask a question when placing
a variable component.
The number of the question refers to a line in the file Msg__gb.ini. You can find
this file in the Plant4D\Common\msg directory.
If more questions are needed, the string will often be simply linked without hyphens
(e.g. #l1235#L4353#A3455 for two length and one angle setting)
At the end you will find the heading [Questions, and under this heading a few lines
with the construction: number=Question
Just fill in the consecutive numbers and write the corresponding question behind
the equal sign. The number you filled in, is equal to the number in the
ComponentGroup. You can also use existing questions , by simply giving the
corresponding numbers.
Now return to the component being created earlier and create the new component
group as show in the next picture
Select [Menu Editing – Add component to CAD-Menu] from the pull-down menu in
the ComponentBuilder, and the next ‘add to CAD menu dialogue’ will appear
In this dialogue you define in which toolbar the button of the component will be
created. This links the components and menu files automatically modified.
Before completing this dialogue, you have to create a bitmap (for the button) for
the new component. The easiest way to create a new bitmap, is to copy an existing
one and adjust the bitmap to suit. Create the bitmap and place it in:
\\plant4d\common\bmp
Select the new bitmap with the browser, one for 16 bits and another bitmap for 32
bits. This is because AutoCAD uses big and small bitmaps for the buttons.
The caption is the tooltip, which appears when the mouse arrow is located on the
button.
Complete the component group using the componentgroup name you have
created in the previous paragraph.
Select a toolbar in which you want to create the button and select AutoCAD or
MicroStation.
Now the new component is fully created with all links and toolbar buttons. Save the
component and return to the CPC
Start Plant4D AutoCAD or MicroStation Pipe from the CPC. Select the
specification in which you have created the component (PN10#PIP), and set the
diameter and linenumber.
Open the toolbar in which you have created the button and place the new
component.
The componentbuilder allows you to create one specification record for one
specific size for a component. This specification record is added in the selected
specification and can be located in the spec.mdb in the Plant-4D projects
directory.
To expand the range of size, open the spec.mdb and select the specification
table.
Copy the specification record of the new created component and paste it in the
same specification. Change in the first column, the componentindex. Modify the
diameter to the size required. Change the dimensions in other fields to correspond
with the new diameter.