ACAPI_Element_SolidOperation_Create with APIERR_NO3D
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2022-08-03 04:05 AM - edited 2022-08-03 04:43 AM
2022-08-03
04:05 AM
I convert some element to morph(using api). Converting is working well.
But few element's body is not one, I have to perform solid operation.
When I perform solid operation(ACAPI_Element_SolidOperation_Create), I got -2130313015(APIERR_NO3D) err code.
for (int j = 0; j < morphElemList.GetSize() - 1; j++)
{
if (solidGuid.GetSize() == 0)
err = ACAPI_Element_SolidOperation_Create(morphElemList[j], morphElemList[j + 1], APISolid_Add, &solidGuid);
else
err = ACAPI_Element_SolidOperation_Create(solidGuid[0], morphElemList[j + 1], APISolid_Add, &solidGuid);
}
Archicad 24 and morphElemList is GS::Array<API_Guid> and it has converted morph guid.
Is this an error that occurs because it is executed within one ACAPI_CallUndoableCommand?
Is there any solution?
Labels:
- Labels:
-
Add-On (C++)
0 REPLIES 0