2006-05-23
07:40 PM
- last edited on
2023-08-07
11:14 AM
by
Doreena Deng
std::stringstream str; long nBody; GSErrCode err; err = ACAPI_3D_GetNum (API_BodyID, &nBody); str << "API_BodyID:" << "\t\t\t" << nBody << "\n"; ::MessageBox(NULL, str.str().c_str(), "AHHAHAHA", MB_OK);trying to just arbitrarily obtain a 3D object returns no error, but an incorrect object id.
2006-05-23 10:50 PM
2006-05-29 03:01 PM
2007-04-24 02:52 PM
Akos wrote:Are there any way to get around this problem? Can't I do this from the addon so the user doesn't have to be bothered?
The 3D window has to be active, and a valid model is required. Also, the 3D window has to be in shading mode, not in wireframe.
HTH,
Akos
2007-04-24 10:42 PM
jmi wrote:Perhaps 'ACAPI_Element_Get3DInfo' is what you are after?Akos wrote:Are there any way to get around this problem? Can't I do this from the addon so the user doesn't have to be bothered?
The 3D window has to be active, and a valid model is required. Also, the 3D window has to be in shading mode, not in wireframe.
HTH,
Akos
2010-05-24 03:28 PM
Akos wrote:I think it should be implemented like this (from 3D_Test example):
The 3D window has to be active, and a valid model is required. Also, the 3D window has to be in shading mode, not in wireframe.
short origSight = 0, planSight;
// we must switch to the 3D Window's sight
planSight = (short) API_PlanSight;
err = ACAPI_3D_SelectSight (&planSight, &origSight);
if (err != NoError) {
ErrorBeep ("Cannot switch to the 3D sight", err);
return;
}
2010-05-24 10:28 PM
archonmaster wrote:It's not worth answering questions that are years old - after all, the answer might change every year
I think it should be implemented like this (from 3D_Test example):