<?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: Scale sensitivity not updating in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148400#M12480</link>
    <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;Just setting the parameter does not actually set the variable value for use in the script - which is why you have to open the object so it can read the parameter value.&lt;/BLOCKQUOTE&gt;

Brilliant. I have just used this to capture the global North Direction into a Library Element parameter, so I can pick it up in a Schedule.</description>
    <pubDate>Tue, 20 May 2014 11:01:11 GMT</pubDate>
    <dc:creator>stefan</dc:creator>
    <dc:date>2014-05-20T11:01:11Z</dc:date>
    <item>
      <title>Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148389#M12469</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I have a simple 2D object that I wish to be scale sensitive. However it does not update itself automatically when the drawing scale is changed. If I open the object dialogue dialogue box and close it, the object updates as I would expect it to, but it does not react to a change in drawing scale automatically as it should.&lt;BR /&gt;
&lt;BR /&gt;
My question is. Has a setting been introduced that controls whether or not an object reacts to a scale change. If so what is it?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Gary&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 22 Mar 2014 11:18:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148389#M12469</guid>
      <dc:creator>Gary Lawes</dc:creator>
      <dc:date>2014-03-22T11:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148390#M12470</link>
      <description>Does Your object check GLOB_SCALE?&lt;BR /&gt;
&lt;BR /&gt;
Find any scale sensitive object and look for the GLOB_SCALE and implement in Your object.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Sat, 22 Mar 2014 17:46:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148390#M12470</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2014-03-22T17:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148391#M12471</link>
      <description>Yes Piotr, it is using GLOB_SCALE to obtain the current view scale. And as I stated it all works fine except that it does not update automatically when the scale is changed. It only updates when the object dialogue ox is opened and then closed. I have tried a rebuild of the drawing but again this does not work.&lt;BR /&gt;
Thanks&lt;BR /&gt;
Gary</description>
      <pubDate>Sat, 22 Mar 2014 19:04:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148391#M12471</guid>
      <dc:creator>Gary Lawes</dc:creator>
      <dc:date>2014-03-22T19:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148392#M12472</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Could you post the object or the code?</description>
      <pubDate>Sat, 22 Mar 2014 20:44:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148392#M12472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-22T20:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148393#M12473</link>
      <description>Gary,&lt;BR /&gt;
are you changing the scale of a drawing placed in a layout? if so the scale sensitivity will not work.&lt;BR /&gt;
You need to change the scale in the saved view and rebuild the view to change the display&lt;BR /&gt;
Scott</description>
      <pubDate>Sun, 23 Mar 2014 03:16:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148393#M12473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-23T03:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148394#M12474</link>
      <description>Hi Scott,&lt;BR /&gt;
&lt;BR /&gt;
No it is not in a layout. I am changing scale within the drawing view.&lt;BR /&gt;
&lt;BR /&gt;
I will post the code tomorrow, and maybe put a video on YouTube to help clarify.&lt;BR /&gt;
&lt;BR /&gt;
cheers&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Sun, 23 Mar 2014 20:50:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148394#M12474</guid>
      <dc:creator>Gary Lawes</dc:creator>
      <dc:date>2014-03-23T20:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148395#M12475</link>
      <description>GDL code below -&lt;BR /&gt;
&lt;BR /&gt;
Master script -&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#00FF64"&gt;!Minor scale increments&lt;BR /&gt;
&lt;BR /&gt;
PARAMETERS scale_step = act_bar_wid*Draw_scale/10		!Width of main scale blocks&lt;BR /&gt;
&lt;BR /&gt;
min_scal = scale_step/5									!Width of small scale increments in first block&lt;BR /&gt;
&lt;BR /&gt;
If scale_step &amp;lt; 1 then txt_siz_mult = 1000 else txt_siz_mult = 1&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
And The 2D Script -&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#00FF64"&gt;pen Fill_pen_2&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
While NFD &amp;lt; 5 Do&lt;BR /&gt;
	wid = min_scal&lt;BR /&gt;
	dep = min_scal&lt;BR /&gt;
	fill_type = gs_fill_type&lt;BR /&gt;
	fill_pen = Fill_pen_1&lt;BR /&gt;
!GOTO 5&lt;BR /&gt;
		Gosub 10&lt;BR /&gt;
	Add2 0,-dep&lt;BR /&gt;
	fill_pen = Fill_pen_2&lt;BR /&gt;
		Gosub 10&lt;BR /&gt;
	Del 1&lt;BR /&gt;
&lt;BR /&gt;
	Add2 wid, 0&lt;BR /&gt;
	NFD = NFD+1&lt;BR /&gt;
	Mul2 1,-1&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
EndWhile&lt;BR /&gt;
	Hotspot2 0,0&lt;BR /&gt;
&lt;BR /&gt;
NFD = 0&lt;BR /&gt;
&lt;BR /&gt;
While NFD &amp;lt; 5 Do&lt;BR /&gt;
&lt;BR /&gt;
	wid = scale_step&lt;BR /&gt;
	dep = min_scal&lt;BR /&gt;
	fill_type = gs_fill_type&lt;BR /&gt;
	fill_pen = Fill_pen_1&lt;BR /&gt;
&lt;BR /&gt;
		Gosub 10&lt;BR /&gt;
	Add2 0,-dep&lt;BR /&gt;
	fill_pen = Fill_pen_2&lt;BR /&gt;
		Gosub 10&lt;BR /&gt;
	Del 1&lt;BR /&gt;
&lt;BR /&gt;
	Add2 wid, 0&lt;BR /&gt;
	NFD = NFD+1&lt;BR /&gt;
	Mul2 1,-1&lt;BR /&gt;
Hotspot2 0,0&lt;BR /&gt;
&lt;BR /&gt;
EndWhile&lt;BR /&gt;
&lt;BR /&gt;
Del top&lt;BR /&gt;
&lt;BR /&gt;
If lab_txt = 1 Then&lt;BR /&gt;
	Add2 0, -dep*1.5&lt;BR /&gt;
	txt_pos = 1&lt;BR /&gt;
	txt_val =  "Scale 1:"+ str(Draw_scale, 3, 0)&lt;BR /&gt;
		Gosub 30&lt;BR /&gt;
EndIf&lt;BR /&gt;
Del top&lt;BR /&gt;
!*******************&lt;BR /&gt;
!Add distance values&lt;BR /&gt;
NFD = 0&lt;BR /&gt;
		Add2 0,dep&lt;BR /&gt;
While NFD &amp;lt;7 Do&lt;BR /&gt;
	txt_val = scale_step*NFD* txt_siz_mult&lt;BR /&gt;
	txt_pos = 8&lt;BR /&gt;
&lt;BR /&gt;
			Gosub 30&lt;BR /&gt;
	NFD = NFD+1&lt;BR /&gt;
		Add2 wid, 0&lt;BR /&gt;
EndWhile&lt;BR /&gt;
		Del Top&lt;BR /&gt;
End&lt;BR /&gt;
!*****************************************************************************&lt;BR /&gt;
10:&lt;BR /&gt;
!Fill&lt;BR /&gt;
	fill fill_type&lt;BR /&gt;
		&lt;BR /&gt;
		poly2_b 5,3,fill_pen, fill_pen,&lt;BR /&gt;
			0,0,1,&lt;BR /&gt;
			wid,0,1,&lt;BR /&gt;
			wid, dep,1,&lt;BR /&gt;
			0,dep,1,&lt;BR /&gt;
			0,0,-1&lt;BR /&gt;
&lt;BR /&gt;
		Hotline2 0, 0, wid, 0&lt;BR /&gt;
&lt;BR /&gt;
Return&lt;BR /&gt;
!*****************************************************************************&lt;BR /&gt;
30:     &lt;BR /&gt;
!Label text&lt;BR /&gt;
&lt;BR /&gt;
	pen txt_pen&lt;BR /&gt;
	&lt;BR /&gt;
	Define Style txt "Arial Western",txt_ht,txt_pos, 0&lt;BR /&gt;
	style txt&lt;BR /&gt;
&lt;BR /&gt;
		If V~ = 1 Then Mul2 -1,-1			!Correct text for mirrored object &lt;BR /&gt;
		TEXT2 0, 0, txt_val &lt;BR /&gt;
Return&lt;/FONT&gt;</description>
      <pubDate>Mon, 24 Mar 2014 11:14:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148395#M12475</guid>
      <dc:creator>Gary Lawes</dc:creator>
      <dc:date>2014-03-24T11:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148396#M12476</link>
      <description>Ooops! Ignore that last posting (with the script) as it is not the correct object.&lt;BR /&gt;
&lt;BR /&gt;
Sorry.</description>
      <pubDate>Mon, 24 Mar 2014 11:16:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148396#M12476</guid>
      <dc:creator>Gary Lawes</dc:creator>
      <dc:date>2014-03-24T11:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148397#M12477</link>
      <description>So this is the important bit. In the Master script -&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="blue"&gt;If Auto_scal = 1 Then &lt;BR /&gt;
	PARAMETERS Draw_scale = GLOB_SCALE&lt;BR /&gt;
	HIDEPARAMETER "Draw_scale"&lt;BR /&gt;
Else&lt;BR /&gt;
	Values "Draw_scale" 2, 5, 10, 20, 50, 100, 200, 500, 1250&lt;BR /&gt;
EndIf&lt;BR /&gt;
&lt;BR /&gt;
!Minor scale increments&lt;BR /&gt;
&lt;BR /&gt;
PARAMETERS scale_step = act_bar_wid*Draw_scale/10		!Width of main scale blocks&lt;BR /&gt;
&lt;BR /&gt;
min_scal = scale_step/5		!Width of small scale increments in first block&lt;BR /&gt;
&lt;BR /&gt;
If scale_step &amp;lt; 1 then txt_siz_mult = 1000 else txt_siz_mult = 1&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
I have put this video up on Youtube that shows the issue. When I change the view scale, the object remains unchanged until I open and close its dialogue box. This is the link -&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://www.youtube.com/watch?v=-78NuP0CnC0&amp;amp;feature=youtu.be" target="_blank"&gt;&lt;LINK_TEXT text="https://www.youtube.com/watch?v=-78NuP0 ... e=youtu.be"&gt;https://www.youtube.com/watch?v=-78NuP0CnC0&amp;amp;feature=youtu.be&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I hope that helps and thank you all for your input.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Mon, 24 Mar 2014 14:07:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148397#M12477</guid>
      <dc:creator>Gary Lawes</dc:creator>
      <dc:date>2014-03-24T14:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148398#M12478</link>
      <description>You will need to type ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#ff0009"&gt;Draw_scale  = GLOB_SCALE&lt;BR /&gt;
PARAMETERS Draw_scale = Draw_scale  &lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
Just setting the parameter does not actually set the variable value for use in the script - which is why you have to open the object so it can read the parameter value.&lt;BR /&gt;
&lt;BR /&gt;
You will need to do the same for the 'scale_step' parameter as well.&lt;BR /&gt;
Always set the parameter value first and then set the actual parameter.&lt;BR /&gt;
&lt;BR /&gt;
i.e.&lt;BR /&gt;
&lt;FONT color="#ff001b"&gt;scale_step = act_bar_wid*Draw_scale/10&lt;BR /&gt;
PARAMETERS scale_step = scale_step &lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 24 Mar 2014 14:56:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148398#M12478</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2014-03-24T14:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148399#M12479</link>
      <description>Brilliant thank you Barry. Works perfectly now.&lt;BR /&gt;
&lt;BR /&gt;
Much appreciated&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Mon, 24 Mar 2014 15:16:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148399#M12479</guid>
      <dc:creator>Gary Lawes</dc:creator>
      <dc:date>2014-03-24T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scale sensitivity not updating</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148400#M12480</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;Just setting the parameter does not actually set the variable value for use in the script - which is why you have to open the object so it can read the parameter value.&lt;/BLOCKQUOTE&gt;

Brilliant. I have just used this to capture the global North Direction into a Library Element parameter, so I can pick it up in a Schedule.</description>
      <pubDate>Tue, 20 May 2014 11:01:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Scale-sensitivity-not-updating/m-p/148400#M12480</guid>
      <dc:creator>stefan</dc:creator>
      <dc:date>2014-05-20T11:01:11Z</dc:date>
    </item>
  </channel>
</rss>

