We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2020-12-21 04:04 PM - last edited on 2021-09-14 01:32 PM by Noemi Balogh
renoStatus = "" _r = APPLICATION_QUERY ("OwnCustomParameters", "GetParameter(Renovation.RenovationStatus)", renoStatus) pen 1 This is my 2D (just an example): if renoStatus = "Existing" then RECT2 0,0,10,10 if renoStatus = "New" then CIRCLE2 0,0,10 if renoStatus = "To Be Demolished" then LINE2 0,0,10,10 I tried various if-then-gosubs etc in 3D but didn't get it to work at all: if renoStatus = "Existing" gosub 100: if renoStatus = "New" gosub 200: if renoStatus = "To Be Demolished" gosub 300: END 100: BLOCK 100,100,100 RETURN 200: CYLIND 100,20 RETURN 300: SPHERE 50 RETURNAny clever clue?
2020-12-21 06:31 PM
Mats_Knutsson wrote:
renoStatus = "" _r = APPLICATION_QUERY ("OwnCustomParameters", "GetParameter(Renovation.RenovationStatus)", renoStatus) pen 1 This is my 2D (just an example): if renoStatus = "Existing" then RECT2 0,0,10,10 if renoStatus = "New" then CIRCLE2 0,0,10 if renoStatus = "To Be Demolished" then LINE2 0,0,10,10 I tried various if-then-gosubs etc in 3D but didn't get it to work at all: if renoStatus = "Existing" THEN gosub 100: !you don't need that colon here, unless you want to add code in a same row if renoStatus = "New" THEN gosub 200: if renoStatus = "To Be Demolished" THEN gosub 300: END 100: BLOCK 100,100,100 RETURN 200: CYLIND 100,20 RETURN 300: SPHERE 50 RETURN
2021-01-05 09:57 AM
2021-01-05 10:52 AM
Peter wrote:Hi Peter,
This query doesn't work in 3D, we will update the manual.
As a habit, always check the return value of REQUEST, LIBRARYGLOBAL, APPLICATION_QUERY commands, there might be more complex situations where a piece of information can't be read.
2021-01-05 11:25 AM
Peter wrote:
This query doesn't work in 3D, we will update the manual.
2021-01-06 06:11 PM
add2 LABEL_POSITION[2][1] + LABEL_POSITION[3][1], LABEL_POSITION[2][2] + LABEL_POSITION[3][2]