We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.

Array & hotspots menu

gaba
Booster

I am creating an algorithm for graphically adding/subtracting elements of an array (dim_xy[ ][ ]) using hotspots (from the hot_mnu[ ] array).
It seems to me that adding new elements to the dim_xy[ ][ ] array works OK:

HotspotMenu1.gif😊

 

 

But removing elements from the dim_xy[ ][ ] array unfortunately does not work properly because the last removed element of the array is restored:

HotspotMenu2.gif😕😕😕

 

I noticed that for removing an element from the dim_xy[ ][ ] array to work, I have to click a hotspot not related to the hotspots hot_mnu[ ] before removing, i.e. remove in two stages:

HotspotMenu3.gif😎😕

Where is the error? Can someone help?
I am attaching HotspotMenuGsm.zip (Ac27)

 

AC 7 - 27 (28), Twinmotion | Windows 10 Pro for Workstations
Dell 7740 Xeon | 64GB | Quadro RTX 3000 6GB + LG 2560x1080
2 REPLIES 2
Pertti Paasky
Expert

You can not remove the edited parameter.

Rather add one array element more than needeed and do not use it. 

- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.

@Pertti Paasky, any example ?

AC 7 - 27 (28), Twinmotion | Windows 10 Pro for Workstations
Dell 7740 Xeon | 64GB | Quadro RTX 3000 6GB + LG 2560x1080

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!