<?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: object sizes A and B and options in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291143#M4010</link>
    <description>&lt;BLOCKQUOTE&gt;Dave wrote:&lt;BR /&gt;the scripting (master script) of the DET_Stud object in the standard library. &lt;/BLOCKQUOTE&gt;

Which library is this in? I cannot find it in the AC21 AUS default library.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
    <pubDate>Wed, 16 May 2018 05:58:04 GMT</pubDate>
    <dc:creator>Lingwisyer</dc:creator>
    <dc:date>2018-05-16T05:58:04Z</dc:date>
    <item>
      <title>object sizes A and B and options</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291141#M4008</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
&lt;BR /&gt;
Sometimes i do objects by coding but some objects are just easier to draw w fills and then 'save selection as object.'&lt;BR /&gt;
&lt;BR /&gt;
Currently I am doing it for 1 object with many variants of it (w different sizes or shapes)&lt;BR /&gt;
&lt;BR /&gt;
My questions are the following :&lt;BR /&gt;
&lt;BR /&gt;
FIRST&lt;BR /&gt;
&lt;BR /&gt;
Because am combining in one object many versions the sizes of A and B are always of the first option even if the second option has different sizes.&lt;BR /&gt;
&lt;BR /&gt;
I went around this by inserting the code in the 'Parameter' tab:&lt;BR /&gt;
&lt;BR /&gt;
IF optx='135x220' THEN&lt;BR /&gt;
&lt;BR /&gt;
PARAMETERS A=0.220, B=0.135&lt;BR /&gt;
&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF optx='135x240' THEN&lt;BR /&gt;
&lt;BR /&gt;
PARAMETERS A=0.240, B=0.135&lt;BR /&gt;
&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
But i have to do this for every single option. Is there a code i can use for archicad to take A and B automatically from the limts of the object?&lt;BR /&gt;
&lt;BR /&gt;
SECOND&lt;BR /&gt;
&lt;BR /&gt;
I plan on using this object in different projects (saving it in a container file)  and keep adding versions with (with on off buttons or values) of it as time go on (updating the container file everytime) . Do you see any problem with this method? will my previous placed objects be fine or will they change?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I hope the text is clear.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance&lt;BR /&gt;
&lt;BR /&gt;
Luis&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 May 2018 11:25:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291141#M4008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-15T11:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: object sizes A and B and options</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291142#M4009</link>
      <description>Luis&lt;BR /&gt;
&lt;BR /&gt;
You need to split the 135x220 in to useable parameters.  The easiest way to see this is to&lt;BR /&gt;
look at the scripting (master script) of the DET_Stud object in the standard library.  It is&lt;BR /&gt;
a little tricky to figure out at first, but it will get you what you are after.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Tue, 15 May 2018 14:27:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291142#M4009</guid>
      <dc:creator>Dave Seabury</dc:creator>
      <dc:date>2018-05-15T14:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: object sizes A and B and options</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291143#M4010</link>
      <description>&lt;BLOCKQUOTE&gt;Dave wrote:&lt;BR /&gt;the scripting (master script) of the DET_Stud object in the standard library. &lt;/BLOCKQUOTE&gt;

Which library is this in? I cannot find it in the AC21 AUS default library.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Wed, 16 May 2018 05:58:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291143#M4010</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2018-05-16T05:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: object sizes A and B and options</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291144#M4011</link>
      <description>You will want to do something like this in the master or parameter script.&lt;BR /&gt;

&lt;PRE&gt;n=SPLIT(optx, "%nx%n", width, string, height)

A = width/1000
B = height/1000

PARAMETERS A = A
PARAMETERS B = B&lt;/PRE&gt;

It is best to set the value of your parameter as well as set the actual parameter.&lt;BR /&gt;
i.e.&lt;BR /&gt;
A = width/1000&lt;BR /&gt;
PARAMETERS A = A&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 16 May 2018 06:45:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291144#M4011</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-05-16T06:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: object sizes A and B and options</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291145#M4012</link>
      <description>&lt;BLOCKQUOTE&gt;Luiscardoso wrote:&lt;BR /&gt;
I plan on using this object in different projects (saving it in a container file)  and keep adding versions with (with on off buttons or values) of it as time go on (updating the container file every time) . Do you see any problem with this method? will my previous placed objects be fine or will they change?
&lt;/BLOCKQUOTE&gt;

It depends on what you are changing as it can affect already placed objects if you change the way the existing scripts work.&lt;BR /&gt;
But if you are just adding new features and keeping the existing ones as they are, generally you should be fine.&lt;BR /&gt;
Just make sure you 'Save' replacing the original object and do not 'Save As' with the same name as this will create a new object with a new GUID.&lt;BR /&gt;
Existing objects will not be updated if you 'Save As'.&lt;BR /&gt;
&lt;BR /&gt;
You may find if you are always updating the object that a container file can be a bit of a pain to extract and create all of the time.&lt;BR /&gt;
The objects do not need to be in an LCF.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 16 May 2018 06:52:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291145#M4012</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-05-16T06:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: object sizes A and B and options</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291146#M4013</link>
      <description>Found &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?t=35919" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?t=35919" target="_blank"&gt;&lt;/A&gt;&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?t=35919" target="_blank"&gt;&lt;E&gt;&lt;/E&gt;&lt;/A&gt; thread which seems to talk about the same thing. Breaking a string into parts to use as dimensions.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.&lt;BR /&gt;
&lt;BR /&gt;
ps. Woo! 50 line reduction!&lt;/S&gt;</description>
      <pubDate>Wed, 16 May 2018 06:53:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291146#M4013</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2018-05-16T06:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: object sizes A and B and options</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291147#M4014</link>
      <description>thanks a lot for all the answers guys. &lt;BR /&gt;
&lt;BR /&gt;
Luis</description>
      <pubDate>Thu, 17 May 2018 07:52:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/object-sizes-A-and-B-and-options/m-p/291147#M4014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-17T07:52:26Z</dc:date>
    </item>
  </channel>
</rss>

