cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Archicad C++ API
About Archicad add-on development using the C++ API.

Delphi + ACAP_DLL + Palette

ViloFR
Participant
Hi all,

I'm a new user of ArchiCAD SDK, and I'm trying to create a very simple "proof of concept" addon for my company.

Our main development language is Delphi, and thus it would be very handy to use it to develop the addon.

It seams that it is possible through the "ACAP_DLL.apx" module, which acts as a middleware with EDI not able to import C headers.

I've already succeeded to create a simple addon that registers itself and creates a menu inside ArchiCAD.
Works fine.

The second step would be to create a floating dockable Palette, but here begin the problems ...

All examples provided in the SDK dealing with "DG" functions do not make use of ACAP_DLL.
Those examples addons are making direct call to API, such as :
DGModelessInit
DGCreatePalette
DGCreateDockablePalette
...

But those DG functions, that seam to be mandatory for my purposes, are not available through ACAP_DLL.

The only available function is "ACAPI_RegisterModelessWindow", and I can't find any sample that makes use of it to create a dockable floating Palette.


Your help will be greatly appreciated 😉
1 REPLY 1
ViloFR
Participant
Ok, I've managed to make it work, by loading "DG.dll" and calling function from it.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!