We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2010-04-23 10:15 AM
2012-10-23 04:23 PM
Pertti wrote:Does anyone know if or how? I tried it by, but it didn't work in this way:
Does somebody know if it is possible to use an array as a libraryglobal?
!»» Fontnames out of MVO DIM OLG_fontnames[] stsOLG=LIBRARYGLOBAL("OpenLibraryGlobals", "ef_fontnames", OLG_fontnames) IF stsOLG>0 AND VARDIM1(OLG_fontames)>0 THEN VALUES "Zeichensatz" OLG_fontnames,CUSTOMef_fontnames is a string array in OpenLibraryGlobals.GSM
2013-03-25 09:10 AM
2015-05-27 01:03 PM
F. wrote:Yes you can! I've been struggling with this for a while but now i got it!Pertti wrote:Does anyone know if or how? I tried it by, but it didn't work in this way:
Does somebody know if it is possible to use an array as a libraryglobal?
!»» Fontnames out of MVO DIM OLG_fontnames[] stsOLG=LIBRARYGLOBAL("OpenLibraryGlobals", "ef_fontnames", OLG_fontnames) IF stsOLG>0 AND VARDIM1(OLG_fontames)>0 THEN VALUES "Zeichensatz" OLG_fontnames,CUSTOMef_fontnames is a string array in OpenLibraryGlobals.GSM
DIM local_array[numberofcells] dummy = LIBRARYGLOBAL("yourlibraryglobal.gsm", "name_of_array", local_array) your_variable = local_array[desired_cell]This DOESN'T seem to work (which is stupid...):
dummy = LIBRARYGLOBAL("yourlibraryglobal.gsm", "name_of_array[desired_cell]", your_variable)