We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2020-09-30 02:08 PM - last edited on 2021-09-15 09:44 AM by Noemi Balogh
2020-09-30 03:48 PM
2020-10-01 11:09 AM
GDL wrote:I never tried, but perhaps Build-in Properties can do the trick. (Page 519)
Built-in Properties
These commands return the folder names, parameter names and parameter values of built-in properties on the "Classification and Properties"
tabpage (ID and Categories, Renovation, IFC Properties).
2020-10-02 08:20 AM
Braza wrote:Hmm..would be interesting to see if it can be used. I'm not that much into GDL to understand how i would use it.
GDL wrote:I never tried, but perhaps Build-in Properties can do the trick. (Page 519)
Built-in Properties
These commands return the folder names, parameter names and parameter values of built-in properties on the "Classification and Properties"
tabpage (ID and Categories, Renovation, IFC Properties).
2020-10-02 09:46 AM
DIM folderNamesArray[] n = APPLICATION_QUERY ("OwnCustomParameters", "GetParameterFolderNames()", folderNamesArray) for i = 1 to vardim1(folderNamesArray) step 3 DIM parNamesArray[] querystring = "GetParameterNames(" + folderNamesArray + ")" n = APPLICATION_QUERY ("OwnCustomParameters", querystring, parNamesArray) text2 0, 0, querystring add2 1, -1 _nLines = 1 for j = 1 to vardim1(parNamesArray) step 3 parValue = "" querystring = "GetParameter(" + parNamesArray+ ")" n = APPLICATION_QUERY ("OwnCustomParameters", querystring, parValue) text2 0, 0, querystring + ": " + parValue add2 0, -1 _nLines = _nLines + 1 next j del _nLines add2 0, -_nLines next i
renoStatus = "" _r = APPLICATION_QUERY ("OwnCustomParameters", "GetParameter(Renovation.RenovationStatus)", renoStatus) text2 0, 0, renoStatus
2020-10-02 04:36 PM
Dominic wrote:Thx.
It works but you will get a localized string.
Would be nice if Graphisoft could offer a global integer parameter (-1; 0; 1)
From gdl.graphisoft.com:
DIM folderNamesArray[] n = APPLICATION_QUERY ("OwnCustomParameters", "GetParameterFolderNames()", folderNamesArray) for i = 1 to vardim1(folderNamesArray) step 3 DIM parNamesArray[] querystring = "GetParameterNames(" + folderNamesArray + ")" n = APPLICATION_QUERY ("OwnCustomParameters", querystring, parNamesArray) text2 0, 0, querystring add2 1, -1 _nLines = 1 for j = 1 to vardim1(parNamesArray) step 3 parValue = "" querystring = "GetParameter(" + parNamesArray+ ")" n = APPLICATION_QUERY ("OwnCustomParameters", querystring, parValue) text2 0, 0, querystring + ": " + parValue add2 0, -1 _nLines = _nLines + 1 next j del _nLines add2 0, -_nLines next i
so in shortrenoStatus = "" _r = APPLICATION_QUERY ("OwnCustomParameters", "GetParameter(Renovation.RenovationStatus)", renoStatus) text2 0, 0, renoStatus
Cheers
2020-10-02 05:28 PM
renoStatus = "" _r = APPLICATION_QUERY ("OwnCustomParameters", "GetParameter(Renovation.RenovationStatus)", renoStatus) if renoStatus = "New" then !! <- String is localized. So in your case it should be "Ny" !do something else !some code endifImportant: the returned string is localized. So in your case it should be "Ny"
2020-10-03 12:14 PM
2020-10-05 09:00 AM
Dominic wrote:Many thanks Dominic!
Yes. exactly like thatrenoStatus = "" _r = APPLICATION_QUERY ("OwnCustomParameters", "GetParameter(Renovation.RenovationStatus)", renoStatus) if renoStatus = "New" then !! <- String is localized. So in your case it should be "Ny" !do something else !some code endifImportant: the returned string is localized. So in your case it should be "Ny"
2020-10-05 09:02 AM
Braza wrote:We strongly don't like the dubious interaction between Renovation filters, MVO and GO. Polish parliament kind of.
Thanks Dominic! Much appreciated.
And thank you Mats for posting your question.
And I agree... It would be better if the parameter was a global integer.
Though I think the whole Renovation Status should be incorporated to the Properties.
And finally, introducing the Model Filter View Option.
Cheers,