GDL 2D Script Error: Operator cannot be used for array operands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2022-05-27 01:09 PM - edited ā2022-05-27 01:09 PM
Hi there,
Very new to Archicad and just inherited templates from other offices - we would very much like to use a custom story marker but it has a 2D script error. I've attached the .gsm file. I have no clue on how to fix the error and would really appreciate if someone can help me resolve the 2D script error.
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2022-06-08 09:01 AM
Hi,
I didn't check the code, but based on the error message, you are trying to use an operator on an array, which is not possible in GDL.
Did the message write a line number? Pasting the code at that line would help us.
Software Engineer, Library
Graphisoft SE, Budapest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2022-06-08 09:18 AM
Hi Peter, thanks for your reply. The error message is below:
"Operator cannot be used for array operands at line 101 in the 2D script of file Custom Story Marker.gsm."
Thanks again!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2022-06-10 09:03 AM
You forgot to define which array element to check. Here are some examples on using arrays: https://gdl.Graphisoft.com/reference-guide/expressions#DIM_gdlcommand
Software Engineer, Library
Graphisoft SE, Budapest