<?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: automatic A and B values in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/automatic-A-and-B-values/m-p/232075#M975</link>
    <description>As well as changing the fragment for each different layer, you will also need ti rest the A &amp;amp; B values.&lt;BR /&gt;
&lt;BR /&gt;
Maybe something like …&lt;BR /&gt;
&lt;BR /&gt;
in the 2D script...&lt;BR /&gt;

&lt;PRE&gt;IF layer1=1 THEN
FRAGMENT2 1,0
ENDIF

IF layer1=21 THEN
FRAGMENT2 2,0
ENDIF&lt;/PRE&gt;

In the parameter script …&lt;BR /&gt;

&lt;PRE&gt;IF layer1=1 THEN
A= 0.100
B=0.-200
PARAMETERS A=A, B=B
ENDIF

IF layer1=21 THEN
A= 0.300
B=0.-800
PARAMETERS A=A, B=B
ENDIF&lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Sun, 29 Mar 2020 08:02:10 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2020-03-29T08:02:10Z</dc:date>
    <item>
      <title>automatic A and B values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/automatic-A-and-B-values/m-p/232074#M974</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hey guys,&lt;BR /&gt;
&lt;BR /&gt;
I draw a lot in the 2d symbol putting things in different layers and using code like&lt;BR /&gt;
&lt;BR /&gt;
IF layer1=1 THEN&lt;BR /&gt;
FRAGMENT2 1,0&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
for every layer so I can turn things on and off.&lt;BR /&gt;
&lt;BR /&gt;
The problem is the values of A and B don’t adjust automatically. I activated the “FIT size to 2D symbol” and the “create a bounding box”(compatibility options).&lt;BR /&gt;
&lt;BR /&gt;
in layer 1 there is a box of 100 X 200&lt;BR /&gt;
in layer 2 there is a box of 300 X 800&lt;BR /&gt;
&lt;BR /&gt;
Archicad makes a perfect bounding box depending on the layer but the values of A and B are entire layers limits so they end up being always A=300 B=800.&lt;BR /&gt;
&lt;BR /&gt;
Any code that i can make the A and B values= bounding box?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance&lt;BR /&gt;
Luis&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 28 Mar 2020 20:24:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/automatic-A-and-B-values/m-p/232074#M974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-28T20:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: automatic A and B values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/automatic-A-and-B-values/m-p/232075#M975</link>
      <description>As well as changing the fragment for each different layer, you will also need ti rest the A &amp;amp; B values.&lt;BR /&gt;
&lt;BR /&gt;
Maybe something like …&lt;BR /&gt;
&lt;BR /&gt;
in the 2D script...&lt;BR /&gt;

&lt;PRE&gt;IF layer1=1 THEN
FRAGMENT2 1,0
ENDIF

IF layer1=21 THEN
FRAGMENT2 2,0
ENDIF&lt;/PRE&gt;

In the parameter script …&lt;BR /&gt;

&lt;PRE&gt;IF layer1=1 THEN
A= 0.100
B=0.-200
PARAMETERS A=A, B=B
ENDIF

IF layer1=21 THEN
A= 0.300
B=0.-800
PARAMETERS A=A, B=B
ENDIF&lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Sun, 29 Mar 2020 08:02:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/automatic-A-and-B-values/m-p/232075#M975</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2020-03-29T08:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: automatic A and B values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/automatic-A-and-B-values/m-p/232076#M976</link>
      <description>Hi Barry,&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot for replying.&lt;BR /&gt;
&lt;BR /&gt;
Ok, I though there was a way the program would do it automatically. ok then i will do it as you say.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Luis</description>
      <pubDate>Wed, 01 Apr 2020 13:01:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/automatic-A-and-B-values/m-p/232076#M976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-01T13:01:53Z</dc:date>
    </item>
  </channel>
</rss>

