Arrays and inputing values from a list

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-10-30
09:54 PM
- last edited on
2023-05-24
12:39 PM
by
Rubia Torres
The parameters h and v would be integers >0 and a global_mod_par would populate the "window" array with the quantity of horizontal and vertical windows, but I'd like to establish what each window sash is.
Essentially I want the sript to be something like
window
values "type" "fixed", "casement", "awning"
However, all the windows would be the same and I'm not sure how to sript it to have control over each individual window sash.
Any ideas?
Windows 10

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-10-30 10:22 PM
I think, you should define a 2 dimensional Array Parameter named "window" and write as you did in Parameter script:
values "type" "fixed", "casement", "awning"
Now you can select in the User Interface (with UI_INFIELD{2}) selectable
fields for every window sash with the 3 possibilities.
GDL object creation: b-prisma.de
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-10-30 11:27 PM
jshuether wrote:If you want an object with that kind of behaviour, the Modular Joinery object may be what you're after. It will allow you to configure any array of doors, windows, and panels (including nested frames).
I have an array set up to define a grid of windows. The array contains the horizontal widths and vertical width. I would like to define what each window is in the grid from a list of values.
Central Innovation

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-10-31 05:22 AM
Thanks for guiding me to UI_INFIELD{2}. I figured I would have to utilize the Interface Script but I didn't know where to start.
Ralph,
I created my window object years ago (out of necessity), and every so often I update it and expand its capabilities (not to mention expand my GDL capabilities). I'm also starting to script a cabinet object with the same concept. I am curious about the Modular Joinery object; I'm sure it is everything I need and more; however, I'm not sure how to acquire the object.
Scott
Windows 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-10-31 10:50 AM
jshuether wrote:Distribution is managed by Graphisoft UK. Your ArchiCAD reseller should be able to source it for you from them.
I am curious about the Modular Joinery object; I'm sure it is everything I need and more; however, I'm not sure how to acquire the object.
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-10-31 09:22 PM
My reseller is listed as "Graphisoft US". I requested this object from them. I never heard back. So I'm curious to know if anyone was successful in obtaining it.
Thanks, Greg

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-01 03:47 AM
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-01 11:02 PM
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019 [/size]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-02 01:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-02 03:05 PM
I think it can't be a value list for an index of array.
It's may a similar script that you want:
----------------------------------------------------------------------
VALUES "H" RANGE (0, ]
VALUES "V" RANGE (0, ]
IF GLOB_MODPAR_NAME="H" OR GLOB_MODPAR_NAME="V" THEN
FOR I=1 TO H
FOR Q=1 TO V
window
=""
PARAMETERS window
=""
NEXT Q
NEXT I
ENDIF
DIM xx0 [][]
FOR I=1 TO H
FOR Q=1 TO V
xx0
=10*I+Q
PARAMETERS xx0
=10*I+Q
NEXT Q
NEXT I
VALUES "xx" xx0 ! code of grids
VALUES "type" "fixed", "casement", "awning"
wtype=type
hh=INT(xx/10)
vv=xx-hh*10
window [hh][vv]=wtype
PARAMETERS window [hh][vv]=wtype
----------------------------------------------------------------------
You have to create the parameters: h, v, xx, type, window
Cheers,