<?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: Can I adjust a variable that reads from another variable in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Can-I-adjust-a-variable-that-reads-from-another-variable/m-p/297800#M5871</link>
    <description>Sounds like you'd need a toggle switch for each of the instances.&lt;BR /&gt;
&lt;BR /&gt;
So if you want A to define the width, that's situation 1. If you want other variables to determine A and this in turn defines the width, that's situation 2.&lt;BR /&gt;
&lt;BR /&gt;
That way the two instances shouldn't interfere or exclude eachother.</description>
    <pubDate>Wed, 19 Jul 2017 11:56:05 GMT</pubDate>
    <dc:creator>Erwin Edel</dc:creator>
    <dc:date>2017-07-19T11:56:05Z</dc:date>
    <item>
      <title>Can I adjust a variable that reads from another variable?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-I-adjust-a-variable-that-reads-from-another-variable/m-p/297799#M5870</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I need to edit the variable A but still be able to set it up so that when the object changes it 'A' will revert back to a set value. I can only manage to get 'A' to read from another parameter that I have made but this does not allow 'A' to be edited. Is there a way around this? In my case there are 2 variations of the objects where the width changes so I need A to reset to a default.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Jul 2017 11:34:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-I-adjust-a-variable-that-reads-from-another-variable/m-p/297799#M5870</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-07-19T11:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I adjust a variable that reads from another variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-I-adjust-a-variable-that-reads-from-another-variable/m-p/297800#M5871</link>
      <description>Sounds like you'd need a toggle switch for each of the instances.&lt;BR /&gt;
&lt;BR /&gt;
So if you want A to define the width, that's situation 1. If you want other variables to determine A and this in turn defines the width, that's situation 2.&lt;BR /&gt;
&lt;BR /&gt;
That way the two instances shouldn't interfere or exclude eachother.</description>
      <pubDate>Wed, 19 Jul 2017 11:56:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-I-adjust-a-variable-that-reads-from-another-variable/m-p/297800#M5871</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2017-07-19T11:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I adjust a variable that reads from another variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-I-adjust-a-variable-that-reads-from-another-variable/m-p/297801#M5872</link>
      <description>&lt;BLOCKQUOTE&gt;Erwin wrote:&lt;BR /&gt;Sounds like you'd need a toggle switch for each of the instances.&lt;BR /&gt;
&lt;BR /&gt;
So if you want A to define the width, that's situation 1. If you want other variables to determine A and this in turn defines the width, that's situation 2.&lt;BR /&gt;
&lt;BR /&gt;
That way the two instances shouldn't interfere or exclude eachother.&lt;/BLOCKQUOTE&gt; The issue comes when I change one of the widths. Because it scales with B, when I change the width of one then change to a different variation, either the B or one of the width variables will stay the same and not scale correctly until a value is re-entered in. Here is a part of the master script &lt;PRE&gt;if (show_text) then
	if GLOB_MODPAR_NAME = "text_width_2" then 
		 B=text_width_2*(2/3)
	  endif 
	
	  if GLOB_MODPAR_NAME = "B" then 
		 text_width_2=B/(2/3)
	  endif 
endif

if (show_text = 0) then
	if GLOB_MODPAR_NAME = "text_width" then 
    	B=text_width/0.88 
  	endif 

  	if GLOB_MODPAR_NAME = "B" then 
     	text_width=B*0.88
  	endif 
endif

PARAMETERS A=A, B=B

if (show_text = 0) then
	A = text_width
endif

if (show_text) then
	A = text_width_2
endif&lt;/PRE&gt;

and here is a part of the 2D mul2 calculation &lt;PRE&gt; if (show_text) then 
	mul2 text_width_2/0.075, B/0.05
else 
	mul2 text_width/0.0441, B/0.05
endif&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2017 12:13:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-I-adjust-a-variable-that-reads-from-another-variable/m-p/297801#M5872</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-07-19T12:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can I adjust a variable that reads from another variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-I-adjust-a-variable-that-reads-from-another-variable/m-p/297802#M5873</link>
      <description>Maybe split things up into callable subroutines and run them in order that is needed to keep the variables scaled as needed?</description>
      <pubDate>Wed, 19 Jul 2017 14:20:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-I-adjust-a-variable-that-reads-from-another-variable/m-p/297802#M5873</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2017-07-19T14:20:57Z</dc:date>
    </item>
  </channel>
</rss>

