Memo size
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-10
08:36 AM
- last edited on
‎2023-08-03
05:07 PM
by
Doreena Deng
‎2009-06-10
08:36 AM
Hi,
I'm trying to return a number of windows/doors in a wall. I havent found a function that does this, but found a guidlist of windows attached to the wall element. Now I'm stuck on getting the number of windows. Tried this:
so, where's the catch?
thanks..
I'm trying to return a number of windows/doors in a wall. I havent found a function that does this, but found a guidlist of windows attached to the wall element. Now I'm stuck on getting the number of windows. Tried this:
err = ACAPI_Element_GetMemo (guid, &memo, APIMemoMask_WallWindows); if (err==NoError){ numW = BMGetHandleSize ((GSHandle) memo.wallWindows)/sizeof(API_Guid);but it doesnt work - the "numW" is always 8 characters long.. I tried to define it as long, double and short type. I bet I'm doing something wrong, I'm a beginner in programming.
so, where's the catch?
thanks..
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-06-15 06:17 AM
‎2009-06-15
06:17 AM
hi,
you may use fallowing way.
err = ACAPI_Element_GetMemo (guid, &memo, APIMemoMask_WallWindows);
if (err==NoError && memo.wallWindows != NULL){
numW = BMGetHandleSize (reinterpret_cast<GSPtr>(memo.wallWindows)) / sizeof(API_Guid);
it may work.
Ranga
you may use fallowing way.
err = ACAPI_Element_GetMemo (guid, &memo, APIMemoMask_WallWindows);
if (err==NoError && memo.wallWindows != NULL){
numW = BMGetHandleSize (reinterpret_cast<GSPtr>(memo.wallWindows)) / sizeof(API_Guid);
it may work.
Ranga