<?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: Creating a Custom GDL Object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207522#M21104</link>
    <description>Sounds great, unfortunately looking at the GDL information it makes no sense to me as I'm a complete novice at GDL script</description>
    <pubDate>Mon, 22 Mar 2010 15:17:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-03-22T15:17:47Z</dc:date>
    <item>
      <title>Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207509#M21091</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Im not sure I made myself clear before. &lt;BR /&gt;
&lt;BR /&gt;
I have created a 3D model of a 13amp double socket and saved it as an object. I have then opened the object up and created a 2D symbol for it. Which all works great. The only problem I have is when we have two sockets in the same place, one above the other. In elevation its fine but on plan there are two symbols overlaying each other (which would cause problems for the electrician). Is there a way that I can change the 2D script to give me the option of offsetting the 2D symbol from the 3d model? That way the 3D model stays in the correct place and the plan shows two symbols in different positions. &lt;BR /&gt;
&lt;BR /&gt;
Many thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Mar 2010 10:17:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207509#M21091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-19T10:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207510#M21092</link>
      <description>kmccrthy:&lt;BR /&gt;
&lt;BR /&gt;
You would need to add some additional code to the 2D Script to move the 2D Symbol, this will not change the location of the model in the 3D Script. The command to move the local origin in the 2D Script is &lt;FONT color="blue"&gt;Add2&lt;/FONT&gt;, you can find basic information in the GDL Reference Guide pdf file included with ArchiCAD. If you drew the symbol in the 2D Symbol window, then you will need to use the &lt;FONT color="blue"&gt;Fragment2&lt;/FONT&gt; command to call it into the 2D Script. You will also need to add some sort of &lt;FONT color="blue"&gt;IF/THEN&lt;/FONT&gt; statements along with an additional parameter so the user has the option of moving the symbol, possibly with editable hotspots.&lt;BR /&gt;
&lt;BR /&gt;
You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Fri, 19 Mar 2010 12:06:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207510#M21092</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2010-03-19T12:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207511#M21093</link>
      <description>I drew the symbol in the 2D Symbol Window. But I'm a complete novice with script. I wouldn't know where to begin. Where would I add the Fragment2 script? I've attached a screen shot of what I have there already. Where do I start?&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/7026iF38ABC7DBDB95A34/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Screen shot 2010-03-19 at 12.31.08.png" title="Screen shot 2010-03-19 at 12.31.08.png" /&gt;</description>
      <pubDate>Fri, 19 Mar 2010 12:28:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207511#M21093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-19T12:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207512#M21094</link>
      <description>You could try the Electrigon part, available here &lt;A href="http://www.archicad.ca/" target="_blank"&gt;www.archicad.ca/&lt;/A&gt;. This part has the ability to separate the 2D versus 3D positioning. It certainly helps with stacked outlets as well as with 2D clarity. I am not sure if it can be configured to meet your 2D display needs or not but it s fairly flexible so it can likely work.</description>
      <pubDate>Fri, 19 Mar 2010 13:37:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207512#M21094</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2010-03-19T13:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207513#M21095</link>
      <description>Thanks, I downloaded it but it doesn't seem to do exactly what I want</description>
      <pubDate>Fri, 19 Mar 2010 14:35:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207513#M21095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-19T14:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207514#M21096</link>
      <description>Do you have a picture of what you want?</description>
      <pubDate>Sat, 20 Mar 2010 02:14:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207514#M21096</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2010-03-20T02:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207515#M21097</link>
      <description>Hi kmccrthy,&lt;BR /&gt;
&lt;BR /&gt;
In GDL it is very hard to make two objects (or two instances of an object) talks to each other. &lt;BR /&gt;
There are two ways you do your two (13amp double socket) will not overlap each other.&lt;BR /&gt;
1. Use the API (apx) to check all 13amp double sockets position + offset and if two elements having same value move one of them.&lt;BR /&gt;
2. If you don’t want to use API then you have to use the hard way. Write the text file of three global variables (SYMB_POS_X, SYMB_POS_Y, SYMB_POS_Z) by using OPEN, OUTPUT, CLOSE commands. If the other object try to insert at same location then offset the insertion position and save the new position by using OPEN, INPUT, OUTPUT and CLOSE commands. ( this is the complicated  process and is slow.)</description>
      <pubDate>Mon, 22 Mar 2010 01:52:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207515#M21097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-22T01:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207516#M21098</link>
      <description>I've attached a PDF of what I'm after</description>
      <pubDate>Mon, 22 Mar 2010 10:10:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207516#M21098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-22T10:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207517#M21099</link>
      <description>&lt;BLOCKQUOTE&gt;kmccrthy wrote:&lt;BR /&gt;I've attached a PDF of what I'm after&lt;/BLOCKQUOTE&gt;
How would it be if you allow your object to optionally represent more than one socket? You could have a parameter for the number of sockets, and a parameter array for the heights they are placed at. Your 3D script would simply redraw the same object at each required height, and the 2D script could offset each image it draws so they are clearly visible.</description>
      <pubDate>Mon, 22 Mar 2010 11:22:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207517#M21099</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2010-03-22T11:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207518#M21100</link>
      <description>I think it would be great to know how its done, however I would then come across another problem. There will be a situation when we have two different types of sockets one above another.</description>
      <pubDate>Mon, 22 Mar 2010 11:36:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207518#M21100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-22T11:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207519#M21101</link>
      <description>&lt;BLOCKQUOTE&gt;kmccrthy wrote:&lt;BR /&gt;I think it would be great to know how its done, however I would then come across another problem. There will be a situation when we have two different types of sockets one above another.&lt;/BLOCKQUOTE&gt;
Could you make the socket type a parameter too? Or is that starting to get too complicated?&lt;BR /&gt;
&lt;BR /&gt;
If so, perhaps you could make the 2D symbol draggable. Add parameters for an x/y offset and add a draggable hotspot linked to these parameters. Then, if two sockets are aligned, you could drag the 2D symbol of one of the sockets away (which would leave the 3D symbol in the correct position).</description>
      <pubDate>Mon, 22 Mar 2010 11:43:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207519#M21101</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2010-03-22T11:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207520#M21102</link>
      <description>that would be fantastic, i could then have all the socket incorporated into one object. Trouble is hard would it be for to make something like that?</description>
      <pubDate>Mon, 22 Mar 2010 11:48:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207520#M21102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-22T11:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207521#M21103</link>
      <description>&lt;BLOCKQUOTE&gt;kmccrthy wrote:&lt;BR /&gt;that would be fantastic, i could then have all the socket incorporated into one object. Trouble is hard would it be for to make something like that?&lt;/BLOCKQUOTE&gt;
That depends on your GDL scripting experience. I think if it was going to be easy, you would already know how to do it.&lt;BR /&gt;
&lt;BR /&gt;
I suggest adding offset parameters, and display a stretchable hotspot to allow the 2D image to be shifted from the actual position. Take a look at the GDL command &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;hotspot2&lt;E&gt;&lt;/E&gt; and, in particular, the section titled &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Graphical Editing&lt;E&gt;&lt;/E&gt;. Note &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Example 4: combined length type editing with 2 parameters&lt;E&gt;&lt;/E&gt;.&lt;BR /&gt;
&lt;BR /&gt;
This would enable you to pick up the 2D symbol by a smart hotspot and offset it to a more visible position (leaving the 3D symbol in the correct place).</description>
      <pubDate>Mon, 22 Mar 2010 12:47:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207521#M21103</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2010-03-22T12:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Custom GDL Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207522#M21104</link>
      <description>Sounds great, unfortunately looking at the GDL information it makes no sense to me as I'm a complete novice at GDL script</description>
      <pubDate>Mon, 22 Mar 2010 15:17:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Creating-a-Custom-GDL-Object/m-p/207522#M21104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-22T15:17:47Z</dc:date>
    </item>
  </channel>
</rss>

