<?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>Does anyone know if queries in the Environmental Attribute layouts can be accessed and changed from a Powershell script?</title><link>https://communities.bentley.com/products/projectwise/f/projectwise-powershell-extensions-forum/221475/does-anyone-know-if-queries-in-the-environmental-attribute-layouts-can-be-accessed-and-changed-from-a-powershell-script</link><description>We have a number of queries that are tied to the fields (attributes) in &amp;quot;attribute layouts&amp;quot;. I was just wondering if there is a way to read and perhaps write to these &amp;quot;field select statements&amp;quot;? 
 I haven&amp;#39;t found a way (except via the interface) yet. </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Does anyone know if queries in the Environmental Attribute layouts can be accessed and changed from a Powershell script?</title><link>https://communities.bentley.com/thread/681424?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 19:14:12 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:64215d23-1074-447b-929b-904e6856c351</guid><dc:creator>Robert Biggar</dc:creator><description>&lt;p&gt;Happy to be of some help, Kevin...You have helped me out a LOT!!&lt;/p&gt;
&lt;p&gt;Much appreciated!&lt;/p&gt;
&lt;p&gt;B&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does anyone know if queries in the Environmental Attribute layouts can be accessed and changed from a Powershell script?</title><link>https://communities.bentley.com/thread/681421?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 19:02:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fa6a4869-9226-462a-a723-18bbe5588c13</guid><dc:creator>Kevin van Haaren</dc:creator><description>&lt;p&gt;Thanks. I know i&amp;#39;m going to need this in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does anyone know if queries in the Environmental Attribute layouts can be accessed and changed from a Powershell script?</title><link>https://communities.bentley.com/thread/681346?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 13:12:56 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a9a36925-24b5-4410-8f38-0d8334921777</guid><dc:creator>Robert Biggar</dc:creator><description>&lt;p&gt;found More and corrected some....I could have sworn I did that get-help before...anyway...&lt;/p&gt;
&lt;p&gt;Also Missing a few...any Ideas?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;++++ NOTE: before I had the &amp;quot;Set-PWAttributeExtraValuesSettings&amp;quot; wrong...so keep that in mind! ++++++++&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Get-PWAttributeSettings&amp;quot; - gave me a listing of all the Attribute values for the target Attribute in the ENVIRONMENT;&lt;/p&gt;
&lt;p&gt;&amp;quot;Get-PWAttributeSettings - EnvironmentName&amp;quot;&amp;nbsp; &amp;#39;&amp;lt;env name&amp;gt;&amp;#39; -AttributeName &amp;#39;&amp;lt;ATTR Name&amp;gt;&amp;#39; -Verbose&lt;/p&gt;
&lt;p&gt;-------&lt;/p&gt;
&lt;p&gt;&amp;quot;Get-PWAttributeUpdateValueTriggerAttribute&amp;quot; - Gets the Attribute name and ID of the &amp;quot;Trigger Control Attribute&amp;quot; &lt;br /&gt; for the specified Attribute&lt;/p&gt;
&lt;p&gt;&amp;quot;Get-PWAttributeValueListFixedList&amp;quot; - Returns the fixed list of an Attribute and each value&amp;#39;s description&lt;/p&gt;
&lt;p&gt;---------------------------&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeDefaultValueSettings&amp;quot; - Sets values specified by Type in the &amp;quot;Default value&amp;quot; box of the Value tab (does not like blanks)&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeUpdateValueSettings&amp;quot; - Sets values specified by Type in the &amp;quot;Update value&amp;quot; box of the Value tab&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeValueListValueSettings&amp;quot; - Sets values specified by Type in the &amp;quot;Value List&amp;quot; box of the Value tab &lt;br /&gt; (toggle buttons set by separate command line flags)&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;Set-PWAttributeEditingSettings&amp;quot; - Sets values in the &amp;quot;Editing Tab&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;Set-PWAttributeExtraValuesSettings&amp;quot; - Sets values in the &amp;quot;Extra Values Tab&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt; Added:&lt;/p&gt;
&lt;p&gt;Set-PWAttributeGeneralSettings&amp;nbsp; - updates an attribute&amp;#39;s General settings values within a specified environment.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Set-PWAttributeExchangeRulesUpdateFileConditions - Sets the attribute exchange Update file conditions.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;===========================================================================================&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; ATTRIBUTE VALUE NAME ATTRIBUTE SETTING&lt;br /&gt;----------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;?????&lt;br /&gt;===========================================================================================&lt;br /&gt;EnvironmentName : &amp;lt;ENV NAME&amp;gt;&lt;br /&gt;EnvironmentID : 110&lt;br /&gt;ColumnName : &amp;lt;attribute Name&amp;gt;&lt;br /&gt;ColumnID : 22&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeGeneralSettings&amp;quot;&lt;br /&gt;===========================================================================================&lt;br /&gt;General_AttributeValueUnique : 0&lt;br /&gt;General_AttributeValueRequired : 0&lt;br /&gt;General_AttributeValueEditableIfFinal : 0&lt;br /&gt;General_AttributeValueAccess : 1&lt;br /&gt;General_AttributeValueAccessName : Edit&lt;br /&gt;General_ClearAttributeValueWhenCopiedInsideDocument : 0&lt;br /&gt;General_ClearAttributeValueWhenCopiedInsideEnvironment : 0&lt;br /&gt;General_ClearAttributeValueWhenCopiedMovedFromOtherEnvironment : 0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeDefaultValueSettings&amp;quot;:&lt;br /&gt;===========================================================================================&lt;br /&gt;Value_DefaultValueType : 3&lt;br /&gt;Value_DefaultValueTypeName : System variable&lt;br /&gt;Value_DefaultValueValue : $PROJECT#PROJECT_REGION$&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeUpdateValueSettings&amp;quot;:&lt;br /&gt;===========================================================================================&lt;br /&gt;Value_UpdateValueType : 2&lt;br /&gt;Value_UpdateValueTypeName : Select&lt;br /&gt;Value_UpdateValueValue : SELECT...&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;?????&lt;br /&gt;===========================================================================================&lt;br /&gt;Value_TriggeringAttributes : {JOB_NO}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeValueListValueSettings&amp;quot;&lt;br /&gt;============================================================================================&lt;br /&gt;Value_ValueListLimitToList : 0&lt;br /&gt;Value_ValueListMultipleSelection : 0&lt;br /&gt;Value_ValueListType : 1&lt;br /&gt;Value_ValueListTypeName : Select&lt;br /&gt;Value_ValueListValue : SELECT...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;quot;Set-PWAttributeEditingSettings&amp;quot;&lt;br /&gt;============================================================================================&lt;br /&gt;Edit_ControlTypeName : Edit field&lt;br /&gt;Edit_ControlTypeID : 1&lt;br /&gt;Edit_ControlFont : &lt;br /&gt;Edit_ControlFontSize : 0&lt;br /&gt;Edit_FormatString : &lt;br /&gt;Edit_MaximumInputTextLength : 0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;quot;Set-PWAttributeExtraValuesSettings&amp;quot;&lt;br /&gt;===========================================================================================&lt;br /&gt;ExtraValues_1 : &lt;br /&gt;ExtraValues_2 : &lt;br /&gt;ExtraValues_3 : &lt;br /&gt;ExtraValues_4 : &lt;br /&gt;ExtraValues_5 :&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think that&amp;#39;s all I could find...I&amp;#39;m still Looking, Though...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does anyone know if queries in the Environmental Attribute layouts can be accessed and changed from a Powershell script?</title><link>https://communities.bentley.com/thread/681341?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 12:40:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:38897313-ef9a-42a0-9003-3acf4f85bcac</guid><dc:creator>Robert Biggar</dc:creator><description>&lt;p&gt;Thanks for the help with this, Kevin!!&lt;/p&gt;
&lt;p&gt;I managed to get a script running that uses this and it is a big help.&lt;/p&gt;
&lt;p&gt;I found for future Reference:&lt;/p&gt;
&lt;p&gt;&amp;quot;Get-PWAttributeSettings&amp;quot; - gave me a listing of all the Attribute values for the target Attribute in the ENVIRONMENT;&lt;/p&gt;
&lt;p&gt;Get-PWAttributeSettings -EnvironmentName &amp;#39;&amp;lt;env name&amp;gt;&amp;#39; -AttributeName &amp;#39;&amp;lt;ATTR Name&amp;gt;&amp;#39; -Verbose&lt;/p&gt;
&lt;p&gt;-------&amp;nbsp; &amp;nbsp;The &amp;quot;Gets&amp;quot;....&lt;/p&gt;
&lt;p&gt;&amp;quot;Get-PWAttributeUpdateValueTriggerAttribute&amp;quot; - Gets the Attribute name and ID of the &amp;quot;Trigger Control Attribute&amp;quot; &lt;br /&gt; for the specified Attribute&lt;/p&gt;
&lt;p&gt;&amp;quot;Get-PWAttributeValueListFixedList&amp;quot; - Returns the fixed list of an Attribute and each value&amp;#39;s descrition&lt;/p&gt;
&lt;p&gt;--------------------------- The &amp;quot;Sets&amp;quot;...&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeDefaultValueSettings&amp;quot; - Sets values specified by Type in the &amp;quot;Default value&amp;quot; box of the Value tab (does not like blanks)&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeUpdateValueSettings&amp;quot; - Sets values specified by Type in the &amp;quot;Update value&amp;quot; box of the Value tab&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeValueListValueSettings&amp;quot; - Sets values specified by Type in the &amp;quot;Value List&amp;quot; box of the Value tab &lt;br /&gt; (toggle buttons set by separate command line flags)&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeExtraValuesSettings&amp;quot; - Sets values in the &amp;quot;Editing Tab&amp;quot;.&lt;/p&gt;
&lt;p&gt;===============================================================================================================&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The above describes how to get and change most of the settings in the Attributes.....&lt;br /&gt;Are there other cmdlets to change the ones I have under &amp;quot;????&amp;quot;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(Below is a listing of everything returned by &amp;quot;&lt;span&gt;Get-PWAttributeSettings&amp;quot;, broken up by which CMDLet can change&amp;nbsp;&lt;/span&gt;Those values....)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; ATTRIBUTE VALUE NAME&amp;nbsp; :&amp;nbsp; &amp;nbsp;ATTRIBUTE SETTING&lt;br /&gt;----------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;?????&lt;br /&gt;===========================================================================================&lt;br /&gt;EnvironmentName : &amp;lt;ENV NAME&amp;gt;&lt;br /&gt;EnvironmentID : 110&lt;br /&gt;ColumnName : &amp;lt;attribute Name&amp;gt;&lt;br /&gt;ColumnID : 22&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;?????&lt;br /&gt;===========================================================================================&lt;br /&gt;General_AttributeValueUnique : 0&lt;br /&gt;General_AttributeValueRequired : 0&lt;br /&gt;General_AttributeValueEditableIfFinal : 0&lt;br /&gt;General_AttributeValueAccess : 1&lt;br /&gt;General_AttributeValueAccessName : Edit&lt;br /&gt;General_ClearAttributeValueWhenCopiedInsideDocument : 0&lt;br /&gt;General_ClearAttributeValueWhenCopiedInsideEnvironment : 0&lt;br /&gt;General_ClearAttributeValueWhenCopiedMovedFromOtherEnvironment : 0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeDefaultValueSettings&amp;quot;:&lt;br /&gt;===========================================================================================&lt;br /&gt;Value_DefaultValueType : 3&lt;br /&gt;Value_DefaultValueTypeName : System variable&lt;br /&gt;Value_DefaultValueValue : $PROJECT#PROJECT_REGION$&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeUpdateValueSettings&amp;quot;:&lt;br /&gt;===========================================================================================&lt;br /&gt;Value_UpdateValueType : 2&lt;br /&gt;Value_UpdateValueTypeName : Select&lt;br /&gt;Value_UpdateValueValue : SELECT...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;?????&lt;br /&gt;===========================================================================================&lt;br /&gt;Value_TriggeringAttributes : {JOB_NO}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-PWAttributeValueListValueSettings&amp;quot;&lt;br /&gt;============================================================================================&lt;br /&gt;Value_ValueListLimitToList : 0&lt;br /&gt;Value_ValueListMultipleSelection : 0&lt;br /&gt;Value_ValueListType : 1&lt;br /&gt;Value_ValueListTypeName : Select&lt;br /&gt;Value_ValueListValue : SELECT...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;quot;Set-PWAttributeExtraValuesSettings&amp;quot;&lt;br /&gt;============================================================================================&lt;br /&gt;Edit_ControlTypeName : Edit field&lt;br /&gt;Edit_ControlTypeID : 1&lt;br /&gt;Edit_ControlFont : &lt;br /&gt;Edit_ControlFontSize : 0&lt;br /&gt;Edit_FormatString : &lt;br /&gt;Edit_MaximumInputTextLength : 0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;?????&lt;br /&gt;===========================================================================================&lt;br /&gt;ExtraValues_1 : &lt;br /&gt;ExtraValues_2 : &lt;br /&gt;ExtraValues_3 : &lt;br /&gt;ExtraValues_4 : &lt;br /&gt;ExtraValues_5 :&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; - Thank You!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does anyone know if queries in the Environmental Attribute layouts can be accessed and changed from a Powershell script?</title><link>https://communities.bentley.com/thread/679579?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 18:42:00 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5e8b16a4-d0ec-4a22-9535-3bd3eacd05a9</guid><dc:creator>Kevin van Haaren</dc:creator><description>&lt;p&gt;Most of the attribute properties can be read and changed using these commands:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Get-PWAttributeSettings
Get-PWAttributeUpdateValueTriggerAttribute
Get-PWAttributeValueListFixedList

Set-PWAttributeDefaultValueSettings
Set-PWAttributeExtraValuesSettings
Set-PWAttributeUpdateValueSettings
Set-PWAttributeValueListSettings

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think you can change the positioning of the label/field in the Attribute Layout but that&amp;#39;s about it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>