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

GDL
About building parametric objects with GDL.

Forward Migration - Arrays

DGSketcher
Legend

In an old GDL object I have values stored in a 10 x 8 parameter arrNameA. I want to extract the values in columns 6 & 7 e.g. arrNameA [#][6] into a new parameter array arrNameB in the new object. Is it possible to split these values out in the migration script? 

 

Hoping this will work...

 

!!!FORWARD MIGRATION SCRIPT

DIM arrNull2[][], arrTemp[][]
arrNull2[1][1] = 0.00

xx = STORED_PAR_VALUE ("arrNameA", arrTemp)				
IF xx THEN
   FOR n = 1 TO VARDIM1(arrTemp)
	arrNameB[n][1] = arrTemp[n][6]
	arrNameB[n][2] = arrTemp[n][7]
    NEXT n

arrTemp = arrNull2
PARAMETERS arrNameB = arrNameB

ENDIF

 

 

Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)
0 REPLIES 0

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!