PDA

View Full Version : I need some help with making a valve



HybridAWD
01-10-2007, 12:56 PM
Ok here is the task at hand:
- Create a fire safe valve with a fusible link that has 1 pipe size larger on the tank side of the valve that links to the database to show it's a FS (fire safe) valve.
---------------------------------------------

So with that being the description, now I need to figure out the best way to solve this. Here is what I'd prefer to end up with:
- A FS valve that visually seperates itself from any other similar looking valve such as a ball valve does compared to a butterfly. Work within 1/8" limits (length wise).
- A FS valve that is available from the P&ID pulldown menu for all users to select from under the valve category.
- A FS valve that will show up in the database as a FS Valve such as a ball valve or butterfly would.
-Example: BALL shows in the database..... LNKFS would represent Linked Fire Safe Valve.
- A FS valve that would be graphically displayed that shows the tank side being 1 pipe size larger than the opposing. (this could easily be done by showing 1"x2")
- I want to avoid having to use this as a block that has to be inserted every time by each user.
------------------------------------------------

So to start, I need to come up with something that will graphically allow anyone and everyone know see the difference.

HybridAWD
01-10-2007, 01:03 PM
I came up with something like this for the graphic to be used. This is just the first thing that came to mind.


So the question really is, are all of the things listed above that I "want" possible?

HybridAWD
01-11-2007, 10:21 AM
From Ron, this can be removed if there is a problem with it being posted:

The Big Picture Document:

Creating a new P&ID component:


I) The first thing to take into consideration is the new component’s tag type. If it will have it’s own specific tag type you should create it using Project Editor in the Data Manager module.

1) Open the Data Manager Application
2) From the pull down menu select File > Project Editor
3) From the pull down menu in the Project Editor dialog select Tools > Edit Tagtypes…
4) Highlight the AT_EQUIP tag and click the New button
5) Type AT_EQAIR in Tag Type field and Air Handler in Description field
6) Change the Tag Codes field to AdTdN ( this is Area – Type – Num)
7) Enter the required number of fields (Ex. AdTdN has 3 required fields)
8) Check the Unique check box if the tag is to be unique
9) Click the OK button and your new Tag Type is created

II) Next we will create a new view for the tag type. Views allow P&ID to dynamically transfer data from the drawing to the project tables. Views also define what tag type to use inside of P&ID and what CATT dialog form the symbol will use.

1) Go to the Project Window in DataManager
2) Highlight the AT_EQUIP view and click the new button
3) Select from Current View and click OK
4) Change the Name field to AT_EQAIR and the Description field to Air Handler then click the Design button
5) Make sure the Form Name is AT_EQUIP and change the Tag Type to AT_EQAIR
6) Click the Default View check box then click the Save button and your new view is created

III) Next we will create the slide. The PID1, PID2 and PID3 drawings were included with the package as symbol library sheets. They are for convenience and it does not matter which one you use to create symbols. The NEWSYM.DWG referenced is just an example, you may substitute the name of your block wherever you see NEWSYM.

1) Open PID1.DWG from ..\rebis\p&id\sym and insert NEWSYM.dwg
2) Place it in the middle of a blank square
3) From the Block Manger Menu choose Change/Set Name. On your command line you will notice the prompt “Pick name to change, return when done:”
4) Click on the name of your new box. Your command line prompt changes to “Enter new name: <NAME>:”
5) Type in NEWSYM (be sure to use the same case throughout this exercise) and hit [Enter]. Your command line prompt changes to “Enter new slide text <*>:”
6) Hit [Enter] for default and hit [Enter] to end the command.
7) From the Block Manager Pull Down Menu choose Slides/Creation – On/Off. Your command line will read “Slides will now automatically be generated as symbols are created”.
8) From the Block Manager Pull Down Menu choose Slides/Copy entities for slide. Your command line prompt changes to “Pick inside symbol box, return when done:”.
9) Click inside you new symbol’s box.
10) From the Block Manager Pull Down Menu choose Block and click in the box with the new block. Your new slide is now created






IV) Now we will edit the menu system and add the Air Handler to the Equipment > Miscellaneous section. P&ID has 3 menu modes, in this example we are adding the new component to both the Expert and Icon sections of the Standard Mode.

1) Open ..\rebis\p&id\r14\pid.mnu with notepad and search for ID_MiscEqp. You should come to this section. (This is the Expert Mode section)

ID_MiscEqp [->Miscellaneous ]
ID_CONV [Belt Conveyor ]^CMNP;(SETT "CONV" "E");FUNC

Add the Air Handler line above the Belt Conveyor so that it is the first pick as seen below:

ID_MiscEqp [->Miscellaneous ]
[Air Handler ]^CMNP;(SETT "AIRH" "E");FUNC
ID_CONV [Belt Conveyor ]^CMNP;(SETT "CONV" "E");FUNC

2) Next search for **IEF and you come to this section: (This is the Icon Mode section)

**IEF
[Miscellaneous]
[ Main Equipment ](mngicon "E")
[------------------------------------------------]
[pid(CONV,Belt Conveyor )]^C(SETT "CONV" "EF");FUNC

3) Add the Air Handler line above the Belt Conveyor so that it is the first pick as seen below:

[ Main Equipment ](mngicon "E")
[------------------------------------------------]
[pid(NEWSYM,Air Handler )]^C(SETT "AIRH" "EF");FUNC
[pid(CONV,Belt Conveyor )]^C(SETT "CONV" "EF");FUNC

4) You should save and exit PID.MNU and erase the PID.MNR, PID.MNS and PID.MNC files from the ..\rebis\user\r14 directory so that the menus will recompile.

V) Now we will create a Settings Record. Since we are creating this as a piece of Equipment we will use an existing Equipment Record as a place to start.

1) Open a p&id via Document Manager and type SETT at the command prompt.
2) Type CONV in the Current Record field, hit [ENTER] and click the Add Copy button
3) In the New Key field type AIRH and click OK
4) Click the Page>… button once to go to the second page of the record
5) Type NEWSYM in the Symbol Name field under the PID column

*NOTE – The field below Symbol Name, Attribute Blk Name controls which attribute block it uses. You can copy the original which is in ..\rebis\p&id\sym and change it to include more fields from the view if necessary.

6) Click the Page>… button again to go to the third page and change the value in Schema to AT_EQAIR
7) Click the save button and then the Exit button

You should now be able to place the Air Handler from the menu system.

PeterJ
01-11-2007, 10:21 AM
Creating a new valve and giving it a specific default description is no problem. Have you the knowledge about that ?
Linking a valve to a vessel diameter is not possible by default.
but this would be a workaround :
You could draw a pipe-run from the vessel (this will have the 'vessel-diameter"), insert the valve at its end, draw the second process line from the valve. Use the re-attach command to link the valve to both pipes. Then stretch the valve to touch the vessel (reducing the first line to zero length).

This could be easier by developping a specific lisp routine for inserting this type of valve, but that would be a services job.

HybridAWD
01-11-2007, 10:26 AM
This valve will only be placed on flanges, so as long as it's called out different from a ball, butterfly or something such as that in the valve list, then they will know which valves are being used. So forget about the size change, that's not a big deal not to show. I can always manually edit the size on the P&ID.

So about what Ron sent me:
I would assume I could skip I) and II) since I am not creating a new component but simply adding to the valve menu.

Is that last statement correct?

PeterJ
01-11-2007, 10:47 AM
the procedure is correct, but outdated, in V8 the tagtype editing is done in Project Administrator, not in Data manager

PeterJ
01-11-2007, 10:48 AM
you don't need the new tagtype, just the symbol

HybridAWD
01-11-2007, 10:55 AM
thanks, thought so :) Now time to attempt

HybridAWD
01-11-2007, 11:47 AM
Well that didnt work, at all. I'll have to re-attempt tomorrow.