<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PSDS Labeling and attributes</title><link>https://communities.bentley.com/products/plant/f/autoplant-axsys-openplant-plantwise-forum/41067/psds-labeling-and-attributes</link><description>Hi
 
 
we are customising our Design Series XM and we want to have the attribute Spec automatically selected by the program according to the process system. For that we wrote in the pipattr_EDS the following:
 
 
PIPE,XXXX,,,,\ 
 SPEC,\ 
 &amp;quot;Piping</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: PSDS Labeling and attributes</title><link>https://communities.bentley.com/thread/92491?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2009 21:29:41 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:db3571b8-085b-4fdb-93de-6aedf8bdbe14</guid><dc:creator>Mark Halliwell</dc:creator><description>&lt;p&gt;
Leon;
&lt;/p&gt;
&lt;p&gt;
The SPEC attribute is &lt;em&gt;somewhat&lt;/em&gt; special in that it affects so many other attributes, however from a functional standpoint inside of the label mechanism, it is really just another label, so the APP_FLAGS setting &lt;em&gt;should&lt;/em&gt; work.&amp;nbsp; Perhaps it may be related to the type of database you are using and whether or not the query is case sensitive.&amp;nbsp; There's a couple things you can try:
&lt;/p&gt;
&lt;p&gt;
First, open your projvars.cfg file and&amp;nbsp;make sure that the line with DS_KEY_WRITE_ATTR_TO_LOG=F4&amp;nbsp;is &lt;u&gt;not&lt;/u&gt; commented out.&amp;nbsp; Hitting F4 during a Label Edit or Read dialogue box will write a psAttrs.log file to the $(PS_TEMP) folder.
&lt;/p&gt;
&lt;p&gt;
Perform a Label Read on one of the components, and hit F4.&amp;nbsp; Then navigate to the folder defined in $(PS_TEMP) and open the psAttrs.log file and search for SPEC.&amp;nbsp; You should have a line similar to this:
&lt;/p&gt;
&lt;p&gt;
30: SPEC: CS150&lt;br /&gt;
SELECT DISTINCT SPEC FROM PIPE_PIPE_SPEC ORDER BY 1
&lt;/p&gt;
&lt;p&gt;
Depending on your database, you should be able to cut and paste this into a query tool for your database (such as Toad for Oracle, or Management Studio for SQL Server).&amp;nbsp; Run it, and then see what is returned, and also what CASE it is in, as sometimes a database can be case-sensitive, so &amp;quot;cs150&amp;quot; will &lt;u&gt;not&lt;/u&gt; be equal to &amp;quot;CS150&amp;quot;.&amp;nbsp; Make sure that the spec name returned matches the spec name in the spec tables.
&lt;/p&gt;
&lt;p&gt;
Other than that it is difficult to debug this type of thing from a distance.&amp;nbsp; If you are still having trouble with this, then feel free to email me, and I can try to recreate it on my side.
&lt;/p&gt;
&lt;p&gt;
Cheers,
&lt;/p&gt;
&lt;p&gt;
Mark
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: PSDS Labeling and attributes</title><link>https://communities.bentley.com/thread/92399?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2009 17:18:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2d2e1870-70e8-4446-bf3b-276d8e11b067</guid><dc:creator>Leon Simone</dc:creator><description>&lt;p&gt;
Hu Mark,
&lt;/p&gt;
&lt;p&gt;
Thank you for your reply. I've tried your tip, but it did not work aas expected. That means the resultts are the same as in the case that the APP_FLAG setting is left without any value. Question : is the SPEC attribute a special attribute within PSDS?.
&lt;/p&gt;
&lt;p&gt;
Thanks for your help.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
Leon
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: PSDS Labeling and attributes</title><link>https://communities.bentley.com/thread/91621?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2009 22:57:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:bd804453-7be2-4055-9773-7d975bad893c</guid><dc:creator>Mark Halliwell</dc:creator><description>&lt;p&gt;
Hi Leon; 
&lt;/p&gt;
&lt;p&gt;
Sorry for the late reply. 
&lt;/p&gt;
&lt;p&gt;
What are the APP_FLAG settings for the SPEC attribute?&amp;nbsp; I don't think APP_FLAG is used in an overlay attribute file (in this case pipattr_EDS), so you may need to make sure there is an 'A' in the APP_FLAGS section for the ATTRDEFN. 
&lt;/p&gt;
&lt;p&gt;
There are&amp;nbsp;two potential entries depending on what you want to see: 
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;A = Automatically set single value&lt;/li&gt;
	&lt;li&gt;H = do not display the attribute if only one value&lt;br /&gt;
	exists for that attribute&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
I checked an XM build I have on a VM, and it appears that there are no APP_FLAGS on SPEC in a default install, so I would try settting that first. 
&lt;/p&gt;
&lt;p&gt;
Hope that helps, 
&lt;/p&gt;
&lt;p&gt;
Mark 
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>