PDA

View Full Version : Adding Default Spec Mode to Comp Pref



Packin31
06-01-2009, 09:37 AM
From Live Comments

Tom wrote:
I would like it on the comp pref that way the designers can switch it on/off from there. Instead of having to go to drawing pref

Jharris wrote:
Okay, it works with Type=FixedList, Result Type=STRING, Result field=SPEC_DEFAULTS_FLAG and Refresh field = SPEC_DEFAULTS_FLAG and list item = 0 or 1.

Jharris wrote:
Name can be whatever you want. I called it Default Spec Choice.

Tom wrote:
u the man jh. how did you know the field name

Jharris wrote:
I looked in the AutoPlant variables via (at_PipingSystem_displayVariables)
Saw which one changed when I toggled it. Then I tried setting it via the prefs

Tom wrote:
thanks again. this sure will help
I named it Off Spec Fittings

Jharris wrote:
If it is set to 1 it uses only the items with OPTION_CODE set to 1 in the spec.
...you knew that.

Tom wrote:
yes...Had help on that earlier this year on one of my threads

ap monk wrote:
that is some good Thread material there

Tom wrote:
I will start one and cut and paste the replies. You ok with that JH

Jharris wrote:
Sure

ENJOY

WiZardOz
06-01-2009, 04:28 PM
If you want this to be a little clearer for the Users ..
I name mine Spec Choice
Set the Result Type = INDEX_0
List Items = ON and OFF

And I name mine Spec Choice .. the options are now ON or OFF for the user to select .. makes it a little better for the user rather than selecting 0 or 1

Note : The Results Type INDEX_0 means that the first item in the List Items is Variable Value = 0, and the next Item in the list is Variable Value = 1

So for your case Tom,
with a Name OFF SPEC FITTINGS
put YES and NO in you List Item and Result Type = INDEX_0

Packin31
06-01-2009, 06:05 PM
Wiz,

Thanks for the info. That does sound better On or Off instead of 0 or 1.

Will give it a try tomorrow.

Packin31
06-09-2009, 05:59 AM
Looks like I will need to sett this up on a per project bases or is there away to have it sett for all projects?

Zortar
06-09-2009, 09:13 AM
Set it up in your template project (Imperial or ?) and it should replicate when you create new projects.

Packin31
06-09-2009, 11:21 AM
Can that be accomplished in PA?

Zortar
06-09-2009, 11:31 AM
Yes, I am pretty sure.

Packin31
06-09-2009, 01:20 PM
I found the file it writes it to
C:\Documents and Settings\All Users\Application Data\Bentley\Plant XM\Config\projectxyz\CPLPiping.ini

Now to figure out what template files are used to create the CPLPiping.ini

WiZardOz
06-10-2009, 01:29 AM
I have spent many hours looking for that one
I haven't been able to work it out :(

Hopefully you will :) and share :)

If you have no luck PM me and I might be able to help you out another way around the problem