Library Part Test Example Project
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-02-26
01:44 AM
- last edited on
2023-08-03
05:22 PM
by
Doreena Deng
Has anybody successfully built and ran the Library Part Test Project?
The library part generated, but the window from hatch function doesn't seem to work.
On the windows version I created a breakpoint and it looks like it can't get the Polygon data from the hatch.
Has anybody had better luck?
- Labels:
-
Library (GDL)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-02-26 04:50 AM
Ferenc wrote: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...
Has anybody successfully built and ran the Library Part Test Project?
The library part generated, but the window from hatch function doesn't seem to work.
Would have to put more than a few minutes into this to track it down...
Karl

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-02-26 06:06 AM
Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-02-26 06:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-02-26 06:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-02-26 08:29 PM
Karl wrote:It seems to me that a crucial part is missing. The memo for the element is retrieved with
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...
Karl
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-02-27 08:57 PM
Changing the
GetSelectedElementPolygonto include the Element_Get worked.
element.header.guid = (*selNeigs).guid; err = ACAPI_Element_Get(&element, 0); //--! Thanks Ralph!------ if (memo != NULL)Thanks Ralph!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-02-28 09:49 PM
element.header.typeID = typeID; element.header.index = (*selNeigs).index; err = ACAPI_Element_Get (&element);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.
I've posted the correction on the Wiki on the 12 DevKit update page:
Cheers,
Karl