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...

Using a Text File result to change parameters

Hi GDL experts,I am working with a simple txt. file to figure out how it can work. I have the code working that can search the first column of the text file and return a code based on the column number as below: ch=OPEN("data",”Simple.txt”,"MODE=RO, ...

Resolved! Decoding Strings in the GRC file

HiWhat do the alpha-numeric codes followed by ^ in the example below denote in a GRC file? 'STR#' ID_ADDON_MENU "Strings for the Menu" { /* [ 1] */ "Example AddOn Command... ^E3 ^ES ^EE ^EI ^ED ^ET ^10001" } ^10001 - is for the icon^E3, ^ES, ^EE... -...

dushyant by Enthusiast
  • 1814 Views
  • 2 replies
  • 0 likes

Resolved! Number or Text Result in Macro

Hi GDL Experts,My goal is to have the user change the parent object, using drop down value lists, that select various subroutines from the child object. In the child object, I use the values{2} code to create values lists. From the values lists, I us...

Moving Hotspots

Does anyone know if there is a limit to the number of movable hotspots nodes that can be defined in the 2D code for an object. It seems that I can only get 12 to work, anything past that and they stay frozen in there position. Thanks

Slab-like GDL or Param-O object for city planning?

Hi!I'm working on a template for city planning and am currently looking for ways to easily mimic buildings in an early stage. Right now I'm using composite slabs with every story a different material, the materials being whatever functions the buildi...

Kaj_AL by Booster
  • 2407 Views
  • 21 replies
  • 0 likes

Mirror objects boolean in GDL

Hi all,I'm relatively new in GDL and creating scripts. I was looking for how to create a mirror parameter in existing AC library parts through GDL scripting, so the object can be mirrored with a simple click, rather than mirror the geometry manually ...

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

How to change the label text box position.

Hello,In a custom add-on i tried to change the all label text box position. To do this task i used ACAPI_Element_GetElemList to get all the Label text box guid. And after collect guids i accessed all related property of every individual Label text bo...

Jahidur by Participant
  • 2249 Views
  • 0 replies
  • 0 likes

How To Get Control Address By DGModelessInit

I make Modeless Dialog MyDialog::Init(){ diagId=DGModelessInit( ACAPI_GetOwnResModule() , ID_DIALOG , ACAPI_GetOwnResModule() , GroupSheetDlgCallBack , (DGUserData)&dlgData , 1); } But I can't change Control Width By DG Commands.So I try Control Addr...

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

Resolved! AC25 API Compile Error - ParameterPackTraits.hpp

I'm trying to compile one of the examples of the API (Element_Test) and I'm encountering errors on GSRoot\ParameterPackTraits.hpp. Rebuild started... 1>------ Rebuild All started: Project: Element_Test, Configuration: Debug x64 ------ 1>Compiling the...

READING ERRORS FROM THE ARCHICAD ?.

Hello,In a lot of places in the examples, there are statements like err = function(param).I am trying to get any errors that do occur to show up in the report window. The problem I am having is that ACAPI_WriteReport, CHCopyC, and sprintf all seemt t...

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