Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

Modeling
About Archicad's design tools, element connections, modeling concepts, etc.

Warning message-HELP

Erika Epstein
Booster
This being Friday afternoon, I closed a file and got the following message:
"Warning:
string type expression required at line 79 of File MASTEREND_GDL_XXX.GDL"

How do I go about finding out what it refers to and what to correct?
Is this an integrity problem?
Do I go back to the last known safe version?


Thanks in advance
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
16 REPLIES 16
Erika Epstein
Booster
I can open and close the file without getting that error again.
I did find when I went to wireframe that there was a piece made with the roof tool that went on into infinity and remade the part correctly...hoping that is it.
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
Anonymous
Not applicable
Sometimes with Archicad closing and openning file again helps.
Erika Epstein
Booster
No, unfortunately while the file is openable, once I work in it for at least an hour it reappears.

ALL HELP ON WHERE TO LOOK FOR THIS PESKY SCRIPT IS WELCOME
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
Anonymous
Not applicable
You can search your hard drive for the file name unless it is embedded in a plp. If you place the name of the library part in a dummy script, you can select the text and go to File > GDL Objects > Open Library Part and ArchiCAD will open the part of the selected name (this might work from the plan view - or others - but I've never tried it).

It sounds like you think this may be related to a misbehaving roof add-on. You could try putting the suspect roof onto a hidden layer and see if the problem goes away.
You can open objects directly from the report window. Highlight the text and "Open Object". Handy when there's an error in a macro; you can open it directly without tunneling through the caller(s).
James Murray

Archicad 27 • Rill Architects • macOS • OnLand.info
Anonymous
Not applicable
James wrote:
You can open objects directly from the report window. Highlight the text and "Open Object". Handy when there's an error in a macro; you can open it directly without tunneling through the caller(s).
Cool.
Erika Epstein
Booster
Hi,
I'm waiting to try the open object method too, searching for the text got me nowhere.
It's not the roof tool, I replaced that item, a gusset on a foundation wall,

I'll let you know how it goes.

thanks
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
Laszlo Nagy
Community Admin
Community Admin
Open the GDL Script and select Go to Line from the Edit menu. Then you will find line 79. Inspect what variables appear in the line.

I have found previously that such messages can appear while you edit the Object but it still works when saved and placed in ArchiCAD.
It happened to me with Zones.
What I found is when you are editing it, a lot of variables are not filled with real values that can occur only after actually placing the object.
If the variable is not filled up with a value, ArchiCAD assumes it is a numeric type (unless it is a parameter, which has its type defined). When it encounters a line that expects a string type variable it gives an error, since the variable is not filled up with a value yet (so it thinks it is zero, which is numeric).
Sometimes intializing you variable to a string (e.g. Var = "") helps. But this is not a good idea if the value will be filled up by ArchiCAD.
Let us say I am using the ZONE_NAME zone fix parameter in my zone's 2D Script. If at the beginning of the 2D Script I set it to "" instead of "Lobby" it extracts from the Floor Plan, later it will give wrong results. So one must be careful.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Erika Epstein
Booster
Laszlo,
thank you, but the warning message would pop up only when I would close ArchiCAD.
Of course, Murphy's law, it hasn't happened since James's tip so I can't see if it works at that time.

I've checked the few things I had scripted for such an error.
I am also using Smart Parts, the latest version for doors, windows and kitichen equipment...ooh, as I write that I can think of some of those that have a parameter option for a name and I didn't fill in...I'll check those now
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"