<?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: Custom 2D Object in Modeling</title>
    <link>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333516#M158076</link>
    <description>&lt;P&gt;Super simple is encouraging,..&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2022 14:18:47 GMT</pubDate>
    <dc:creator>Nicholas Jones</dc:creator>
    <dc:date>2022-03-25T14:18:47Z</dc:date>
    <item>
      <title>Custom 2D Object</title>
      <link>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333502#M158072</link>
      <description>&lt;P&gt;Good day all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has occurred to me that being able to combine 2D symbols has a ton of useful applications, right now&amp;nbsp;I have a set of 2D symbols for various sizes of bike rack from a manufacturer,&amp;nbsp;I would like to create a single object with an option set that will allow me to change the symbol on the fly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to the 2D car or tree object included in the inbuilt libraries. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have nosed about the car object and can see the general idea for how it is achieved but I am hoping there might be a way to do it that won't require me to get that deep into GDL just yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, a starting point will be much appreciated, maybe it is time....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/20455i3DF026A2A66DFD2A/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Screenshot 2022-03-25 at 12.12.49.png" title="Screenshot 2022-03-25 at 12.12.49.png" /&gt;</description>
      <pubDate>Fri, 25 Mar 2022 12:32:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333502#M158072</guid>
      <dc:creator>Nicholas Jones</dc:creator>
      <dc:date>2022-03-25T12:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom 2D Object</title>
      <link>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333510#M158073</link>
      <description>&lt;P&gt;The gdl for something like this is super simple.&lt;/P&gt;&lt;P&gt;You need values for a parameter to specify which object you want, then in 2d if parameter equals the given name call the object&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 13:25:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333510#M158073</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2022-03-25T13:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom 2D Object</title>
      <link>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333516#M158076</link>
      <description>&lt;P&gt;Super simple is encouraging,..&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 14:18:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333516#M158076</guid>
      <dc:creator>Nicholas Jones</dc:creator>
      <dc:date>2022-03-25T14:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom 2D Object</title>
      <link>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333559#M158092</link>
      <description>&lt;P&gt;Hi Nicholas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I bookmarked this page awhile ago, but haven't gotten around to trying it yet. I hope it helps! All credit goes to Patrick May!&lt;/P&gt;&lt;P&gt;&lt;A href="https://sites.google.com/site/noscriptgdl/some-scripting-required/creating-multiple-2d-3d-views" target="_blank" rel="noopener"&gt;https://sites.google.com/site/noscriptgdl/some-scripting-required/creating-multiple-2d-3d-views&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 23:00:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333559#M158092</guid>
      <dc:creator>Jeff Griffin</dc:creator>
      <dc:date>2022-03-25T23:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom 2D Object</title>
      <link>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333574#M158094</link>
      <description>&lt;P&gt;There are two simple ways you can do this with super basic GDL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; Place your 2d linework onto a separate layer in the 2D Symbol window.&amp;nbsp; Have a parameter with different options (Refer the steps 1&amp;amp;2 in&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/13687"&gt;@Jeff Griffin&lt;/a&gt;&amp;nbsp;link). Then a simple if statement for each option to call a FRAGMENT2 for the relevant 2D symbol layer.&amp;nbsp; &amp;nbsp; Something along these lines in your master code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF Plan_Symbol_Det = "Bikerack" THEN FRAGMENT2 1,0  !Shows only 2D Symbol Layer 1
IF Plan_Symbol_Det = "Tree" THEN FRAGMENT2 2,0      !Shows only 2D Symbol Layer 2&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gdl.graphisoft.com/reference-guide/binary-2d" target="_blank" rel="noopener"&gt;Refer: https://gdl.graphisoft.com/reference-guide/binary-2d&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Get's a bit messy when you want to edit the linework of a symbol, but it's easy to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt;&amp;nbsp;(As &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/5414"&gt;@SenecaDesignLLC&lt;/a&gt;&amp;nbsp;suggested) Create an object for each 2D symbol (use the Save as Object.. function).&amp;nbsp; Make each of these objects un-placeable.&amp;nbsp;&amp;nbsp;Have a parameter with the different options&amp;nbsp;(Refer the steps 1&amp;amp;2 in&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/13687"&gt;@Jeff Griffin&lt;/a&gt;&amp;nbsp;link).&amp;nbsp; Then a simple if statement for each option to perform a CALL function to the name of each object.&amp;nbsp;&amp;nbsp;Something along these lines in your master code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF Plan_Symbol_Det = "Bikerack" THEN CALL "Bikerack_Symbol" PARAMETERS ALL
IF Plan_Symbol_Det = "Tree" THEN CALL "Tree_Symbol" PARAMETERS ALL​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gdl.graphisoft.com/reference-guide/macro-objects" target="_blank" rel="noopener"&gt;Refer:https://gdl.graphisoft.com/reference-guide/macro-objects&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This option is more difficult to modify the linework of each symbol as Archicad will convert all your linework into hundreds of lines of GDL when you use (Save as Object.. function), but keeps symbol better organised.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tip - when you draw your symbol linework, do it at 0,0 origin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 01:43:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333574#M158094</guid>
      <dc:creator>scottjm</dc:creator>
      <dc:date>2022-03-27T01:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom 2D Object</title>
      <link>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333605#M158096</link>
      <description>&lt;P&gt;I think this should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF Plan_Symbol_Det = "Tree" THEN FRAGMENT2 &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;,0 !Shows only 2D Symbol Layer 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the GDL Reference Guide:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;FRAGMENT2 &lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;fragment_index&lt;/FONT&gt;, use_current_attributes_flag&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 12:24:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333605#M158096</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2022-03-26T12:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom 2D Object</title>
      <link>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333647#M158113</link>
      <description>&lt;P&gt;I noticed that, too.&lt;/P&gt;
&lt;P&gt;I have now corrected the script in scottjm's post.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 01:44:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333647#M158113</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2022-03-27T01:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom 2D Object</title>
      <link>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333650#M158115</link>
      <description>&lt;P&gt;Whoops my bad. Was a bit too quick with my copy/paste. Thanks for fixing that&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/4972"&gt;@Laszlo Nagy &lt;/a&gt;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 02:34:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/333650#M158115</guid>
      <dc:creator>scottjm</dc:creator>
      <dc:date>2022-03-27T02:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom 2D Object</title>
      <link>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/335255#M158449</link>
      <description>&lt;P&gt;Awesome Scott !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for this I will give it a try.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 15:11:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/335255#M158449</guid>
      <dc:creator>Nicholas Jones</dc:creator>
      <dc:date>2022-04-11T15:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom 2D Object</title>
      <link>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/335256#M158450</link>
      <description>&lt;P&gt;Many thanks! this was just the sort of thing I was after.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 15:12:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Custom-2D-Object/m-p/335256#M158450</guid>
      <dc:creator>Nicholas Jones</dc:creator>
      <dc:date>2022-04-11T15:12:23Z</dc:date>
    </item>
  </channel>
</rss>

