<?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: Library Part Test Example Project in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182313#M5136</link>
    <description>this getpoly failure is annoying though, this would be a useful code example to build on.</description>
    <pubDate>Thu, 26 Feb 2009 17:31:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-02-26T17:31:00Z</dc:date>
    <item>
      <title>Library Part Test Example Project</title>
      <link>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182309#M5132</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;(Re-Post)&lt;BR /&gt;&lt;BR /&gt;Has anybody successfully built and ran the Library Part Test Project? &lt;BR /&gt;The library part generated, but the window from hatch function doesn't seem to work. &lt;BR /&gt;On the windows version I created a breakpoint and it looks like it can't get the Polygon data from the hatch. &lt;BR /&gt;&lt;BR /&gt;Has anybody had better luck?&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 15:22:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182309#M5132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Library Part Test Example Project</title>
      <link>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182310#M5133</link>
      <description>&lt;BLOCKQUOTE&gt;Ferenc wrote:&lt;BR /&gt;Has anybody successfully built and ran the Library Part Test Project? &lt;BR /&gt;
The library part generated, but the window from hatch function doesn't seem to work. 
&lt;/BLOCKQUOTE&gt;

Same experience on Mac.  I get prompted to click on a wall to insert the window, but nothing happens.  No window lib part is created in the the loaded parts either.  Proper error dialogs and session report entries are made for the most part - so MakeWindowLibpart is not returning an error...&lt;BR /&gt;
&lt;BR /&gt;
Would have to put more than a few minutes into this to track it down...&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Thu, 26 Feb 2009 03:50:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182310#M5133</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2009-02-26T03:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Library Part Test Example Project</title>
      <link>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182311#M5134</link>
      <description>Spent a little more time trying to find the problem, and it seems like it might be in the GetSelectedElementPolygon function, which is where poly of type API_Polygon is set from the retrieved fill.... because in MakeWindowLibpart, the value of poly.nCoords is zero...&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Thu, 26 Feb 2009 05:06:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182311#M5134</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2009-02-26T05:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Library Part Test Example Project</title>
      <link>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182312#M5135</link>
      <description>Yepp.</description>
      <pubDate>Thu, 26 Feb 2009 17:03:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182312#M5135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-26T17:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Library Part Test Example Project</title>
      <link>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182313#M5136</link>
      <description>this getpoly failure is annoying though, this would be a useful code example to build on.</description>
      <pubDate>Thu, 26 Feb 2009 17:31:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182313#M5136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-26T17:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Library Part Test Example Project</title>
      <link>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182314#M5137</link>
      <description>&lt;BLOCKQUOTE&gt;Karl wrote:&lt;BR /&gt;Spent a little more time trying to find the problem, and it seems like it might be in the GetSelectedElementPolygon function, which is where poly of type API_Polygon is set from the retrieved fill.... because in MakeWindowLibpart, the value of poly.nCoords is zero...&lt;BR /&gt;
Karl&lt;/BLOCKQUOTE&gt;
It seems to me that a crucial part is missing. The memo for the element is retrieved with &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Element_GetMemo&lt;E&gt;&lt;/E&gt;, but the element itself is not and consequently will have all null values. It probably needs &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Element_Get&lt;E&gt;&lt;/E&gt; in the procedure to retrieve the polygon data.</description>
      <pubDate>Thu, 26 Feb 2009 19:29:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182314#M5137</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-02-26T19:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Library Part Test Example Project</title>
      <link>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182315#M5138</link>
      <description>Bingo!&lt;BR /&gt;
&lt;BR /&gt;
Changing the &lt;PRE&gt;GetSelectedElementPolygon&lt;/PRE&gt; to include the Element_Get worked.&lt;BR /&gt;

	&lt;PRE&gt;element.header.guid  = (*selNeigs)&lt;I&gt;.guid;
	err = ACAPI_Element_Get(&amp;amp;element, 0); //--! Thanks Ralph!------			
	if (memo != NULL)&lt;/I&gt;&lt;/PRE&gt;

Thanks Ralph!</description>
      <pubDate>Fri, 27 Feb 2009 19:57:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182315#M5138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-27T19:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Library Part Test Example Project</title>
      <link>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182316#M5139</link>
      <description>Thanks, guys; that did it.  I checked the 11 devkit, and the code there was:&lt;BR /&gt;

&lt;PRE&gt;			element.header.typeID = typeID;
			element.header.index  = (*selNeigs)&lt;I&gt;.index;
			err = ACAPI_Element_Get (&amp;amp;element);&lt;/I&gt;&lt;/PRE&gt;

which worked.  The 12 kit uses the new GUID method for ACAPI_Element_Get, and no doubt the function call got deleted by mistake during the edit.&lt;BR /&gt;
&lt;BR /&gt;
I've posted the correction on the Wiki on the 12 DevKit update page:&lt;BR /&gt;
&lt;A href="http://www.archicadwiki.com/Developer/API%20DevKit%2012%20Updates" target="_blank"&gt;&lt;LINK_TEXT text="http://www.archicadwiki.com/Developer/A ... %20Updates"&gt;http://www.archicadwiki.com/Developer/API%20DevKit%2012%20Updates&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Karl</description>
      <pubDate>Sat, 28 Feb 2009 20:49:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Library-Part-Test-Example-Project/m-p/182316#M5139</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2009-02-28T20:49:57Z</dc:date>
    </item>
  </channel>
</rss>

