2020-07-23 04:01 PM - last edited on 2022-09-26 10:48 PM by Daniel Kassai
Solved! Go to Solution.
2020-07-24 11:13 AM
! the parameter array => array[2][2] ! extend the array array[3][2] = some_value ! do all calculations etc. here ! set the parameter array using parameters command parameters array = array
2020-07-23 05:25 PM
2020-07-24 08:18 AM
2020-07-24 11:13 AM
! the parameter array => array[2][2] ! extend the array array[3][2] = some_value ! do all calculations etc. here ! set the parameter array using parameters command parameters array = array
2020-07-24 12:11 PM
2020-07-24 04:16 PM
Ralph wrote:
I developed an object that does this for GS UK – Modular Joinery Object - and it's available to customers up to the latest version.
2020-07-24 07:10 PM
blob wrote:It can be even simpler than that - just assign a value at the array bounds you want and then make the same statement leading with parameters, e.g.:
OK, so I've found a solution to my own problem, and I think it might be the solution for how to resize a parameter array, or at least an option.
The problem for me seemed to be that, although the resizing of the parameter array worked and was 'registered' as a change, it didn't come into effect until the following time an action was taken (in the gdl editor for example regenerating the 3D view or changing the value of some other parameter). The solution I found was to modify the parameter array like a normal array and extend it, and use it like a normal variable in the parameter script, and the following time the parameter script was run the parameter array itself would be updated and thus work correctly. In code it looked more or less like this:
! the parameter array => array[2][2] ! extend the array array[3][2] = some_value ! do all calculations etc. here ! set the parameter array using parameters command parameters array = array
something[5][5] = 1.0 parameters something[5][5] = 1.0
2020-07-24 07:11 PM
vistasp wrote:Should be - I check it every year for GS UK. It's running fine in AC24, so I expect there's some distribution problem if it's not showing up. Check with your support
Ralph wrote:
I developed an object that does this for GS UK – Modular Joinery Object - and it's available to customers up to the latest version.
Is it still there Ralph?
When searching via the Door or Window tool, the object shows up. However, when clicking OK to download, it, I get the error below. For the record, my SSA is valid.
Clipboarder.2020.07.24-002.png
Clicking on the BIMcomponents link in the tool dialogue box leads to a 404.
I hope this is a temporary glitch. I'll have to hunt through embedded objects in some old project to retrieve it, otherwise. This one's too precious to lose.
2020-07-25 04:11 PM
2020-07-29 08:40 AM