<?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: Layers 1..16 in GDL 2D preview: what for? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231289#M6771</link>
    <description>The 16 layers are very handy for creating AutoCAD-like drafting blocks with some built-in smarts.&lt;BR /&gt;
&lt;BR /&gt;
Try this: create a new object based on Drawing Symbol subtype (basically a GDL object that lacks 3D script) and then&lt;BR /&gt;
&lt;BR /&gt;
1) in the Parameters, create 16 new parameters called &lt;B&gt;show1&lt;/B&gt;, &lt;B&gt;show2&lt;/B&gt;, ..., &lt;B&gt;show16&lt;/B&gt;, each one a Boolean type which means it's an on/off switch.&lt;BR /&gt;
&lt;BR /&gt;
2) in the 2D script crate the following 16 lines:
&lt;PRE&gt;IF show1 THEN FRAGMENT2 1, 0
IF show2 THEN FRAGMENT2 2, 0
(...)
IF show16 THEN FRAGMENT2 16, 0&lt;/PRE&gt;

You can draw whatever you want on the 16 "internal" layers and just turn on/off what you don't need. Very handy for details.</description>
    <pubDate>Wed, 24 May 2017 18:51:28 GMT</pubDate>
    <dc:creator>matjashka</dc:creator>
    <dc:date>2017-05-24T18:51:28Z</dc:date>
    <item>
      <title>Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231275#M6757</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi,&lt;BR /&gt;
there are layers 1..16 in GDL 2D preview, but I cannot use them at all and seemingly the docs about them is quite "compact".&lt;BR /&gt;
&lt;BR /&gt;
At first it mentions that you can call the separate layers as macros ("A rétegek különösen hasznosak a jelkép részleteinek csoportosítására és ismételt felhasználására (ilyenkor mindegyik réteg makróként viselkedik). Rajzoljon egy ábrát a 2D-s leírás-ablakban a rendelkezésre álló grafikus eszközökkel, majd hivatkozzon erre az ábrára a rétegszámmal a GDL 2D-s leírásban.") &lt;BR /&gt;
&lt;BR /&gt;
I tried to use it like 
&lt;PRE&gt;call "1"&lt;/PRE&gt;
or something but id didn't work.&lt;BR /&gt;
&lt;BR /&gt;
The GDL Reference Guide doesn't seem to know about it.&lt;BR /&gt;
&lt;BR /&gt;
Is it work, is there a material about it?&lt;BR /&gt;
&lt;BR /&gt;
My goal is to have a GDL object that has different visibility on the containing story and the above stories (but to achieve it with only by drawing and not by coding much). Is it possible? &lt;BR /&gt;
&lt;BR /&gt;
Thx.&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Sep 2016 22:33:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231275#M6757</guid>
      <dc:creator>Sam Karli</dc:creator>
      <dc:date>2016-09-20T22:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231276#M6758</link>
      <description>You don't use "CALL" for the layers like you would a macro.&lt;BR /&gt;
You want the FRAGMENT2 command where the 'fragment_index' is the layer number.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 21 Sep 2016 01:40:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231276#M6758</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2016-09-21T01:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231277#M6759</link>
      <description>You may find this page and the rest of the site useful...&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/gdl-docs/gdl-guide/chapter-5-2d-shapes/binary-2d/" target="_blank"&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/gdl-docs/gdl- ... binary-2d/"&gt;http://gdl.graphisoft.com/gdl-docs/gdl-guide/chapter-5-2d-shapes/binary-2d/&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Wed, 21 Sep 2016 09:27:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231277#M6759</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2016-09-21T09:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231278#M6760</link>
      <description>Thanks for the answers, these solved the problem.&lt;BR /&gt;
&lt;BR /&gt;
One more question:&lt;BR /&gt;
I control the visibility of the object (a staircase) through GLOB_CSTORY_ELEV and GLOB_HSTORY_ELEV variables in order to show it on some storys (since settings allow only current and current + 1; I would need up to current+2 stories).&lt;BR /&gt;
&lt;BR /&gt;
Is there a solution not using elevations (that can be affected if story heights change) bur stories?</description>
      <pubDate>Sun, 25 Sep 2016 15:25:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231278#M6760</guid>
      <dc:creator>Sam Karli</dc:creator>
      <dc:date>2016-09-25T15:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231279#M6761</link>
      <description>Where can i find the layers to use with Fragment2 ? I am on version 20 and i dont see those 16 buttons in the GDL editor...</description>
      <pubDate>Tue, 16 May 2017 19:42:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231279#M6761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T19:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231280#M6762</link>
      <description>If you open the 2D Symbol Window in the Library Editor, that is where you can draw the various FRAGMENTS of the GDL Object's 2D. You can use the Fill, Line and Arc/Circle Tools. When you select any of these Tools you will see that the Layer pop-up in the Info Box has these "Layer" 1 to 16. These are the FRAGMENTS you are looking for. Those Fills, Lines and Arcs/Circles can be placed on various FRAGMENTS and then you can use the FRAGMENT2 command in the 2D Script to decide which FRAGMENTS to display and how.</description>
      <pubDate>Tue, 16 May 2017 23:19:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231280#M6762</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2017-05-16T23:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231281#M6763</link>
      <description>Also you the layer dialogue (CTRL+L) to turn those layers on or off.&lt;BR /&gt;
&lt;BR /&gt;
There used to be buttons to turn the layers on/off but in newer versions they are gone and you must use CTRL+L.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 17 May 2017 03:01:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231281#M6763</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-05-17T03:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231282#M6764</link>
      <description>Thanks! I didn`t use this feature before but i am trying to learn the bascis of GDL object making. Where is the origin point/insertion point of the 2D Symbol? Is it the small X dot?</description>
      <pubDate>Wed, 17 May 2017 07:54:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231282#M6764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-17T07:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231283#M6765</link>
      <description>&lt;BLOCKQUOTE&gt;Constantin wrote:&lt;BR /&gt;Thanks! I didn`t use this feature before but i am trying to learn the bascis of GDL object making. Where is the origin point/insertion point of the 2D Symbol? Is it the small X dot?&lt;/BLOCKQUOTE&gt;

Yes that is the 0,0 co-ordinate.&lt;BR /&gt;
You only need to draw in the fragment layers if you do not want to create code in the 2D script.&lt;BR /&gt;
&lt;BR /&gt;
You can also minimise the 2D script window and the 2D symbol window so you can see them side by side.&lt;BR /&gt;
Then you can select and drag what you have drawn in the 2D symbol window across to the 2D script window and it will automatically create the code for you.&lt;BR /&gt;
Now you can safely delete what is in the 2D symbol window because you have the script for it.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 17 May 2017 08:10:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231283#M6765</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-05-17T08:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231284#M6766</link>
      <description>I tried to copy paste and it tells me there is nothing on the clipboard.&lt;BR /&gt;
By the way, is it possible to generate a 3D script in the same way?&lt;BR /&gt;
&lt;BR /&gt;
Edit&lt;BR /&gt;
I also tried to select and drag it but couldn`t get a code&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/12416i3E437F7F0828CBBE/image-size/large?v=v2&amp;amp;px=999" border="0" alt="copy_paste_2d.jpg" title="copy_paste_2d.jpg" /&gt;</description>
      <pubDate>Wed, 17 May 2017 08:36:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231284#M6766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-17T08:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231285#M6767</link>
      <description>Ok I got it working after a few trials &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;</description>
      <pubDate>Wed, 17 May 2017 08:47:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231285#M6767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-17T08:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231286#M6768</link>
      <description>I should have said when you drag don't let go of the left mouse button.&lt;BR /&gt;
You must hold it as you drag from one window to the other.&lt;BR /&gt;
The cursor will change to an arrow with a box under if it is gong to work.&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately no you can't do it with 3D elements as there is no 3D symbol window where you can construct 3D elements - that would be nice though.&lt;BR /&gt;
&lt;BR /&gt;
The 2D view and 3D view windows are simply views of what you have already scripted in the 2D &amp;amp; 3D scripts.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 17 May 2017 09:26:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231286#M6768</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-05-17T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231287#M6769</link>
      <description>&lt;BLOCKQUOTE&gt;Constantin wrote:&lt;BR /&gt;By the way, is it possible to generate a 3D script in the same way?&lt;/BLOCKQUOTE&gt;
You cannot do it within the GDL editor, but you can drag elements from the main ArchiCAD 2D (Plan) window into the GDL 3D Script window and the code will be automatically generated. Use the Project Origin in the 2D Window in the same location as the GDL origin.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Wed, 17 May 2017 11:31:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231287#M6769</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2017-05-17T11:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231288#M6770</link>
      <description>&lt;BLOCKQUOTE&gt;David wrote:&lt;BR /&gt;You cannot do it within the GDL editor, but you can drag elements from the main ArchiCAD 2D (Plan) window into the GDL 3D Script window and the code will be automatically generated.&lt;/BLOCKQUOTE&gt;

I always forget this - but I am usually happy scripting from scratch.&lt;BR /&gt;
I do use it though to create an automatic CALL statement.&lt;BR /&gt;
Place the object as you want it in the 2D Archicad window and drag it into the 2D script window and then you have a Call with all the parameters listed.&lt;BR /&gt;
Edit and delete the parameters as needed - it can save a lot of time and cutting &amp;amp; pasting when you have a lot of parameters involved.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 18 May 2017 01:11:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231288#M6770</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-05-18T01:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Layers 1..16 in GDL 2D preview: what for?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231289#M6771</link>
      <description>The 16 layers are very handy for creating AutoCAD-like drafting blocks with some built-in smarts.&lt;BR /&gt;
&lt;BR /&gt;
Try this: create a new object based on Drawing Symbol subtype (basically a GDL object that lacks 3D script) and then&lt;BR /&gt;
&lt;BR /&gt;
1) in the Parameters, create 16 new parameters called &lt;B&gt;show1&lt;/B&gt;, &lt;B&gt;show2&lt;/B&gt;, ..., &lt;B&gt;show16&lt;/B&gt;, each one a Boolean type which means it's an on/off switch.&lt;BR /&gt;
&lt;BR /&gt;
2) in the 2D script crate the following 16 lines:
&lt;PRE&gt;IF show1 THEN FRAGMENT2 1, 0
IF show2 THEN FRAGMENT2 2, 0
(...)
IF show16 THEN FRAGMENT2 16, 0&lt;/PRE&gt;

You can draw whatever you want on the 16 "internal" layers and just turn on/off what you don't need. Very handy for details.</description>
      <pubDate>Wed, 24 May 2017 18:51:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Layers-1-16-in-GDL-2D-preview-what-for/m-p/231289#M6771</guid>
      <dc:creator>matjashka</dc:creator>
      <dc:date>2017-05-24T18:51:28Z</dc:date>
    </item>
  </channel>
</rss>

