<?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: How to hide parameters in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239175#M10501</link>
    <description>&lt;BLOCKQUOTE&gt;Dave wrote:&lt;BR /&gt;Jensvs &lt;BR /&gt;
 &lt;BR /&gt;
You jumped over Erich's Comment..... &lt;BR /&gt;
 &lt;BR /&gt;
This says that if parameter1 is turned on, parameter2 is to be hidden. For this to work, &lt;FONT color="#ff00b6"&gt;parameter1 must be a boolean value.&lt;/FONT&gt; &lt;BR /&gt;
 &lt;BR /&gt;
For your desk you need to create a Boolean value for the doors and or drawers.  If the only two options are drawers or doors then try something like this (assuming you are using a VALUES script in the master script) &lt;BR /&gt;
 &lt;BR /&gt;
Parameters &lt;BR /&gt;
 &lt;BR /&gt;
desk_type            Abc &lt;BR /&gt;
desk_drawers       Boolean &lt;BR /&gt;
desk_doors          Boolean &lt;BR /&gt;
 &lt;BR /&gt;
Master Script &lt;BR /&gt;
 &lt;BR /&gt;
dt_1 = "Doors" &lt;BR /&gt;
dt_2 = "Drawers" &lt;BR /&gt;
 &lt;BR /&gt;
VALUES "desk_type" "Doors", "Drawers" &lt;BR /&gt;
 &lt;BR /&gt;
Parameters Script &lt;BR /&gt;
 &lt;BR /&gt;
IF desk_type = dt_1 THEN &lt;BR /&gt;
	PARAMETERS desk_doors = 1 &lt;BR /&gt;
	PARAMETERS desk_drawers = 0 &lt;BR /&gt;
ENDIF &lt;BR /&gt;
 &lt;BR /&gt;
IF desk_type = dt_2 THEN &lt;BR /&gt;
	PARAMETERS desk_doors = 0 &lt;BR /&gt;
	PARAMETERS desk_drawers = 1 &lt;BR /&gt;
ENDIF &lt;BR /&gt;
 &lt;BR /&gt;
Then you set up what parameters you want hidden or showing based on the values of desk_door and desk_drawers &lt;BR /&gt;
 &lt;BR /&gt;
IF desk_drawer = 1 THEN &lt;BR /&gt;
     HIDEPARAMETERS ................. &lt;BR /&gt;
ENDIF &lt;BR /&gt;
 &lt;BR /&gt;
Hope that helps. &lt;BR /&gt;
 &lt;BR /&gt;
David&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Thx David  &lt;BR /&gt;
I have done what you said &lt;BR /&gt;
 &lt;BR /&gt;
But i have this code &lt;BR /&gt;
 &lt;BR /&gt;
IF Type_Drawer_Left = "Drawers" THEN &lt;BR /&gt;
MATERIAL Material_Drawers_Left &lt;BR /&gt;
	IF Number_of_Drawers_Left = "1" THEN &lt;BR /&gt;
		BLOCK Width_Desk_Left, .015, Height_Desk-.105 &lt;BR /&gt;
		ADDX (Width_Desk_Left/2)-.02 &lt;BR /&gt;
		ADDZ .05 &lt;BR /&gt;
		ROTX 90 &lt;BR /&gt;
		MATERIAL Material_Handle &lt;BR /&gt;
		CYLIND .01, .004 &lt;BR /&gt;
		ADDZ .01 &lt;BR /&gt;
		ELBOW .02, 180, .004 &lt;BR /&gt;
		DEL 1 &lt;BR /&gt;
		ADDX .04 &lt;BR /&gt;
		CYLIND .01, .004 &lt;BR /&gt;
	ENDIF &lt;BR /&gt;
 &lt;BR /&gt;
and in the place of "Drawers" must be a number and i dont know what number</description>
    <pubDate>Tue, 20 Jan 2015 10:29:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-20T10:29:37Z</dc:date>
    <item>
      <title>How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239165#M10491</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hey i am searching for a way to hide parameters. This is because i want to disable parameters if another parameter is on &lt;BR /&gt;
can someone help  &lt;BR /&gt;
thx a lot&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 17 Jan 2015 10:37:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239165#M10491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239166#M10492</link>
      <description>Hi,&lt;BR /&gt;
You have to go to parameter script and use:&lt;BR /&gt;
&lt;BR /&gt;
hideparameter "parameter_name"&lt;BR /&gt;
&lt;BR /&gt;
You can also lock parameters, give them possible values.......</description>
      <pubDate>Sat, 17 Jan 2015 10:57:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239166#M10492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T10:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239167#M10493</link>
      <description>IF you want it dependent on another parameter then you want the following:&lt;BR /&gt;

&lt;PRE&gt;IF parameter1 THEN HIDEPARAMETER 'parameter2'
&lt;/PRE&gt;

This says that if parameter1 is turned on, parameter2 is to be hidden. For this to work, parameter1 must be a boolean value.</description>
      <pubDate>Sat, 17 Jan 2015 16:46:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239167#M10493</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2015-01-17T16:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239168#M10494</link>
      <description>Thx but i am using a text code. I am making a desk and you can choose if you want a door or drawers in the desk. But if you choose door then all the parameters which include drawers must be disabled</description>
      <pubDate>Sun, 18 Jan 2015 11:13:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239168#M10494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-18T11:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239169#M10495</link>
      <description>also is there a possibility to limit material parameters</description>
      <pubDate>Sun, 18 Jan 2015 11:16:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239169#M10495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-18T11:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239170#M10496</link>
      <description>jensvs:&lt;BR /&gt;
&lt;BR /&gt;
You will want to use an If-Then command, for example:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="blue"&gt;If&lt;/FONT&gt; Door_Type="None" &lt;FONT color="blue"&gt;Then&lt;/FONT&gt; &lt;FONT color="green"&gt;HideParameter&lt;/FONT&gt; "Door_Mat", "Trim_Mat"&lt;BR /&gt;
&lt;BR /&gt;
You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Sun, 18 Jan 2015 13:57:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239170#M10496</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2015-01-18T13:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239171#M10497</link>
      <description>I have the parameters &lt;BR /&gt;
Type_of_Desk choose between "Door" "Drawers" &lt;BR /&gt;
But i have also a parameter Number_of_Drawer and Material_Drawers &lt;BR /&gt;
and those parameters must be disabled when you choose "Door" &lt;BR /&gt;
 &lt;BR /&gt;
Can you please send me a script or something &lt;BR /&gt;
 &lt;BR /&gt;
I tried this in the parameter script &lt;BR /&gt;
IF "Type_of_Desk" = "Door" THEN &lt;BR /&gt;
	HIDEPARAMETER "Number_of_Drawers" &lt;BR /&gt;
	HIDEPARAMETER "Material_Drawer" &lt;BR /&gt;
ENDIF</description>
      <pubDate>Sun, 18 Jan 2015 16:58:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239171#M10497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-18T16:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239172#M10498</link>
      <description>Jensvs&lt;BR /&gt;
&lt;BR /&gt;
You jumped over Erich's Comment.....&lt;BR /&gt;
&lt;BR /&gt;
This says that if parameter1 is turned on, parameter2 is to be hidden. For this to work, &lt;FONT color="#ff00b6"&gt;parameter1 must be a boolean value.&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
For your desk you need to create a Boolean value for the doors and or drawers.  If the only two options are drawers or doors then try something like this (assuming you are using a VALUES script in the master script)&lt;BR /&gt;
&lt;BR /&gt;
Parameters&lt;BR /&gt;
&lt;BR /&gt;
desk_type            Abc&lt;BR /&gt;
desk_drawers       Boolean&lt;BR /&gt;
desk_doors          Boolean&lt;BR /&gt;
&lt;BR /&gt;
Master Script&lt;BR /&gt;
&lt;BR /&gt;
dt_1 = "Doors"&lt;BR /&gt;
dt_2 = "Drawers"&lt;BR /&gt;
&lt;BR /&gt;
VALUES "desk_type" "Doors", "Drawers"&lt;BR /&gt;
&lt;BR /&gt;
Parameters Script&lt;BR /&gt;
&lt;BR /&gt;
IF desk_type = dt_1 THEN&lt;BR /&gt;
	PARAMETERS desk_doors = 1&lt;BR /&gt;
	PARAMETERS desk_drawers = 0&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF desk_type = dt_2 THEN&lt;BR /&gt;
	PARAMETERS desk_doors = 0&lt;BR /&gt;
	PARAMETERS desk_drawers = 1&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
Then you set up what parameters you want hidden or showing based on the values of desk_door and desk_drawers&lt;BR /&gt;
&lt;BR /&gt;
IF desk_drawer = 1 THEN&lt;BR /&gt;
     HIDEPARAMETERS .................&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
Hope that helps.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Sun, 18 Jan 2015 18:03:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239172#M10498</guid>
      <dc:creator>Dave Seabury</dc:creator>
      <dc:date>2015-01-18T18:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239173#M10499</link>
      <description>&lt;BLOCKQUOTE&gt;jensvs wrote:&lt;BR /&gt;I tried this in the parameter script &lt;BR /&gt;
IF "Type_of_Desk" = "Door" THEN &lt;BR /&gt;
	HIDEPARAMETER "Number_of_Drawers" &lt;BR /&gt;
	HIDEPARAMETER "Material_Drawer" &lt;BR /&gt;
ENDIF&lt;/BLOCKQUOTE&gt;

Given that your parameters are text (i.e. door or drawers) and not boolean, then what you show is fine, other than you have quotes around Type_of_Desk in your code. &lt;BR /&gt;
&lt;BR /&gt;
You can even simplify this as follows:&lt;BR /&gt;

&lt;PRE&gt;IF Type_of_Desk = 'Door' THEN
  HIDEPARAMETER 'Number_of_Drawers', 'Material_Drawer'
ENDIF&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Jan 2015 21:18:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239173#M10499</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2015-01-18T21:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239174#M10500</link>
      <description>Also note you wont see the parameters "hide' while you are editing the script.&lt;BR /&gt;
The parameter list will remain unchanged - you can't tell what is hidden or not until you save the object and use it in Archicad.&lt;BR /&gt;
&lt;BR /&gt;
A little trick I do though is to also 'LOCK' the parameters.&lt;BR /&gt;
This you can see while you are editing the script - the locked parameters will turn grey in the parameter list.&lt;BR /&gt;

&lt;PRE&gt;IF Type_of_Desk = 'Door' THEN 
   LOCK 'Number_of_Drawers', 'Material_Drawer' 
   HIDEPARAMETER 'Number_of_Drawers', 'Material_Drawer' 
ENDIF&lt;/PRE&gt;

Barry.</description>
      <pubDate>Mon, 19 Jan 2015 03:02:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239174#M10500</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-01-19T03:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239175#M10501</link>
      <description>&lt;BLOCKQUOTE&gt;Dave wrote:&lt;BR /&gt;Jensvs &lt;BR /&gt;
 &lt;BR /&gt;
You jumped over Erich's Comment..... &lt;BR /&gt;
 &lt;BR /&gt;
This says that if parameter1 is turned on, parameter2 is to be hidden. For this to work, &lt;FONT color="#ff00b6"&gt;parameter1 must be a boolean value.&lt;/FONT&gt; &lt;BR /&gt;
 &lt;BR /&gt;
For your desk you need to create a Boolean value for the doors and or drawers.  If the only two options are drawers or doors then try something like this (assuming you are using a VALUES script in the master script) &lt;BR /&gt;
 &lt;BR /&gt;
Parameters &lt;BR /&gt;
 &lt;BR /&gt;
desk_type            Abc &lt;BR /&gt;
desk_drawers       Boolean &lt;BR /&gt;
desk_doors          Boolean &lt;BR /&gt;
 &lt;BR /&gt;
Master Script &lt;BR /&gt;
 &lt;BR /&gt;
dt_1 = "Doors" &lt;BR /&gt;
dt_2 = "Drawers" &lt;BR /&gt;
 &lt;BR /&gt;
VALUES "desk_type" "Doors", "Drawers" &lt;BR /&gt;
 &lt;BR /&gt;
Parameters Script &lt;BR /&gt;
 &lt;BR /&gt;
IF desk_type = dt_1 THEN &lt;BR /&gt;
	PARAMETERS desk_doors = 1 &lt;BR /&gt;
	PARAMETERS desk_drawers = 0 &lt;BR /&gt;
ENDIF &lt;BR /&gt;
 &lt;BR /&gt;
IF desk_type = dt_2 THEN &lt;BR /&gt;
	PARAMETERS desk_doors = 0 &lt;BR /&gt;
	PARAMETERS desk_drawers = 1 &lt;BR /&gt;
ENDIF &lt;BR /&gt;
 &lt;BR /&gt;
Then you set up what parameters you want hidden or showing based on the values of desk_door and desk_drawers &lt;BR /&gt;
 &lt;BR /&gt;
IF desk_drawer = 1 THEN &lt;BR /&gt;
     HIDEPARAMETERS ................. &lt;BR /&gt;
ENDIF &lt;BR /&gt;
 &lt;BR /&gt;
Hope that helps. &lt;BR /&gt;
 &lt;BR /&gt;
David&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Thx David  &lt;BR /&gt;
I have done what you said &lt;BR /&gt;
 &lt;BR /&gt;
But i have this code &lt;BR /&gt;
 &lt;BR /&gt;
IF Type_Drawer_Left = "Drawers" THEN &lt;BR /&gt;
MATERIAL Material_Drawers_Left &lt;BR /&gt;
	IF Number_of_Drawers_Left = "1" THEN &lt;BR /&gt;
		BLOCK Width_Desk_Left, .015, Height_Desk-.105 &lt;BR /&gt;
		ADDX (Width_Desk_Left/2)-.02 &lt;BR /&gt;
		ADDZ .05 &lt;BR /&gt;
		ROTX 90 &lt;BR /&gt;
		MATERIAL Material_Handle &lt;BR /&gt;
		CYLIND .01, .004 &lt;BR /&gt;
		ADDZ .01 &lt;BR /&gt;
		ELBOW .02, 180, .004 &lt;BR /&gt;
		DEL 1 &lt;BR /&gt;
		ADDX .04 &lt;BR /&gt;
		CYLIND .01, .004 &lt;BR /&gt;
	ENDIF &lt;BR /&gt;
 &lt;BR /&gt;
and in the place of "Drawers" must be a number and i dont know what number</description>
      <pubDate>Tue, 20 Jan 2015 10:29:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239175#M10501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-20T10:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239176#M10502</link>
      <description>Jens:&lt;BR /&gt;
&lt;BR /&gt;
The code you posted should work, except you need another &lt;FONT color="blue"&gt;EndIf&lt;/FONT&gt; command as you have 2 &lt;FONT color="blue"&gt;If&lt;/FONT&gt; statements.&lt;BR /&gt;
&lt;BR /&gt;
If you zip the object and attach it to your post, others will be able to look at the code without needing to guess at the parameters and other aspects of the object.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for adding the signature.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Tue, 20 Jan 2015 13:27:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-hide-parameters/m-p/239176#M10502</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2015-01-20T13:27:05Z</dc:date>
    </item>
  </channel>
</rss>

