Hey, I'm targeting AC26 and I'd like to make all columns of a
DG::ListBox the same width in a way that they fill up the whole width of
the ListBox. It works fine, but whenever I change the number of tab
fields and recalculate the layout the changes a...
@BrunoValads wrote:This approach makes sense in my mind, just the
technicalities that are bugging me. @kovacsv wrote:1. Make the addon
preloaded, so Archicad won't unload it automatically when it's not
used.By "preloaded" you mean using ACAPI_KeepInM...
I would try this approach:Make the addon preloaded, so Archicad won't
unload it automatically when it's not used.Start a separate thread that
constantly polls your web server (e.g. every 5 seconds or so).When you
get the response from the web server,...
I would try to replace the return value of CheckEnvironment from
APIAddon_Normal to APIAddon_Preload. This will make your add-on
preloaded which means it will be kept in the memory during the entire
Archicad session. Normal add-ons are loaded/unloade...
My guess is that the ACAPI_Element_AddClassificationItem function opens
a command scope internally, so it creates thousands of undo steps. I'd
try to wrap the entire loop with a ACAPI_CallUndoableCommand call and
see if that helps.
The field canValueBeEditable is an output only parameter that tells you
if the given parameter can be modified using an API call. The hotlink
master id can't be modified on element level (since it's tied to the
hotlink object and not the element).