<?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: Trying to use glob_modpar_name and glob_scale together in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Trying-to-use-glob-modpar-name-and-glob-scale-together/m-p/298888#M5208</link>
    <description>&lt;BLOCKQUOTE&gt;allanp wrote:&lt;BR /&gt;GLOB_MODPAR_NAME is a Parameter Scipt command,&lt;BR /&gt;
&lt;BR /&gt;
in GDL for Archicad 21 it states&lt;BR /&gt;
&lt;BR /&gt;
GLOB_SCALE works for :&lt;BR /&gt;
2D Script&lt;BR /&gt;
3D Script&lt;BR /&gt;
&lt;BR /&gt;
Does not work for:&lt;BR /&gt;
UI Script&lt;BR /&gt;
Parameter Script&lt;BR /&gt;
Property Script&lt;BR /&gt;
&lt;BR /&gt;
so is a no go for Parameter commands like GLOB_MODPAR_NAME&lt;BR /&gt;
&lt;BR /&gt;
it stopped working from Archicad 20&lt;BR /&gt;
with a default value of 100 when used in the parameter script&lt;/BLOCKQUOTE&gt;

What about in the master script in Archicad 19? Is there any other way of making this work?</description>
    <pubDate>Wed, 02 Aug 2017 08:11:48 GMT</pubDate>
    <dc:creator>JGoode</dc:creator>
    <dc:date>2017-08-02T08:11:48Z</dc:date>
    <item>
      <title>Trying to use glob_modpar_name and glob_scale together</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Trying-to-use-glob-modpar-name-and-glob-scale-together/m-p/298886#M5206</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;What I need is for a value to update when the scale of the object is changed.
&lt;PRE&gt;if (override_size = 0) then
	LOCK "symbol_width"
	symbol_width = 0.07
	symbol_width_2 = symbol_width*glob_scale
	LOCK "symbol_width_2"
endif&lt;/PRE&gt;

The symbol_width_2 = symbol_width*glob_scale needs to work when the glob_scale is changed. When I tried an if statement it wouldn't work and came up with an error. How do I compose the IF statement using this?&lt;BR /&gt;
&lt;BR /&gt;
EDIT: &lt;PRE&gt;if (GLOB_MODPAR_NAME = "glob_scale") then 
	symbol_width_2 = symbol_width*glob_scale
 endif &lt;/PRE&gt; This code doesn't seem to update it.&lt;BR /&gt;
&lt;BR /&gt;
EDIT 2: When I change the scale with the option to enable the symbol width to be edited, the symbol width stays the same and massively distorts the symbol but when the option is not ticked then it all updates appropriately. Is it not possible to use glob_scale with glob_modpar_name to update and object? &lt;BR /&gt;
&lt;BR /&gt;
All I need is for this code to work and it will be good enough for me &lt;PRE&gt;if (GLOB_MODPAR_NAME = 'GLOB_SCALE') then 
	override_size = 0
endif &lt;/PRE&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2017 11:38:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Trying-to-use-glob-modpar-name-and-glob-scale-together/m-p/298886#M5206</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-08-01T11:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use glob_modpar_name and glob_scale together</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Trying-to-use-glob-modpar-name-and-glob-scale-together/m-p/298887#M5207</link>
      <description>GLOB_MODPAR_NAME is a Parameter Scipt command,&lt;BR /&gt;
&lt;BR /&gt;
in GDL for Archicad 21 it states&lt;BR /&gt;
&lt;BR /&gt;
GLOB_SCALE works for :&lt;BR /&gt;
2D Script&lt;BR /&gt;
3D Script&lt;BR /&gt;
&lt;BR /&gt;
Does not work for:&lt;BR /&gt;
UI Script&lt;BR /&gt;
Parameter Script&lt;BR /&gt;
Property Script&lt;BR /&gt;
&lt;BR /&gt;
so is a no go for Parameter commands like GLOB_MODPAR_NAME&lt;BR /&gt;
&lt;BR /&gt;
it stopped working from Archicad 20&lt;BR /&gt;
with a default value of 100 when used in the parameter script</description>
      <pubDate>Wed, 02 Aug 2017 04:12:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Trying-to-use-glob-modpar-name-and-glob-scale-together/m-p/298887#M5207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-02T04:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use glob_modpar_name and glob_scale together</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Trying-to-use-glob-modpar-name-and-glob-scale-together/m-p/298888#M5208</link>
      <description>&lt;BLOCKQUOTE&gt;allanp wrote:&lt;BR /&gt;GLOB_MODPAR_NAME is a Parameter Scipt command,&lt;BR /&gt;
&lt;BR /&gt;
in GDL for Archicad 21 it states&lt;BR /&gt;
&lt;BR /&gt;
GLOB_SCALE works for :&lt;BR /&gt;
2D Script&lt;BR /&gt;
3D Script&lt;BR /&gt;
&lt;BR /&gt;
Does not work for:&lt;BR /&gt;
UI Script&lt;BR /&gt;
Parameter Script&lt;BR /&gt;
Property Script&lt;BR /&gt;
&lt;BR /&gt;
so is a no go for Parameter commands like GLOB_MODPAR_NAME&lt;BR /&gt;
&lt;BR /&gt;
it stopped working from Archicad 20&lt;BR /&gt;
with a default value of 100 when used in the parameter script&lt;/BLOCKQUOTE&gt;

What about in the master script in Archicad 19? Is there any other way of making this work?</description>
      <pubDate>Wed, 02 Aug 2017 08:11:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Trying-to-use-glob-modpar-name-and-glob-scale-together/m-p/298888#M5208</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-08-02T08:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use glob_modpar_name and glob_scale together</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Trying-to-use-glob-modpar-name-and-glob-scale-together/m-p/298889#M5209</link>
      <description>GLOB_SCALE is not an object parameter so you don't need it use GLOB_MODPAR_NAME at all.&lt;BR /&gt;
&lt;BR /&gt;
GLOB_SCALE can only be used in the 2D/3D scripts and you can then say in your 2D/3D script &lt;BR /&gt;

&lt;PRE&gt;symbol_width_2 = symbol_width*glob_scale&lt;/PRE&gt;

However you can not set the parameter value in the parameter list for 'symbol_width_2' because you can not set parameter values from the 2D/3D scripts - you can only override them.&lt;BR /&gt;
&lt;BR /&gt;
So you won't be able to have a parameter in the object parameter list that changes according to the scale, but you can certainly have you object adjust according to the scale.&lt;BR /&gt;
&lt;BR /&gt;
I am not really sure what you are trying to achieve so I hope this makes sense.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 02 Aug 2017 08:29:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Trying-to-use-glob-modpar-name-and-glob-scale-together/m-p/298889#M5209</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-08-02T08:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use glob_modpar_name and glob_scale together</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Trying-to-use-glob-modpar-name-and-glob-scale-together/m-p/298890#M5210</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
if you make 2 parameters&lt;BR /&gt;
Point1_Drag_X&lt;BR /&gt;
and&lt;BR /&gt;
Temp_Point1_Drag_X&lt;BR /&gt;
then&lt;BR /&gt;
you drop this in the master script...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
if GLOB_MODPAR_NAME = "Point1_Drag_X" then&lt;BR /&gt;
				Temp_Point1_Drag_X = Point1_Drag_X / GLOB_SCALE &lt;BR /&gt;
	parameters 	Temp_Point1_Drag_X = Temp_Point1_Drag_X &lt;BR /&gt;
else&lt;BR /&gt;
				Point1_Drag_X = Temp_Point1_Drag_X * GLOB_SCALE &lt;BR /&gt;
	parameters 	Point1_Drag_X = Point1_Drag_X&lt;BR /&gt;
endif&lt;BR /&gt;
unid = 1000&lt;BR /&gt;
hotspot2 0, 				0, 		unid: unid = unid + 1&lt;BR /&gt;
hotspot2 0, 				0, 		unid, Point1_Drag_X, 1+128 	: unid = unid + 1&lt;BR /&gt;
hotspot2 Point1_Drag_X, 	0, 		unid, Point1_Drag_X, 2 		: unid = unid + 1&lt;BR /&gt;
hotspot2 -1, 				0, 		unid, Point1_Drag_X, 3 	 	: unid = unid + 1&lt;BR /&gt;
&lt;BR /&gt;
line2 0,0,Point1_Drag_X,0&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
If you drag the point/change Point1_Drag_X,  the temp value update,&lt;BR /&gt;
If you don't drag the point/change Point1_Drag_X, then the main value is made out of the temp value.&lt;BR /&gt;
&lt;BR /&gt;
This does not work in 20, but does work in 19.&lt;BR /&gt;
In Archicad 20 it believes that you are in the parameter script  and the Glob_Scale value doesn't change(it is always set to 100)&lt;BR /&gt;
&lt;BR /&gt;
Note:&lt;BR /&gt;
The Parameters command updates the parameter in the list for the user to see. &lt;BR /&gt;
you can change you value in the 2d, 3d script without having to push it back into the parameters and it will still be the scaled value.&lt;BR /&gt;
&lt;BR /&gt;
are you using this as a draggable parameter...as set out there, &lt;BR /&gt;
or &lt;BR /&gt;
does it just need to be visible to the user,&lt;BR /&gt;
or &lt;BR /&gt;
does it just need to be displayed in the 2d/3d window?</description>
      <pubDate>Thu, 03 Aug 2017 00:06:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Trying-to-use-glob-modpar-name-and-glob-scale-together/m-p/298890#M5210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T00:06:01Z</dc:date>
    </item>
  </channel>
</rss>

