2009-02-26 01:44 AM
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.
2009-02-26 06:06 AM
2009-02-26 06:03 PM
2009-02-26 06:31 PM
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...
2009-02-27 08:57 PM
GetSelectedElementPolygonto include the Element_Get worked.
element.header.guid = (*selNeigs).guid; err = ACAPI_Element_Get(&element, 0); //--! Thanks Ralph!------ if (memo != NULL)Thanks Ralph!
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.