Académique Documents
Professionnel Documents
Culture Documents
Infomaker
Copyright
Copyright © 2004-2008 Intergraph Corporation. All Rights Reserved.
Including software, file formats, and audiovisual displays; may be used pursuant to applicable software
license agreement; contains confidential and proprietary information of Intergraph and/or third parties
which is protected by copyright law, trade secret law, and international treaty, and may not be provided or
otherwise made available without proper authorization.
Unpublished – rights reserved under the copyright laws of the United States.
Intergraph Corporation
Huntsville, Alabama 35894-0001
Trademarks
Intergraph, the Intergraph logo, PDS, SmartPlant, SmartSketch, FrameWorks, INtools,
MARIAN, ISOGEN, and IntelliShip are registered trademarks and SupportModeler and
SupportManager are trademarks of Intergraph Corporation. Microsoft and Windows are
registered trademarks of Microsoft Corporation. MicroStation is a registered trademark of
Bentley Systems, Inc. Other brands and product names are trademarks of their respective
owners.
When you work in InfoMaker, you work in a graphical environment — and working with data in
this environment means you don't need to understand SQL (Structured Query Language), the
standard programming language for communicating with databases. InfoMaker creates all SQL
statements behind the scenes as you build your reports graphically.
2. Click the tab and make sure that the configured application is InfoMaker and the
path is correct.
After identifying which database platform is being used, the following instructions will
apply.
NOTE: The ODBC profile (Data Source) IN_DEMO was created during the installation of
SmartPlant Instrumentation.
5. Give a unique name for the profile; choose the right Data Source from the Drop down List.
6. User ID & Password should be the Login Name & Login Pass of your Domain to access the
domain schema.
8. Once the profile is set, highlight it and click to connect to the database.
Oracle
NOTE: It’s necessary to initially connect as the system user in Oracle to allow for
connection to the catalog tables.
5. Click OK.
6. Click
7. Click on
8. Click
9. Change Login ID and Password to access only a specific Domain schema. Instructor to
provide this information.
10. Click OK
11. Right click on the profile name TINT 1004 Oracle and select Re-connect.
Re-connect allows you to connect to a profile again after a change has been made to it.
If you highlight any other profile under other database interfaces, click , the
database you’re connected to will change.
At this point you are now connected only to the domain schema which means you have access to
only those specific tables that hold data like instruments, lines, drawings, etc.
MSSQL
NOTE: - It’s necessary to initially connect as the system user in MSSQL to allow
for connection to the catalog tables.
- The data source available in the drop down picklist was created during
the MSSQL 2005 installation.
5. Click OK.
6. Click
7. Click on
8. Click
9. Change Login ID and Password to access only a specific Domain schema. Instructor to
provide this information.
10. Click OK
11. Right click on the profile name TINT 1004 MSSQL and select Re-connect.
Re-connect allows you to connect to a profile again after a change has been made to it.
If you highlight any other profile under other database interfaces, click , the
database you’re connected to will change.
At this point you are now connected to the domain schema which means you have access to only
those specific tables that hold data including instruments, lines, drawings, etc.
In the above Database profiles, we used passwords that allowed us access to the domain schema.
The Infomaker tool allows changes to be made in table views without running SQL update
statements using a graphical mode. This can be very dangerous!
It’s advisable to use the domain view only schema password. Typically this password is
formatted as <domain name>_view. By creating a profile in this manner, the users will still be
able to perform the functions as shown in this class but will not be able to update data in any
tables.
If you need assistance with finding the view only schema password, contact Intergraph Support.
Libraries
InfoMaker saves objects in libraries. Objects could be reports, queries, or forms. The library is a
file with a PBL extension (sometimes we use DLL or PBD extensions in SmartPlant
Instrumentation). The Environment painter workspace displays a list of reports, forms, queries
and pipelines in the current library with the PBL file type. SmartPlant Instrumentation has a pre-
defined library called SP_STYLE.PBL which may be used for customizing specification sheets
or building custom browsers.
You may want to create a new library of your own saving new reports, forms, queries, and
pipelines. When you create a new library, the new library becomes the current library.
• Task 1: Open an existing library.
• Task 2: Create a new library.
2. Click .
3. On the Select Library screen, choose the Browse tab to open a pre-defined library.
Note: The active library will always appear in the top left corner of the Infomaker window.
NOTE: If the sp_style.pbl file is accessed for the first time by an Infomaker version, it’s
necessary to upgrade or migrate this file to the new version. In order to successfully migrate
this file, you will need to open Infomaker from the Programs menu and not through
SmartPlant Instrumentation.
3. Click the ellipses button to the right of the Library field, and type the name Mylib in the
File name field to create a new library.
4. Click Save and then Finish the wizard form. This new file will be set as your current
library.
Queries
A query is a SQL SELECT statement with a name. You define queries in the Query painter,
provide a name, and save them. Anytime you want to create a new report, form, or data pipeline,
you can specify your data requirements by using a query as your data source.
4. In the Select tables dialog box, select the Component & Loop tables.
6. If you do not see both selected tables, and their columns listed, select View -> Table Layout
from the Menu. Your screen should appear similar as shown:
7. Verify the relations between the tables (modify using the Join option if required).
NOTE: Infomaker attempts to create a join on the fly by matching the key fields between
two tables (and sometimes more than two fields). This join is not always correct for
relations in the SmartPlant Instrumentation database, so be sure to check these carefully.
9. In the Join window that appears, click Delete. In this case the Join that was auto created
between Component and Loop was correct but we’re going to remove and learn how to create
a Join between these two tables.
10. Click
11. The mouse cursor should look like this when you hover over a table. Select
loop_id from COMPONENT and select the matching loop_id field from LOOP.
12. IMPORTANT! Once the Join is complete, click again to turn off the function. If
you have successfully turned off the Join function, you will see when you hover or
move the mouse curser over the tables.
NOTE: The field or column names listed for each table are not in alphabetical order. It’s
usually a good idea to extend the length of each table view so you may increase the number of
fields shown during your search.
15. While in the preview, select Rows Æ Sort. Drag and drop the columns as shown.
19. Save the Query into the library. Select File Æ Save as...
20. Type the name query#1 in the Queries field. Click OK.
22. Save the data to an external PSR (Powersoft Report) file. Select File Menu Æ Save Rows
As... You may save as a Powersoft Report (PSR), Excel file type, etc.
NOTE: The Save options are different depending on which window you’re focused on. While
the Query window is shown, you may save the query itself to the library file. If you’re in a
preview of the data, your save option is to save the data into an external file.
24. Using steps 1 – 22, create a new Query based on the following tables :
- COMPONENT
- COMPONENT_MOD
- COMPONENT_LOCATION
- COMPONENT_MFR
NOTE: Remember Infomaker attempts to create a join on the fly by matching the fields
between two tables. This join is not always correct for column relationships in the
SmartPlant Instrumentation database, so be sure to check these carefully.
First make sure your joins are correct. Use the following primary key fields:
Be sure to turn the Join function off after you have finished!!
25. Click
The data result you see may not appear exactly as shown in the screenshot.
26. Click
Reports
Reports present data. When you preview a report in InfoMaker, you can view the data but not
modify it. When you create a new report, you always specify the data source and the presentation
style. InfoMaker will then show you what the report data and layout looks like. Once you are
satisfied with the appearance, you can assign a name to it and save. You may continue to enhance
the report until it appears as desired.
NOTE: Reports used in SmartPlant Instrumentation MUST be of the Tabular format. (Grid
format is acceptable but only for Powersoft Custom Browsers which will be discussed later.)
1. Click .
5. Click the ellipses button next to the Specify Query field and choose query#1.
6. Pick the colors you would like on your report, then click Next.
Once you have created the draft of your report, much of the remaining work involves modifying
the position and size of objects in the report.
This is what the report layout will look like when finished. Please refer to this screenshot while
working the following steps.
1. Hover over the Header bar until you see a bi-directional arrow and pull the bar down to allow
more space in this area.
2. Select the “Loop Loop Name” field and move it closer to the Header bar. Use the Style Bar
to make the necessary adjustments to the header as required
- Font size: 14
- Use the Properties window (select field and right click)…. select the General tab and
make sure you select Box in the Border field.
- You can also resize the field by hovering over the border limits of the field until you see
a bi-directional arrow then change the width and height.
3. Make similar changes to the other two headers “Component Cmpnt Name” and “Component
Cmpnt Serv”
5. Click somewhere in the header area and you will see a new text field appear. Make the
changes as shown
Use the Properties window….select the Font tab and you may adjust background color, text
color, etc.
6. Add the Page count function to the report header. Select Insert Æ Control Æ Page n of n
Click in the header area about where you would like this to appear and then position as
desired.
Font Size: 11
7. Select File Æ Save as.... and save the report as report#1. This saves the report to the active
library file.
9. Hover over the footer bar and pull it down to make extra room.
10. Add a new text field No. of Tags then add a function that will count the total number of Tags
shown in the report. Do the following……
12. From the Menu, select Insert Æ Control Æ Count. A new field will appear. It may appear
in the Summary area. Just grab the field and move it next to the new text in the footer area.
13. In the Detail section, select each field to verify and, if necessary, adjust the width of each
field to better match the width of each header.
Note: There is a tool that allows you to align objects. If you resize and move a field in the
header section and you want to resize and move the associated data field in the detail section,
do the following:
b. Hold the Ctrl key down and select the associated data field in the Detail section (this is
the target field). Depending on the adjustment needed, you may select more than one
target fields.
c. With both fields selected, you will now have these tools available which will allow you to
align, match width, height, etc.
SmartPlant Instrumentation Advanced Training
Doc: DINT2-TP-100001A
Revised: 5/13/2009 Rev. 7
SmartPlant Instrumentation and InfoMaker 35
14. Select to save changes to the report. Remember this is saving changes to the report
in the library file.
15. Click
1. Click .
2. Use Tabular as your Presentation Style & SQL Select as your Data Source.
4. The joins created between each table in this instance should be correct. You might check
them by left clicking on each to see what key field has been selected.
When a P&ID drawing entry is created and added to the supporting table, a row entry for that
drawing is created with a unique dwg_id number. When that P&ID is selected and
associated to an instrument, the unique dwg_id is stored in a key field in the component table
(where instruments are created and stored). Since you have a reference in the component
table to that dwg_id, when the tables component and drawing are Joined using the key
field dwg_id then the Join makes it possible to show the P&ID drawing name in a report for
the instrument (tag). This same concept may be applied to other tables that relate back to the
component table.
6. Once you have finished selecting fields and working with the Joins, click
In order to create the text title P&ID, it is necessary to type P&&ID into the text field. &
is a special reserved character and must be typed twice in text fields to make it appear.
9. Make sure no objects or fields are selected, then in the Properties window, select the Print
Specifications tab. Make the adjustment shown.
11. Click
1. Open Infomaker
4. Select File Æ Save As File.... PSR file type. This creates an external file for use elsewhere.
9. Define a description.
NOTE: These report files should be located in a common location that is available to all users on
the network.
Note: It’s a good idea to perform a retrieve when first opening a PSR file in SmartPlant
Instrumentation. The data that first appears may not be the correct data from the current
domain particularly if the PSR was saved (Save Rows As…..) while connected to another
domain.
5. Within the Where tab define the following parameters in order to use the Retrieval Argument:
2. From the menu, select View Æ Column Specification. A new window will
appear in Infomaker.
3. In the Column Specification window, select the check box for the columns on
which you wish the user of the report to be prompted.
4. When the report is run (or the Retrieve button selected) the Criteria box will
appear. The user can specify any SQL format search to limit the data returned.
For example, LIKE ‘%FT%’ could be used and the report would only return Flow Transmitter
tags. Careful format of the statement is required. (i.e. Case sensitivity, quotes, and wildcards
must be used.)
Before beginning this lab, please refer to pg. 13 and switch to the library sp_style.
2. On the Object tab, choose Grid as your Presentation Style. Click OK.
NOTE: It is possible to select more than one table at a time but there is an issue existing with
the custom browser working properly in SmartPlant Instrumentation if multiple tables are
initially selected so it is necessary to select the primary table first. In this case the
component table. Select fields from this table then add additional tables to the report later.
This field must be selected even if you don’t intend to include this field in the browser
design view list.
Hint: If you need to find out what the primary key is for a table, click on then do
the following:
The field with a check by it is the key field. Always look through the field list as there may be
more than one!
7. If your primary table (in this case component) contains the following fields, select them:
- plant_id
- area_id
- unit_id
8. Also if the primary table contains the following fields, select these fields as well (if a user
makes a change in this browser view, the user login name and date will be stored in the table
accordingly):
- chg_status
- user_name
- chg_date
NOTE: If these fields are not selected and added to the browser, the user’s name and change
date for any changes or updates made to the component table by a user will not be recorded in
these fields for the existing row where the change was made. For example if a user changes
the instrument service (if editable) for an existing instrument, the row for that instrument in
the component table will be updated with the user’s name and the date the change occurred if
these fields have been added to the browser’s SQL.
9. Click on
10. Make color and border changes if necessary and click Next.
11. Click Finish. At this point your report design should look something like this:
12. The general properties of the report itself must be in inches for units. The default is
Powerbuilder. Click in a white area (no fields selected) on the report and change the
Properties as shown. If this isn’t set properly, the print preview and printout of the
report in SmartPlant Instrumentation will not show correctly and will appear without a
titleblock!
13. Delete ID fields except those selected in step 5 from the Design Screen. This will allow
those fields to be selected by the software, but not shown in the report.
NOTE: If you delete the fields in the Detail section, the associated header name will be
deleted as well.
16. Choose the following tables from the list (single click on each table):
- Line
- Loop
- Udf_component
17. Adjust the joins between each table accordingly. Remember a join essentially is a field
which is common between your primary table (component) and the table you’ve added to
your report. This field is typically a primary key in any tables relating back to the table that is
considered primary to your report.
a. Delete the joins created by the software. It’s not always necessary to delete the joins as
some of them may be correct but, in this class, we will work with Joins from scratch for the
practice.
Left Click on to determine the join that’s been created. In that window, click
Delete to remove the join.
b. Click on to activate the function. Select the following fields between the
component table (primary) and the following tables:
Line:
- line_num
Loop:
- loop_name
udf_component:
- udf_c10
- udf_c11
20. Select a Primary Key (ID field) from each table (remember the Hint from step 6 for
finding primary keys for tables)
- line – line_id
- loop – loop_id
- udf_component – cmpnt_id
21. Also if the added tables contains the following fields, select these fields as well (if a user
makes a change in this browser view, the user login name and date will be stored
accordingly):
- chg_status
- user_name
- chg_date
23. Delete all the quotes marks ( “ ). Hint: Use the Edit Æ Replace feature
NOTE: If the user wishes to never see these quotation marks appear, it is possible to adjust
the Database Profile. Click . Verify the profile that’s selected and click Edit.
Remove the check in the box. Remember this affects only this profile!
Click OK and Close.
You must reconnect to the database for the changes to take affect. From the Database
Profiles window:
- Select the profile in use (check by it)
- Right click
- Select Re-Connect.
24. Click
25. Select File Æ Save as file. Navigate to a location where you want to store your new PSR
file and provide the name modified instrument index.
26. Again Delete ID fields except those added in step 5 and 19 from the Design Screen. This
will allow those fields to be selected by the software, but not shown in the report. When
you’re done, your design should look like this:
27. In the Header area, edit the Header fields by removing the table name prefix (this will only
apply to fields that were added after the component table). The Name field should appear in
the following format:
<field name>_t: line_line_num_t Æ line_num_t
- Select the header field then right click to select Properties. Change as shown
TO
Check all the header fields in the Header area to make sure they are in the correct
format!
28. Edit the data fields in the Detail area by opening the Properties window and removing the
table name prefix (this will only apply to fields that were added after the component table).
The Name field should hold the following format:
<field name>: line_line_num Æ line_num
Check all the data fields in the Detail area to make sure they all have the correct
format!
29. For the header fields in the Header area, use the style bar to change font, size, type, and
position to
- MS San Serif
- size 8
- bold.
- centered
TIP: You may select all the headers fields together and make the change by using the Ctrl
key or use a range box.
30. The following table provides suggestions for new header names:
data field name header name
cmpnt_name Tag
cmpnt_serv Service
dwg_id P&&ID
line_num Line
loop_name Loop
udf_c10 Instrument Painted
udf_c11 Area Classification
udt_support_id1 Instrument Color
Make the name changes in the Properties window in the text field.
31. Some fields should be protected so the user can’t make changes to the data in those fields
while in a browser view. As a rule when a custom browser is created, it’s important to
verify or look at the fields in the browser view to determine if editing them should be
allowed. As an example, editing a loop name should not be allowed since we know it’s
comprised of multiple fields through a naming convention. The user should be forced to go
back to the loop properties window to change the name of a loop.
a. select the loop_name field in the Detail area and open the Properties window.
c. add the value of 1 in the Protect window and click OK. This value turns protection on.
Note the icon next to the Protect field is now green. This indicates that it is in use.
d. Also as a standard in SmartPlant Instrumentation, those fields that may not be edited in a
browser view have a yellow background (you may of course choose another color).
Make this additional change to the loop_name field properties:
32. Click
33. For the dwg_id field, we want to connect a report to this field which will allow the user to
access the P&ID supporting values from a drop down picklist. Make sure you’re connected
to the sp_style.pbl library (verify in the top left corner of the Infomaker window). If
necessary refer to the section in this training document discussing how to connect to a library
on pg. 13.
If you have not changed the library, you’ll need to close the object painter window down,
change the library then open your file again.
34. In a similar manner we want to connect a report to the field udt_support_id1. This is
adding the use of a custom table (Custom Table 1) in the browser. Select this field in the
detail section and open Properties. Make the following changes as shown.
35. Make the following changes to the fields udf_c10 and udf_c11. These fields as a default are
free form editing fields but we want to change these fields to allow for a different type of
data input:
Udf_c10
Udf_c11
NOTE: The first row is inserted as blank to allow for a blank value selection.
36. Click
37. In order to use the custom table field in the browser, we need to make sure the custom table
is active. Start Æ All Programs Æ Intergraph SmartPlant Instrumentation Æ
Administration
39. Tables Æ Custom Tables Æ Instrument Color. Enter 3 New values: Red, Blue, Green
44. Add a view to the browser that you just created and observe the results.
Important: After adding the custom browser, if you make changes to the source PSR file adding
additional fields, making header changes, ect., you will have to delete the existing custom
browser and add the new custom browser using your modified PSR file. You cannot overwrite or
add to a custom browser that has already been added to SmartPlant Instrumentation. Be sure
everything is set as you need it to be before you begin adding views to the custom browser. If
necessary you can always add another custom browser with the additional changes and leave the
existing one as is.
There are additional SQL commands that may be applied and used in SmartPlant Instrumentation
such as UNIONS. This is an additional advanced topic which is included at the end of this
training document and is for study outside of this class.
Not all syntax used in SQL such as inner joins are supported in SmartPlant Instrumentation.
Infomaker may support such syntax embedded in the SQL for a report but that does not mean
SmartPlant Instrumentation programming code allows it.
Also alias table names are not allowed in SmartPlant Instrumentation. Typically this involves an
attempt to reference the same table more than once. An example would be trying to use two
references, drawing_1 and drawing_2, for the drawing table.
You should contact Intergraph support for confirmation on using such syntax.
3. Select and save the Orifice Plate page as a PSR file (Orifice Plate page.psr).
4. In InfoMaker, open the sp_style.pbl library using . This library file is the provided
source included in the SmartPlant Instrumentation software load. Specifications may be
modified using this library file. As previously seen sp_style may also be used in other
software areas such as working with custom browsers.
- Drag the file Orifice Plate Page.PSR from Windows Explorer and drop in the
open Infomaker window.
NOTE: When initially opened, Infomaker does not provide an open command in the File
menu. To open an external file you must open it using one of two workflows:
- Double clicking on the file from an Explorer window
- Open the Infomaker window and an explorer window then drag the PSR file into the
Infomaker window.
7. On Line 15, click on Spec_Udf_C09 associated to the Quality header. Change the field to a
Drop Down List Box as shown below:
(you may need to right click to select the Properties window)
8. Also on Line 15, select spec_udf_c16 associated to the SuperHeat header. Change the field
to a Check-Box as shown.
9. Make space in the titleblock area as shown. Be sure to reduce the width of the existing desc
fields (you can’t see the actual names of the fields unless you click on them and look at the
Property contents)!
10. Add the text headers Chkd and Appr using Insert Æ Control Æ Text
11. Select Insert Æ Control Æ Text. Land the field somewhere in the Design area
Move this new field into the first revision row as shown.
If desired, you may continue to add CHK_BY_2, CHK_BY_3, etc. in the remaining rows.
13. In a similar manner, add APPR_BY_X above the header Appr where X = the no. of the
Revision (appr_by_1, appr_by_2, etc.)
NOTE: In both cases, the Text field is to remain empty. Ensure that you do not overlap data
fields. Data could become masked or hidden.
14. Choose both data fields on line 6 of the page, and delete them (spec_udf_c22 and c23).
15. In the area to the left, place a text field (Insert Æ Control Æ Text) with P&&ID as it’s
contents. On the font tab in properties, change the background color to Transparent.
Note: The double ampersand (&) is required for a single & to be displayed in the text field.
16. On the menu, choose Insert Æ Control Æ Column and pick the data area on the right hand
side of line 6 (where spec_udf_c22 used to be). When the Select column window appears,
choose pid_no from the list and hit OK. Size and relocate as required.
17. With the pid_no field still selected, right-click and choose properties.
19. Save the PSR file with File -> Save as File and close Infomaker.
20. Load the PSR into the Data Sheets module by choosing: Page Editor -> Open File -> Save
As Page. Call the new page Modified Orifice Plate.
21. Reset the tab order and Save the page. Close Page Editor.
22. Choose Form Editor -> New Form. A list of available Pages is displayed. Choose the new
page loaded in step 12 and select Save as Form. Give the new form a number (111) and
name.
23. Open a Tag with Form 111. If the tag you choose already has a spec assignment, you will
need to change to form 111 (Actions Æ Change Spec Form) to complete the form
assignment for this tag. Add Revisions to see the results of the UDF fields + revisions.
The PSR files are used as sample title blocks for customization purposes.
NOTE: The Detail bar where the revision data fields reside will move as well so there are no
data fields you will have to resize in the next step.
3. Make the description label smaller and add the separating vertical lines as shown.
If you see this window appear, just click Cancel every time.
4. Add two labels Appr By & Chkd By using Insert Æ Control Æ Text.
Tip: With a field selected, you may use the arrow keys to position the field. If you hold the
Shift key down and use the arrow keys in combination, you can change the height and width
of the field.
5. Select the text field Chkd By, right click, and select Properties. Make the change as shown.
Any text or graphics in the Header area should reside in the Background Layer.
At this point close the existing file tb_ora.psr file opened in the Infomaker window. We
want to maintain this file in it’s original state with no changes saved. Find the file you just
created, custom TB for specs, and open that file. Continue making changes…….
7. Select the Header bar and move it back to it’s original position as shown.
8. In the Detail section, select the rev_desc field and use the shift and arrow keys to resize this
field to fit in the new Description area.
9. Make sure one of the new text fields is selected. This helps with the formatting of the new
field (font, color, ect.). Select Insert Æ Control Æ Column then click on the area where the
field should be placed as shown.
12. For each field just added, open up the Properties window and check in the Position
tab making sure the Layer field has the value Band in it. Fields in the Detail area
should reside in the Band layer.
13. Click
14. Open SmartPlant Instrumentation Æ Specification. Select Action Æ Title Block Styles
Æ New. Open the file, give it a name. Adjust the spinner box to 10 units and decrease the
right side border by three increments.
15. Open Action -> Associate Title Block.. -> Select the form (#68).
16. In the window, select the new style, and drag-drop to place it in position. When done, save
and exit.
¾ Test the customized Title block for any Spec sheet. Create a new tag using spec 68 if
required. Create a revision to the spec and ensure data is displayed.
Software issues:
If you are on 2007 service pack 2 or earlier then make sure you request hotfix 88615. The issue
is the following:
Problem found on Oracle and Watcom and MSSQL
If you associate a custom title block to a spec form, when you view the spec either as a
normal view or print preview, you do not see the title block. The bottom of the page has no
title block.
Steps to reproduce
If you associate a custom title block to a spec form, when you view the spec either as a
normal view or print preview, you do not see the title block. The bottom of the page has no
title block.
Impact
User is not able to use an associated custom TB
Workaround
None
Before we begin this exercise, we need to have access to fields from the loop table and
the cmpnt_criticality table. To provide access to these fields in the specification, we
create a view. Not all tables are directly accessible to specifications such as
spec_sheet_data, pd_general, or add_spec1 so it is necessary to create a view to certain
tables to access the required fields.
SmartPlant Instrumentation provides a set of default view statements which allow access
to specific fields from various tables. For example the following is the view_line view:
( LINE.PIPE_ORIF_MAT_ID = PIPE_MATERIAL.PIPE_ORIF_MAT_ID );
Create a new view called loop_view, which will be added to the domain and used in the
specification for this exercise:
2. Make sure you have both the ISQL (Interactive SQL) and Results windows open
If you don’t see these windows, go to the View menu and click on the appropriate
selections.
3. If the instructor has provided you a text file with the above view statement, just copy
and paste the statement into the ISQL window otherwise you’ll need to type it in.
7. Click New
9. Scroll over in the table to the Item Type field and select Instrument
Now we will be able to reference this view as if it were a single table and the following
fields defined in the view will be valid to add to the specification:
- criticality_description
- loop_criticality_id
11. In SmartPlant Instrumentation, select Page Editor then Open Page and select the
new Modified Flow Orifice page previously created.
12. Click Regenerate and make sure you have selected the new view loop_view.
By adding this view during the regeneration process, the fields from the view will be
immediately available for use in Infomaker.
13. Save as an external file using the name modified orifice plate.psr.
15. Create a place on the spec page in the design view which will allow for the addition
of a new field.
Now create a triangle which will appear when the loop criticality value is set to a value
other than none (loop_criticality_id > 0) and when specific text is set in the description
field for the criticality value selected.
17. Draw a triangle that looks something similar to the following and save as an external
file. Use file type bmp.
18. Once the file has been created, go back to Infomaker then select Insert Æ Control Æ
Picure. Click in or around the space where you want to triangle to appear and
navigate to the triangle you just created. Use the keyboard to move and resize the
picture accordingly so it fits in the space as shown here.
NOTE: It’s acceptable to create a pointer or path to the file using a physical drive
letter such as D:\custom symbols\triangle.bmp. If functionality such as this is used,
it’s likely the file will need to be accessible for many SmartPlant Instrumentation
domains across the network. It’s more efficient to place this file in a folder that’s
shared on the network. You may then use a UNC (Universal/Uniform Naming
Convention) path. An example would be \\Spi2007\custom symbols\triangle.bmp.
Rather than describe the location of a file or directory by drive letter, the Network
Group will typically communicate a UNC path to describe the actual location of a
file or directory. Windows drive letter mappings are arbitrary, whereas a UNC path is
specific.
19. Click
20. Select the triangle (picture field) and open a Properties window.
22. In the Visible window that opens, we’re going to add a statement of logic which will
allow this field to appear and disappear accordingly based on the conditions defined.
a. In the Functions section of this window, scroll down to find if(b,t,f) and select it.
NOTE: This function has the same logic flow used in basic programming. In
basic programming, the user might see the following:
If a = 1, then
b=2
Else
c=3
End If
b Æ a=1
t Æ b=1
f Æ c=1
What the user doesn’t see in a statement like this are syntax words like then and
else. They are implied.
AND
When a user enters a criticality value into this supporting table, there is a
description field that may or may not be filled in. Our logic expects the word
“symbol” to appear in this field.
23. Click
24. Using this newly modified PSR, add the spec page in SPI and over-write the existing
Modified Orifice Plate page. Remember to reset the tab order!
25. Let’s use tag 101-FE-100. This tag is likely using form 11 so change to form 111.
26. Open form 111 for tag 101-FE-100 to see that it opens properly.
SmartPlant Instrumentation Advanced Training
Doc: DINT2-TP-100001A
Revised: 5/13/2009 Rev. 7
SmartPlant Instrumentation and InfoMaker 94
27. To make the triangle appear, we must satisfy the logic statement. Do the following:
b. Click on the ellipses button next to the Loop criticality field. Add the following:
c. Make sure the Critical selection is showing in the Loop Criticality field
28. Click OK to accept the changes to 101-F-100. Click NO to edit tag numbers.
29. If the spec page for 101-FE-100 is still open, move back to that window and click
NOTE: The user should note that the method we used to add the triangle bitmap is
dependent on a path existing to that file.
If the file was to move from its’ location, the picture would no longer appear on the
spec even if the visibility logic conditions were true.
If the file location did need to change, the user could click on and navigate to
the new location for the file.
Additional Exercises
Queries
1. Define a new Query that will retrieve the following data:
Tag Numbers, Tag Services, Tag Equipment & Line Numbers.
Make sure that it will retrieve data only for tags that are belonged to a certain Line.
Reports
1. Crete a new Report for the following data:
Cable Names & Cable Descriptions, Cable Colors, Cable Models, Cable Manufactures &
Cable Length.
Verify that this report will show only cables that certain color has been defined for them
(Condition).
Retrieve the data for cables > specified length (Argument).
Using Styles.pbd
Browsers
1. Create a new Browser under the “Loop Drawings Group”, with the following fields:
Loop Name, Loop Type, Loop Function & Loop Service, P&ID, Generation Type, Revision
Number & Revision Description.
2. Crete a new Browser under the “Instrument Index Group”, with the following fields:
Line Number, Line Type, Line Size, Line Schedule, Line Internal Diameter, Pipe Material
&Pipe Size.
Using Sp_Styles.pbl
Additional topics
For this example we’re going to continue to build on the previous PSR file created for use
in the Instrument Index group. This browser is created to show instrument tags. We
want to show flow process specific information for the instruments . The problem is not
all instruments will have a row entry in the flow related tables. If we add the FLOW
table to our SQL, the results will show only flow type instruments. We’re going to
modify our previously create PSR file to include flow related tables while allowing the
browser view to show all instrument process types.
1. Find your PSR file instrument index mod.psr and copy it.
4. Click
When creating a union between two SQL statements, the user cannot work in the
graphic mode as before when initially creating this report so it will be necessary to
understand some of the basic SQL syntax. The following SQL statement will be used
to make this new report work (text highlighted is what will be added to the existing
SQL statement):
SELECT COMPONENT.CMPNT_NAME,
COMPONENT.CMPNT_SERV,
COMPONENT.DWG_ID,
COMPONENT.CMPNT_ID,
COMPONENT.PLANT_ID,
COMPONENT.UNIT_ID,
COMPONENT.AREA_ID,
SmartPlant Instrumentation Advanced Training
Doc: DINT2-TP-100001A
Revised: 5/13/2009 Rev. 7
SmartPlant Instrumentation and InfoMaker 100
COMPONENT.CHG_STATUS,
COMPONENT.USER_NAME,
COMPONENT.CHG_DATE,
LINE.LINE_NUM,
LOOP.LOOP_NAME,
UDF_COMPONENT.UDF_C10,
UDF_COMPONENT.UDF_C11,
LINE.USER_NAME,
LINE.CHG_STATUS,
LINE.CHG_DATE,
LOOP.USER_NAME,
LOOP.CHG_STATUS,
LOOP.CHG_DATE,
UDF_COMPONENT.CHG_STATUS,
UDF_COMPONENT.USER_NAME,
UDF_COMPONENT.CHG_DATE,
LINE.LINE_ID,
LOOP.LOOP_ID,
UDF_COMPONENT.CMPNT_ID,
FLOW.PD_F_RANGE_MIN,
FLOW.PD_F_RANGE_MAX,
FLOW.PD_F_RANGE_UID,
FLOW.PD_STAT,
FLOW.CMPNT_ID,
FLOW.CASE_ID
FROM COMPONENT,
LINE,
LOOP,
UDF_COMPONENT,
FLOW
WHERE ( LOOP.LOOP_ID = COMPONENT.LOOP_ID ) and
( COMPONENT.LINE_ID = LINE.LINE_ID ) and
( COMPONENT.CMPNT_ID = UDF_COMPONENT.CMPNT_ID ) and
( FLOW.CMPNT_ID = COMPONENT.CMPNT_ID ) AND
COMPONENT.CMPNT_ID > 0
UNION ALL
SELECT COMPONENT.CMPNT_NAME,
COMPONENT.CMPNT_SERV,
COMPONENT.DWG_ID,
COMPONENT.CMPNT_ID,
COMPONENT.PLANT_ID,
COMPONENT.UNIT_ID,
COMPONENT.AREA_ID,
COMPONENT.CHG_STATUS,
SmartPlant Instrumentation Advanced Training
Doc: DINT2-TP-100001A
Revised: 5/13/2009 Rev. 7
SmartPlant Instrumentation and InfoMaker 101
COMPONENT.USER_NAME,
COMPONENT.CHG_DATE,
LINE.LINE_NUM,
LOOP.LOOP_NAME,
UDF_COMPONENT.UDF_C10,
UDF_COMPONENT.UDF_C11,
LINE.USER_NAME,
LINE.CHG_STATUS,
LINE.CHG_DATE,
LOOP.USER_NAME,
LOOP.CHG_STATUS,
LOOP.CHG_DATE,
UDF_COMPONENT.CHG_STATUS,
UDF_COMPONENT.USER_NAME,
UDF_COMPONENT.CHG_DATE,
LINE.LINE_ID,
LOOP.LOOP_ID,
UDF_COMPONENT.CMPNT_ID,
0 PD_F_RANGE_MIN,
0 PD_F_RANGE_MAX,
‘ ‘ PD_F_RANGE_UID,
‘ ‘ PD_STAT,
0 CMPNT_ID,
0 CASE_ID
FROM COMPONENT,
LINE,
LOOP,
UDF_COMPONENT
WHERE ( LOOP.LOOP_ID = COMPONENT.LOOP_ID ) and
( COMPONENT.LINE_ID = LINE.LINE_ID ) and
( COMPONENT.CMPNT_ID = UDF_COMPONENT.CMPNT_ID )
and not exists
(SELECT 'X' FROM FLOW WHERE CMPNT_ID =
COMPONENT.CMPNT_ID) AND COMPONENT.CMPNT_ID > 0)
Again a UNION ALL was used to allow two SQL statements to be joined together. The
first SQL statement added in fields from the FLOW table. This allowed data from the
FLOW table to be added to the report. Once the FLOW table was added, the instrument
tag results were limited to only tags under process flow but particularly, only tags that
had an actual row entry into the FLOW table were shown.
The second SQL statement allows all the other tags that do not have a row entry in the
FLOW table to appear in the report result. This was accomplished by adding the AND
NOT EXISTS…. Portion to the statement.
Both SQL statements must still hold the same number of field selections so it’s necessary
to still maintain the field selections from the FLOW table in the second SQL statement.
This is done by adding a place holder based on the field type.
For PD_F_RANGE_UID, this field is a data type of VARCHAR2 and has a display
width of 10 characters. Using single quotes and 10 spaces satisfies the requirements for
a placeholder.
PD_STAT, CMPNT_ID, and CASE_ID are all primary keys for the FLOW table.
Remember primary keys for any table are required when building a report to be added as
a browser in SPI.
6. Remove all fields from the design view that you do not wish to show in the report. In
this case we’re wanting to add only:
- pd_f_range_min
- pd_f_range_max
- pd_f_range_uid
8. Remove table references from remaining fields and change font size, font type as
before. Adjust header names accordingly. When finished you might see
something like this:
9. Click
NOTE: If the user performs a count between custom browser views, the number of tags
are identical. This is further proof that all tags in the UNION powersoft browser are
shown.
Revision Description
4 Revised for release of SmartPlant Instrumentation version 7.0
5 Revised for SmartPlant Instrumentation version 2007
6 Revised to remove styles.pbd section and update existing sections with
additional information
7 Revised adding topics, updating existing topics, and for use with IM 10.0 and
SPI 2007 (RDW 12/3/08)