retrieving 3d data from a modle
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2006-05-23
07:40 PM
- last edited on
‎2023-08-07
11:14 AM
by
Doreena Deng
‎2006-05-23
07:40 PM
hey
the api stipulates that the following two function calls, ACAPI_3D_GetNum and ACAPI_3D_GetComponent are used to retrieve the data from archiCAD as meshes. however, it doesn't seem to work. i open an example file and the GetNum call returns zero.
This is my test code:
can anyone help me with what i am doing wrong?
thanks a lot
the api stipulates that the following two function calls, ACAPI_3D_GetNum and ACAPI_3D_GetComponent are used to retrieve the data from archiCAD as meshes. however, it doesn't seem to work. i open an example file and the GetNum call returns zero.
This is my test code:
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.
can anyone help me with what i am doing wrong?
thanks a lot
Labels:
- Labels:
-
Add-On (C++)
6 REPLIES 6
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2006-05-23 10:50 PM
‎2006-05-23
10:50 PM
yeah, this is an interesting problem. i tried toying with the provided 3D_Test project, and while i can get it to dump the geometry of any object that i click on, it will not iterate through the whole plan and dump everything at once. it too tells me that there are no bodies in the plan. i don't get an error code.
any help would really be appreciated.
any help would really be appreciated.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2006-05-29 03:01 PM
‎2006-05-29
03:01 PM
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
HTH,
Akos
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2007-04-24 02:52 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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2007-04-24 10:42 PM
‎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
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2010-05-24 03:28 PM
‎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; }
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2010-05-24 10:28 PM
‎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):

Ralph Wessel BArch
Central Innovation
Central Innovation