September 10, 2016 at 12:16 #2710
I am stumped as to how to make a values list of property names (in a label) when it is not allowed to use Properties_of_parent in the parameter script. I know this list can be made, the Archicad Category and Property label has it. How is this done?
September 19, 2016 at 08:35 #2729
we are currently working on an article which explains the method for such value lists (would be too long for a forum post). Hang in there, please.
Here are some hints, so you can work it out for yourself if it’s urgent:
our labels use the ui_custom_popup_infield GDL command. It can create a “value list” using the returned array values of requests in the User Interface script alone. The selected value can be displayed in 2D.
Library Developer, Library Team
September 19, 2016 at 19:46 #2730
Thanks Dominika, with that hint I have made some progress. I have the property chooser working in the UI script. (Though the ui_outfield seems to show the ‘hiddenID’, while the names are shown in the list. I worked around this by making the hiddenID the same as the name.)
Now I am stuck again on Property_Value_Of_Parent. I have figured out how to get the property ID which corresponds to the chosen property name. According to the ref guide, the value is returned in an array ‘propertyValues’. The value is in there; I can use PRINT to see it, and there is no other data printed. Vardim1 reports that the array dimension is 1, yet this:
sPropContent='' ! init sPropContent= propertyValues
gives an error of ‘Index value greater than array dimension’.
Thanks again, looking forward to the article.
September 19, 2016 at 21:18 #2731
Update: The error is only in the editor, in the placed label the value text comes through.
September 20, 2016 at 18:10 #2734
I hope that Categories will be covered by this article as well. There is something missing between GetParameterFolderNames and GetParameterNames in the manual. I don’t see where folderNamesArray becomes 2 dimensional, or what the i is supposed to mean.
October 20, 2016 at 12:48 #2812
October 20, 2016 at 14:39 #2813
Thank you Dominika, I did see the notice on the other question and I meant to thank you for it. It was very clear and I have already made a lot of progress.
You must be logged in to reply to this topic.