<?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>Can you lock an undefined variable?</title><link>https://communities.bentley.com/products/administration/f/product-administration-forum/235330/can-you-lock-an-undefined-variable</link><description>Tested in MicroStation CONNECT 10.17.00.209 
 At one time I thought you could prevent a variable from being set in a later config by undefining it, then locking it. 
 
 But when I actually tried this with the MS_DISALLOWRELATIVEREFPATH variable it didn</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Can you lock an undefined variable?</title><link>https://communities.bentley.com/thread/733278?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 17:17:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a4914663-3029-41fe-ac1d-85431f9a2180</guid><dc:creator>Rod Wing</dc:creator><description>&lt;p&gt;There are a number of variables that work that way. You define it to any value and the option is enabled, the only way to disable the option is to %undef the variable.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve not had the need to do what you are doing, but I can see the value in being able to do so.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you lock an undefined variable?</title><link>https://communities.bentley.com/thread/731903?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2022 22:44:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:62d671ff-0a4c-492a-8f2d-f0449f06a84e</guid><dc:creator>Kevin van Haaren</dc:creator><description>&lt;p&gt;Yes, inside or outside of projectwise for&amp;nbsp;&lt;span&gt;MS_DISALLOWRELATIVEREFPATH and&amp;nbsp;CIVIL_UPGRADE_PROMPT_OFF&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ORD group confirmed the&amp;nbsp;&lt;span&gt;CIVIL_UPGRADE_PROMPT_OFF&amp;nbsp;will operate if it&amp;#39;s set to 1 or 0, the only way to always get a prompt is to %undef it and manually make sure it doesn&amp;#39;t get turned back on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="/products/road___site_design/f/geopak-inroads-mx-openroads-forum/235515/is-setting-civil_upgrade_prompt_off-0-the-same-as-undef-it"&gt;Is setting CIVIL_UPGRADE_PROMPT_OFF=0 the same as %undef it? - OpenRoads | OpenSite Forum - OpenRoads | OpenSite - Bentley Communities&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you lock an undefined variable?</title><link>https://communities.bentley.com/thread/731896?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2022 20:31:50 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fcc523d5-1f5b-414a-8649-2ff6d9f39539</guid><dc:creator>Marc Thomas</dc:creator><description>&lt;p&gt;I would expect setting a variable =0 would disable it so reporting any cases where it does not would be very useful. Do you see this if ProjectWise is not involved?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you lock an undefined variable?</title><link>https://communities.bentley.com/thread/731630?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2022 21:50:05 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f7ff9118-8444-4bfa-a406-0bc13fcce887</guid><dc:creator>Kevin van Haaren</dc:creator><description>&lt;p&gt;Hmmm, maybe the real issue I should be reporting is the scenarios where variables set to 1 are enabled but setting to 0 doesn&amp;#39;t disable it, but I&amp;#39;m not sure if that would be a serious breaking change for how a lot of companies&amp;nbsp;do configurations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you lock an undefined variable?</title><link>https://communities.bentley.com/thread/731629?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2022 21:48:08 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e815b17-a1f9-48d8-874c-4cc58e021775</guid><dc:creator>Kevin van Haaren</dc:creator><description>&lt;p&gt;This occasionally comes up for us where we don&amp;#39;t want a variable set, but a downstream client configuration may set it (or workset configuration out of our control) may set it. There are some variables where just being defined is enough to trigger the action, no matter what it is set to.&lt;/p&gt;
&lt;p&gt;Currently I use it for 2 variables that I consider somewhat important (although in double-checking I see one of these I can actually set to 0&amp;nbsp;to disable it):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# This blocks supressing the workset association dialog when you open a file
# associated with one workset in a different workset.
%undef MS_SUPPRESS_FILE_WORKSET_ASSOCIATION
%lock MS_SUPPRESS_FILE_WORKSET_ASSOCIATION

# Setting this variable will upgrade all civil files to the latest schema with no prompt
# We don&amp;#39;t want that!
%undef CIVIL_UPGRADE_PROMPT_OFF
%lock CIVIL_UPGRADE_PROMPT_OFF
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t want files auto-upgrading in ORD or chaning the&amp;nbsp;workset being used without the&amp;nbsp;user&amp;#39;s being&amp;nbsp;aware of it. But sometimes are our clients want these disabled so the user can go directly into the file with zero prompts (I can understand this if you&amp;#39;re only running one version of ORD or are constantly getting files from outside consultants that are in the wrong workset name, but it&amp;#39;s the reverse for us).&lt;/p&gt;
&lt;p&gt;However in writing this I&amp;#39;ve found I should be able to define MS_SUPPRESS_FILE_WORKSET_ASSOCIATION = 0 then lock that for that one to be permanently disabled. Couldn&amp;#39;t get a clear&amp;nbsp;answer on&amp;nbsp;CIVIL_UPGRADE_PROMPT_OFF if I could do the same there.&lt;/p&gt;
&lt;p&gt;I came across this issue in testing MS_DISALLOWRELATIVEREFPATH. Normally for projectwise i set it to 1 and then lock in that state, but we were seeing some weird issues so i wanted to turn it off. I set it 0 and %lock that but that turned out not to actually turn it off. So then I %undef and then %lock it, but that also didn&amp;#39;t work (I ended up testing in a area that didn&amp;#39;t have the client&amp;#39;s workspace attached to actually test it).&lt;/p&gt;
&lt;p&gt;Not sure how many other variables there are where the help says &amp;quot;set to 1&amp;quot; to turn it on but setting to 0 doesn&amp;#39;t actually turn it off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you lock an undefined variable?</title><link>https://communities.bentley.com/thread/731593?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2022 16:55:18 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6f67a5d1-1be7-46a2-92b6-00a6f43ce4ea</guid><dc:creator>Marc Thomas</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;Interesting one. I&amp;#39;m not surprised to find that the undefined state cannot be locked, that seems logical.&lt;/p&gt;
&lt;p&gt;Please can you describe the use case you are hoping to solve?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>