Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Adding Request to script

Anonymous
Not applicable
I am trying to add a request string to a library part. I have the correct request:

n=REQUEST ("Zone_relations", "", category_name, code, name, number ,category_name2,
code2, name2, number2)

TEXT2 0, 0, number


but do not know the code to make it a string/parameter within the part.

New to GDL and hope someone can help??
10 REPLIES 10
Anonymous
Not applicable
F. wrote:
I should have known, that you would try. 😉 Maybe the request changes the variable from string to numeric. wrap a if vartype(number)=2 then ... around it.
That is exactly what happens. Normally when window or door is placed to wall between two zones, the values the REQUEST ("Zone_relations" ...) returns are strings. But when there is no zone it returns 0 which is a number. So if you make IF-statement to that value, each time when the value isn't proper it "crashes" (only the black dot appears)
So first I must be sure that the value is proper type.

This request function really sucks btw...