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...
have a great day!
Solved! Go to Solution.
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.
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?
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.
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
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....
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!
That's a tough one to be sure.
So lets break down the construction of your valve tag.
The default for a hand valve:
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:
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:
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.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register