cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Forum Posts

Using the Development Kit with Visual Studio 2022

Hi everyone, In the last couple of weeks we got several questions regarding Visual Studio 2022 and the API DevKit. If you try to use VS 2022 to build your AddOns, you have to keep in mind a few things. First, Archicad 25 and Archicad 26 is built with...

outdated Add-On that cannot be used with this ArchiCAD vers

I'm running on Windows XP 32 bit. I'm using Visual Studio 2005 and the v13 API. I'm using the Database Control example add-on unaltered. I compile for Win32 and load the add on into ArchiCad on WinXP 32 bit and it works fine. I compile for x64 (chang...

Anonymous by Not applicable
  • 5246 Views
  • 5 replies
  • 0 likes

How to change the dimensions of an array parameter?

The API DevKit documentation for API_AddParType structure states: For parameters with array modifier, you can change the dimensions of the array on the fly when you create or modify an element. This enables you to put just a placeholder for an array ...

Anonymous by Not applicable
  • 2602 Views
  • 2 replies
  • 0 likes

What is the modification time value

projectInfo has a modiStamp field which is UInt64. How is that value interpreted please? If I open a new project and get the projectInfo, the modiStamp field has a value, which changes with every successive call to get the projectInfo even when nothi...

Anonymous by Not applicable
  • 2366 Views
  • 2 replies
  • 0 likes

get all drawing elements regardless of window

When I use ACAPI_Element_GetElemList(API_DrawingId, ...) I get the drawing elements for the current window. How can I get all the drawing elements for all the windows without changing the current window (or restoring the current window)? Thanks.

Anonymous by Not applicable
  • 2661 Views
  • 2 replies
  • 0 likes

Project ID Info incorrect for new template project.

When I open AC 13 using a template and then, with no changes made to the file, issue err = ACAPI_Environment(APIEnv_ProjectID, &projectInfo, NULL); from my menu handler. The return value is NoError, but projectInfo.untitled is false and projectInfo.l...

Anonymous by Not applicable
  • 2341 Views
  • 0 replies
  • 0 likes

Resolved! ACAPI_Automate(APIDo_SaveID...) not saving file

I'm using AC13 and when I call err = ACAPI_Automate(APIDo_SaveID, NULL, NULL, NULL); from my menu handler with a new plan open from a template and it returns NoError but the file is not saved. How can I save the current file please?

Anonymous by Not applicable
  • 4263 Views
  • 7 replies
  • 0 likes

ACAPI_Automate returning REFUSEDCMD error

I'm calling err = ACAPI_Automate(APIDo_CloseID, NULL, NULL, NULL); from my menu handler with a new plan open from a template and it returns APIERR_REFUSEDCMD Is there a way to close the current file?

Anonymous by Not applicable
  • 2227 Views
  • 2 replies
  • 0 likes

Add-On Menu disabled after file close

Hi, my add on menu is disabled after a file close. I added a notification handler to check the menu on file close and it reports the menu as enabled. How can I have my add-on menu enabled even when there is no file open, please? Currently I'm working...

Anonymous by Not applicable
  • 3654 Views
  • 5 replies
  • 0 likes

ACAPI_RegisterModelessWindow error

Hi all, I have an error in my code with the function ACAPI_RegisterModelessWindow : ========================================================================================== if (ACAPI_RegisterModelessWindow (dialID, PaletteAPIControlCallBack, API_Pa...

Anonymous by Not applicable
  • 1994 Views
  • 1 replies
  • 0 likes