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?