2013-11-25
11:43 AM
- last edited on
2023-08-01
06:55 PM
by
Doreena Deng
2013-12-11 10:38 AM
2013-12-13 01:40 PM
API_WindowInfo windowInfo;
memset (&windowInfo, 0, sizeof (windowInfo));
ACAPI_Database (APIDb_GetCurrentWindowID, &windowInfo, NULL);
/* You will get the following informations for the current view
typedef struct {
API_WindowTypeID typeID;
Int32 index; // database/window index
API_DatabaseUnId databaseUnId; // database unique ID
API_DatabaseUnId masterLayoutUnId; // for Layouts only; database unique ID of the master layout
GS::uchar_t title[API_UniLongNameLen]; // title of the database (generally "ref"+" "+"name") - output only
GS::uchar_t name[API_UniLongNameLen]; // name of the database
GS::uchar_t ref[API_UniLongNameLen]; // reference string/id of the database
API_Guid linkedElement; // element linked to the database or drawing guid if (typeID == APIWind_DrawingID) (e.g. section to a section database); the element, never the section segment!
API_DatabaseUnId linkedDatabaseUnId; // for databases linked to elements (section, detail, etc.): the database containing the element
Int32 linkedSegmentMemoIndex; // for interior elevations
Int32 filler_1[3];
} API_WindowInfo;
*/
if (windowInfo.typeID == APIWind_SectionID) { // for more window types check APIdefs_Database.h header file
// the current window is a section view
} 2013-12-17 03:23 PM
2013-12-17 03:32 PM
atila-diffusion wrote:If your tool is activated through a menu, you can restrict its use to specific drawing types in the resources. Take a look at the
Thank you very much, i have resolve my problem
I can disable functions of my add-on in this window !
/* [ 5] */ "My menu item^D2"
2013-12-18 12:37 PM
/* [ 5] */ "My menu item^D2^D3^D4"
2013-12-18 01:15 PM
atila-diffusion wrote:
But Can I disable in several windows like this ??
/* [ 5] */ "My menu item^D2^D3^D4"
2013-12-20 04:03 PM