If the user clicks the Window Tool, then a preview of the last selected
library part is shown and the element can be inserted with a click. How
can I check via the API by code, if this preview is actually shown or if
the mouse arrow is shown?
If the user clicks the Window Tool, then a preview of the last selected
library part is shown and the element can be inserted with a click. How
can I achieve this via the API by code?
I use the following code to insert a new window element of a library
part: GSErrCode CreateWindowWithTool(const GS::Int32 iLibPartIndex) { //
create tool box item API_ToolBoxItem toolboxItem;
BNZeroMemory(&tboxInfo, sizeof(API_ToolBoxItem)); toolboxI...
Is there a possibility to start an update process or an automatic
update? That means the add-on actually is installed to c:\Program
Files\GRAPHISOFT\Archicad 27\Add-Ons\MyAddOn\MyAddOn.apx Pressing a
button in the AddOn I like to start a process, tha...
I have working code for an ArchiCAD-Addon for Versions 22-26. Now I try
to run it with ArchiCAD 27 but it fails in the following line: m_hModule
= ::LoadLibrary(wstrDLLPath); LoadLibrary() returns 0. I investigated,
that ::GetLastError(); returns 127...
Thanks a lot, that works fine! One thing is missing now: When I register
a menu via ACAPI_MenuItem_RegisterMenu(ID_MENU_STRINGS_CREATE,
ID_STATUS_STRINGS_CREATE, MenuCode_UserDef, MenuFlag_Default); I like to
change the text of the status string too:...
I found my mistake: It is my own DLL and it includes some ArchiCAD API
functions. I compiled and linked it against the ArchiCAD 26 API and
tried to load the DLL with ArchiCAD 27.
The created window scripts are generated programmatically as a BIM
export from another system. So the materials cannot be predefined, have
to be created on the fly and the Attribute Manager no is an option.