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

Zone relations request

rav668
Participant
Hi,
I was trying to use request for zone relations for my door stamp, however variable that I need does not work. I paste here two relevant lines. [AC22] Thank you in advance!

qqq = request ("Zone_relations", "", asd1, asd2, asd3, asd4)
text2 0,0,asd4
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
add

 asd1="": asd2="": asd3="": asd4=""

before request

Piotr

View solution in original post

6 REPLIES 6
rav668
Participant
It works but warning pops up and says "Uninitialized variable"
rav668
Participant
Adding this variable to parameters solves problem with warning but what is the point if you don't have to do it with other requests...
Solution
add

 asd1="": asd2="": asd3="": asd4=""

before request

Piotr
rav668
Participant
Thank you Piotr for your reply. I think these variables are already text. Am I thinking right? Is this formula: asd1="": asd2="": asd3="": asd4="" making variables string to text?
Best regards,
Rafał
You have to declare the variables before they are used (either as parameters or by script as I showed)

Piotr
rav668
Participant
Thank you for sharing.
Best regards,
Rafał