AutoCAD P&ID General

Reply
Active Member
Posts: 8
Registered: ‎10-07-2009
Message 1 of 8 (916 Views)
Accepted Solution

hand valve tag custom info from equipment?

916 Views, 7 Replies
01-25-2013 06:33 AM

Good morning to all of you!

we would like to give the line and valves tags the equipment # they are attached to...

For the line it's pretty straight forward as we select "Equipment.Number" from the class properties...

but for the valves, since it's not linked directly to the equipment but to the line instead, it's not possible to give it the same info.

We managed to select 'Pipe Line Segments.From" wich give us the complete equipment name but we would like to give only the digits and no letters to keep it short...

 

How would you solve this?

 

Another nice thing would be to have the valve tag number reset itself when inserting a new vavle on another line..instead of going 1.2.3 on line 1 and then 4.5.6 on line 2....it would go 1.2.3 on line 1 and 1.2.3 on line 2....since the tag would be different because it contains different line number...

 

Thanks!

have a great day!

Active Contributor
georgeendrulat
Posts: 47
Registered: ‎10-31-2011
Message 2 of 8 (914 Views)

Re: hand valve tag custom info from equipment?

01-25-2013 07:32 AM in reply to: aguill1973

So the equipment tag is made up of two parts the number and the type.  You would like to propogate out the number portion.  To achive this you'll have to aquisition the number to lines then aquisition that from the lines to the valves.  Just like the from and to currently take the equipment tag, create a new property that takes only the number.

Active Member
Posts: 8
Registered: ‎10-07-2009
Message 3 of 8 (906 Views)

Re: hand valve tag custom info from equipment?

01-25-2013 09:02 AM in reply to: georgeendrulat

thank you very much! ...it worked.

 

Now,i would like the valve number to start at 1 and increment each time i add a valve to a line...but i would like the count to reset to 1 when adding a valve to another line...

Is this possible at all?

 

Thanks

Active Contributor
georgeendrulat
Posts: 47
Registered: ‎10-31-2011
Message 4 of 8 (901 Views)

Re: hand valve tag custom info from equipment?

01-25-2013 09:13 AM in reply to: aguill1973

Something to remember:

No two valves can have the same tag or same pnpid.  

 

Guessing your valve tags have multiple digits.. something like HV-1000, so what you want is an incriment when a new valve is placed HV-1000 --> HV-1001, OK.  But if I'm reading right you'd like it to reset the incriment per line, so when a new line is placed then a new valve on it it resets the numbering.

 

Line 1:

HV-1000, HV-1001

 

Line 2:

HV-1000, HV-1001

 

This can not be done easily as it breaks the no two the same rule.  If however you want the Line 2 to have HV-1003, HV-1004, then that is well within the bounds of the program and rules.

 

Take a look at page 32-34 of Autocad P&id customization guide

Active Member
Posts: 8
Registered: ‎10-07-2009
Message 5 of 8 (898 Views)

Re: hand valve tag custom info from equipment?

01-25-2013 09:25 AM in reply to: georgeendrulat

thank you for your time!....

You are right in the fact that it would be hard to keep up with that logic...

 

Maybe something more like this would make more sense....

TK-0100....LINE 1.....HV-0100-1....2....3....

                  LINE 2 ....HV-0100-4....5....6....

 

TK-0101....LINE 1 ....HV-0101-1...2...3....

                  LINE 2 ....HV-0101-4....5....6....

 

But how do you manage auto incrementation to be reset when you change a line?

 

Your help is appreciated!

Active Contributor
georgeendrulat
Posts: 47
Registered: ‎10-31-2011
Message 6 of 8 (891 Views)

Re: hand valve tag custom info from equipment?

01-25-2013 09:56 AM in reply to: aguill1973

That's a tough one to be sure.

 

So lets break down the construction of your valve tag.

 

The default for a hand valve:

TargetObject.Code[aa]-TargetObject.Number[NNN]

 

If you've read the customization guide, the [aa] lets there be two alpha characters, the [NNN] lets there be 3 numeric values, and the delimiter is the dash

 

What you are looking for is:

TargetObject.Code[aa]-TargetObject.NewProperty[NNN]-TargetObject.Number[NNNN]

 

Firstly you'll have to create a new property within the valve properties, and create a new auto-generated value in the project properties, with the increment 100, you'll create this new one in the "Select Project Autogeneration Property" dialog box.

 

The fun part is assigning the last field to an expression (4th icon) in the Tag Format Setup.  Under the Define Expression dialog you'll want to select the Numbers radio button, click fixed length, maybe 4.  Under Autogenerate down near the bottom of it, click the Autogenerate expression checkbox, then the Project Field radio button, and select Last Valve Number, this is the auto incriment value.  Secondly repeat this for the New Property (second line) but set the autogenerate to the new auto-generated value in the project properties you created in the first step.

 

Give this a shot, it should work, but getting complex auto-generates to work is not easy.  I don't know if this will end up with exactly what you want, but it should get you on the right track.  

 

Thinking about it more you might have to have an incriment value autogenerated for the line count as a property of the line itself.  Then acquisition that value as the second value in the valve tag... soo:

TargetObject.Code[aa]-Acquision From the line's autogenerated value-TargetObject.Number[NNNN]

Just remember to create the new autogenerated value like i sated before.

 

so Line 1 with the autogenerated value of 100 as a property will have:

HV-0100-1000

HV-0100-1001

etc

The HV being the code

The second number coming from the line property, autogenerated, incrimented by whatever you want

The last number being the autogenerated valve number

 

 

Woosh, that get's a little confusing quickly.

Active Member
Posts: 8
Registered: ‎10-07-2009
Message 7 of 8 (885 Views)

Re: hand valve tag custom info from equipment?

01-25-2013 10:41 AM in reply to: georgeendrulat

whoa...i'll be on this one for a while a think...

Thank you so much George!

New Member
Posts: 1
Registered: ‎05-06-2013
Message 8 of 8 (378 Views)

Re: hand valve tag custom info from equipment?

05-06-2013 09:25 PM in reply to: aguill1973
All, Since we are talking valve tagging can we have combined knowledge where best to install the st.stl tags .When given loose tags to E&I guys will hang them in the most inappropriate places ,then we have in line check valves with no where to tag except on a stud which is not appropriae either as it will be lost on the first shut down removal-- ant thoughts.......Cheers Don

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD P&ID Category!

The AutoCAD P&ID forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.

Ask the Community