<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Re-lock parameters in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224926#M8848</link>
    <description>Maybe you could try ...
&lt;PRE&gt;if GLOB_CONTEXT &amp;lt;&amp;gt; 5 then
Boolean_parameter = 1
Parameters Boolean_parameter = Boolean_parameter
endif&lt;/PRE&gt;

That way as soon as to close the object settings the lock parameter should get turned on again.&lt;BR /&gt;
&lt;BR /&gt;
I haven't tested this but it might work.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Fri, 16 Oct 2015 01:20:47 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2015-10-16T01:20:47Z</dc:date>
    <item>
      <title>Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224925#M8847</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I have a bunch of parameters that I don't really want the user to edit...but on the off-chance that they need to, I want to allow that.&lt;BR /&gt;
&lt;BR /&gt;
So, I have created a menu in the parameters list, but have locked them all.  A boolean parameter allows the user to unlock these for editing.&lt;BR /&gt;
&lt;BR /&gt;
My question: how do I automatically re-lock these parameters when the user exits the settings window?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 09:40:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224925#M8847</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2023-05-24T09:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224926#M8848</link>
      <description>Maybe you could try ...
&lt;PRE&gt;if GLOB_CONTEXT &amp;lt;&amp;gt; 5 then
Boolean_parameter = 1
Parameters Boolean_parameter = Boolean_parameter
endif&lt;/PRE&gt;

That way as soon as to close the object settings the lock parameter should get turned on again.&lt;BR /&gt;
&lt;BR /&gt;
I haven't tested this but it might work.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 16 Oct 2015 01:20:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224926#M8848</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-10-16T01:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224927#M8849</link>
      <description>Perfect!  A most excellent solution.  Thanks very much!</description>
      <pubDate>Fri, 16 Oct 2015 01:42:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224927#M8849</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2015-10-16T01:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224928#M8850</link>
      <description>Beware the use of global, it's a "Deprecated Global Variables".&lt;BR /&gt;
If you use it in v19, Archicad will not benefit of predictive computation.&lt;BR /&gt;
In v20 GLOB_CONTEXT used in parameters script or master script will have always the value 2.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://download.graphisoft.com/ftp/techsupport/downloads/GDL/GDL%20changes%20in%20ArchiCAD%2019%20v1.1.pdf" target="_blank"&gt;&lt;LINK_TEXT text="http://download.graphisoft.com/ftp/tech ... 20v1.1.pdf"&gt;http://download.graphisoft.com/ftp/techsupport/downloads/GDL/GDL%20changes%20in%20ArchiCAD%2019%20v1.1.pdf&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Fri, 16 Oct 2015 11:37:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224928#M8850</guid>
      <dc:creator>Mario Sacco</dc:creator>
      <dc:date>2015-10-16T11:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224929#M8851</link>
      <description>Thanks for the heads-up &amp;amp; the link.  Seems I'll have to look for another solution.  Cheers.</description>
      <pubDate>Sat, 17 Oct 2015 00:37:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224929#M8851</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2015-10-17T00:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224930#M8852</link>
      <description>Turns out it only affects the parameter script (as you mentioned).  If I move the GLOB query into the Master Script, it should still work.&lt;BR /&gt;
&lt;BR /&gt;
Cheers!</description>
      <pubDate>Sun, 18 Oct 2015 19:56:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224930#M8852</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2015-10-18T19:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224931#M8853</link>
      <description>&lt;BLOCKQUOTE&gt;Bruce wrote:&lt;BR /&gt;Turns out it only affects the parameter script (as you mentioned).  If I move the GLOB query into the Master Script, it should still work.&lt;BR /&gt;
&lt;BR /&gt;
Cheers!&lt;/BLOCKQUOTE&gt;

If you use PARAMETERS command in master script it works as parameters script. It's not written, but I'm quite sure it's so. &lt;BR /&gt;
The master script to work fine must not have PARAMETERS command.&lt;BR /&gt;
 I'm sure 95 % &lt;BR /&gt;
&lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;</description>
      <pubDate>Sun, 18 Oct 2015 20:53:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224931#M8853</guid>
      <dc:creator>Mario Sacco</dc:creator>
      <dc:date>2015-10-18T20:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224932#M8854</link>
      <description>In the master script I put:&lt;BR /&gt;
IF GLOB_CONTEXT &amp;lt;&amp;gt; 5 THEN Boolean_parameter = 1&lt;BR /&gt;
&lt;BR /&gt;
In the parameter script I put:&lt;BR /&gt;
PARAMETERS Boolean_parameter = Boolean_parameter&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Seems to work just fine.  Haven't tested it in v19 yet.</description>
      <pubDate>Sun, 18 Oct 2015 22:56:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224932#M8854</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2015-10-18T22:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224933#M8855</link>
      <description>&lt;BLOCKQUOTE&gt;Bruce wrote:&lt;BR /&gt;In the master script I put:&lt;BR /&gt;
IF GLOB_CONTEXT &amp;lt;&amp;gt; 5 THEN Boolean_parameter = 1&lt;BR /&gt;
&lt;BR /&gt;
In the parameter script I put:&lt;BR /&gt;
PARAMETERS Boolean_parameter = Boolean_parameter&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Seems to work just fine.  Haven't tested it in v19 yet.&lt;/BLOCKQUOTE&gt;

It's not simple.....&lt;BR /&gt;
The parameter Boolean_parameter in PARAMETERS script depend from a set in master script; it makes master script working as parameter script.&lt;BR /&gt;
&lt;BR /&gt;
Let me know your try, It's a huge problem for many GDL developer.</description>
      <pubDate>Mon, 19 Oct 2015 04:42:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224933#M8855</guid>
      <dc:creator>Mario Sacco</dc:creator>
      <dc:date>2015-10-19T04:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224934#M8856</link>
      <description>Well I don't have v19 to test it in yet, but it works just fine in v18.</description>
      <pubDate>Mon, 19 Oct 2015 06:47:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224934#M8856</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2015-10-19T06:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224935#M8857</link>
      <description>In version 19 will work, in 20 - no.&lt;BR /&gt;
Instead of the GLOB_CONTEXT,  should be applied GLOB_VIEW_TYPE. Press the Check Script button in v19, and will be generate the warning in the GDL Editor.&lt;BR /&gt;
All GLOB_ canceled,  PEN_OF_RGB, MATERIAL_INFO, TEXTBLOCK_INFO - how many items will have to redo. Not very pleasant innovation in GDL.</description>
      <pubDate>Mon, 19 Oct 2015 07:15:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224935#M8857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T07:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224936#M8858</link>
      <description>I could not agree more with SL_GDL!&lt;BR /&gt;
To remove context and other globals is insane!&lt;BR /&gt;
Anyone using context or view dependant code WANTS to have objects change dependant on views!&lt;BR /&gt;
The line of "in teamwork two people can see the object differently depending on the view" is the whole point!!!!! Not an argument for removing the option!</description>
      <pubDate>Mon, 19 Oct 2015 07:26:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224936#M8858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T07:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224937#M8859</link>
      <description>No sorry my solution doesn't work in 19 - not the initial release anyway.&lt;BR /&gt;
It is supposed to work when the next hotfix is released to give us time to change our scripts before it stops working again in 20.&lt;BR /&gt;
&lt;BR /&gt;
But just what can we change our scripts to.&lt;BR /&gt;
I use GLOB_CONTEXT quite a bit.&lt;BR /&gt;
This is a classic example of how.&lt;BR /&gt;
Or in a schedule I use it to control the 2D symbol of an object so it is not rotated/reversed just because the object was placed that way.&lt;BR /&gt;
&lt;BR /&gt;
Can someone from GS please explain if we can no longer use GLOB_CONTEXT how can we set a parameter based on the context of what is happening to the object at that time?&lt;BR /&gt;
i.e. how do we get around this particular problem of resetting a Boolean parameter when we are not viewing the object settings dialogue.&lt;BR /&gt;
&lt;BR /&gt;
This would be greatly appreciated.&lt;BR /&gt;
&lt;BR /&gt;
I agree with Kistian in that we want objects to change dependent on the views - teamwork or no teamwork.&lt;BR /&gt;
What is the solution?&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 19 Oct 2015 08:10:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224937#M8859</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-10-19T08:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224938#M8860</link>
      <description>Hello.&lt;BR /&gt;
&lt;BR /&gt;
It is, indeed, a simple but interesting issue.&lt;BR /&gt;
As far as I can tell, objects will be able to change depending on the views, just coded differently. You will be able to use GLOB_VIEW_TYPE, GLOB_PREVIEW_MODE and GLOB_FEEDBACK_MODE to set how the object looks, but &lt;B&gt;not change its stored parameters&lt;/B&gt; just by changing to another view type. So, in this particular case, if the user has set a value for the boolean parameter, the parameter script won't be able to change what the user has set as a stored parameter... or at least this is how I understand the GDL changes document.&lt;BR /&gt;
&lt;BR /&gt;
I think the part about teamwork is referring to instances where an object might change stored parameters based on a view that another team member is using, something like if I'm looking at an object with 2 pieces set as an integer and a team member reserves that object, opens another type of view and because of that the object changes that parameter to 3, then it is no longer reliable what the two people are looking at. You could still code in that the object should display 3 pieces in that view or 2 in the other, but without changing the original 2 pieces set... something like that.&lt;BR /&gt;
&lt;BR /&gt;
I can see the use for the example provided in the thread, re-locking a parameter once the dialog box closes; but don't think it will work in future versions.&lt;BR /&gt;
&lt;BR /&gt;
Of course... I could be ENTIRELY wrong in what I've said until further and deeper information is available.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Mon, 19 Oct 2015 22:10:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224938#M8860</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2015-10-19T22:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re-lock parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224939#M8861</link>
      <description>Just for reference here is the document that outlines what has changed, why and what to do:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://download.graphisoft.com/ftp/techsupport/downloads/GDL/GDL%20changes%20in%20ArchiCAD%2019%20v1.1.pdf" target="_blank"&gt;&lt;LINK_TEXT text="http://download.graphisoft.com/ftp/tech ... 20v1.1.pdf"&gt;http://download.graphisoft.com/ftp/techsupport/downloads/GDL/GDL%20changes%20in%20ArchiCAD%2019%20v1.1.pdf&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Mon, 19 Oct 2015 22:17:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Re-lock-parameters/m-p/224939#M8861</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2015-10-19T22:17:46Z</dc:date>
    </item>
  </channel>
</rss>

