We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2022-12-18 10:48 PM
I am trying to modify the Wall Framing Object to provide the number of studs as a parameter that can be scheduled. Based upon my review of the gdl code, it appears that the row count of the array for "stud" parameter provides the desired data. There seems to be some counter subroutines that build the size of array.
Any suggestions for revisions to the gdl code to turn the row count of the array to a parameter that can be called in a schedule?
Regards,
jfa_ra
Archicad since 8.0
Solved! Go to Solution.
2022-12-18 11:50 PM - edited 2022-12-19 12:13 AM
Hi,
You would have to make a parameter that the schedule could see, say "Number_of_studs"
then use the VARDIM1() or VARDIM2() command to read the size of the array and set it to the new parameter. (I don't know if its a 1 or 2 array)
Number_of_studs = VARDIM1(Stud)
parameters Number_of_studs = Number_of_studs
hideparameter "Number_of_studs"
in the scedules "Scheme setting" add field based on "Library part Parameters"
select the library it is in, find the "Wall framing" library part, then it will display the new field in the list,
"add" it to the "Selected parameters" list
Note:
use the "hideparameter" in the script, using the cross beside the parameter in the parameter window will mean it does not show up in the available parameters list.
I hope this helps.
2022-12-18 11:50 PM - edited 2022-12-19 12:13 AM
Hi,
You would have to make a parameter that the schedule could see, say "Number_of_studs"
then use the VARDIM1() or VARDIM2() command to read the size of the array and set it to the new parameter. (I don't know if its a 1 or 2 array)
Number_of_studs = VARDIM1(Stud)
parameters Number_of_studs = Number_of_studs
hideparameter "Number_of_studs"
in the scedules "Scheme setting" add field based on "Library part Parameters"
select the library it is in, find the "Wall framing" library part, then it will display the new field in the list,
"add" it to the "Selected parameters" list
Note:
use the "hideparameter" in the script, using the cross beside the parameter in the parameter window will mean it does not show up in the available parameters list.
I hope this helps.
2022-12-19 02:44 AM
Sweet! That is exactly the help I was seeking. Thank you for the quick, detailed response!
JFA