We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2017-12-08 08:19 PM - last edited on 2022-12-06 01:47 PM by Daniel Kassai
2017-12-15 07:47 AM
2017-12-21 04:01 PM
Tsepov wrote:I haven't tried using
I need to increase or resuce count of the items in parameters array.
But I have error where assign to .ind1 value more than size of array, defined on the lib part.
2018-01-05 02:15 PM
Tsepov wrote:No, you can't change that, because the dimensions are defined in the library part itself, and here you want to modify that via a placed instance. So please define the max dimensions in the library part itself.
I need to increase or resuce count of the items in parameters array.
But I have error where assign to .ind1 value more than size of array, defined on the lib part.
chgParam.ind1 = 5;
chgParam.realValue = 10;
err = ACAPI_Goodies (APIAny_ChangeAParameterID, &chgParam, NULL);
Can I increase size of the parameter array dynamicly, without changing a lib part?
Help me please...)
2018-01-06 07:44 AM
2018-01-06 12:48 PM
Akos wrote:Library part instances can dynamically change the array bounds (for that instance) within the GDL script and we routinely do that via the API too. Changing the array bounds of the library part has no affect on placed instances, i.e. they retain their original content (unless the variable is no longer an array).
No, you can't change that, because the dimensions are defined in the library part itself, and here you want to modify that via a placed instance. So please define the max dimensions in the library part itself.
2018-01-06 01:08 PM
2018-01-06 02:05 PM
2018-01-08 12:51 PM
Tsepov wrote:You can dynamically change the size of an array in an object instance via both GDL and the API. But you need to read/write the parameter memo data for the object element to make this work.
Simply the creator of the object's GDL must pre-set a sufficient number of rows in the coordinate array.
But control size of the array by API would be preferable.
Maybe there is some other way to write data to the GDL element for store coordinate array with variable length?
2022-08-03 09:52 PM
I'm trying to follow this but having a hard time with reallocating array field. Could you elaborate on this? Does the array need to be GSHandle type and how does one determine its size?