2020-09-07 09:19 AM - last edited on 2021-09-14 01:48 PM by Noemi Balogh
AttributeReader attrReader; ModelerAPI::Model model; Modeler::SightPtr currentSightPtr; GSErrCode sightErr = ACAPI_3D_GetCurrentWindowSight((void**)¤tSightPtr); if (sightErr != NoError) { return APIERR_CANCEL; } EXPGetModel(currentSightPtr, &model, &attrReader);Could anyone help me please? Thanks in advance.
Solved! Go to Solution.
2020-09-07 09:43 AM
AttributeReader attrReader; ModelerAPI::Model model; Modeler::Sight* sight = nullptr; //Modeler::SightPtr currentSightPtr(sight); //GSErrCode sightErr = ACAPI_3D_GetCurrentWindowSight((void**)¤tSightPtr); GSErrCode sightErr = ACAPI_3D_GetCurrentWindowSight((void**)&sight); if (sightErr != NoError) { return APIERR_CANCEL; } Modeler::SightPtr currentSightPtr(sight); EXPGetModel(currentSightPtr, &model, &attrReader);I am testing it.
2020-09-07 09:43 AM
AttributeReader attrReader; ModelerAPI::Model model; Modeler::Sight* sight = nullptr; //Modeler::SightPtr currentSightPtr(sight); //GSErrCode sightErr = ACAPI_3D_GetCurrentWindowSight((void**)¤tSightPtr); GSErrCode sightErr = ACAPI_3D_GetCurrentWindowSight((void**)&sight); if (sightErr != NoError) { return APIERR_CANCEL; } Modeler::SightPtr currentSightPtr(sight); EXPGetModel(currentSightPtr, &model, &attrReader);I am testing it.