Home › Forums › Problems and solutions in GDL › Informations from the environment › Properties_of_parent and Values List
- This topic has 6 replies, 2 voices, and was last updated 8 years, 3 months ago by
James Murray.
-
AuthorPosts
-
-
September 10, 2016 at 12:16 #2710
James Murray
ParticipantI 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?
James M
-
September 19, 2016 at 08:35 #2729
Dominika Bobály
KeymasterJames,
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.Dominika Bobály
Product Manager
GRAPHISOFT SE -
September 19, 2016 at 19:46 #2730
James Murray
ParticipantThanks 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[1]
gives an error of ‘Index value greater than array dimension’.
Thanks again, looking forward to the article.
James M
-
September 19, 2016 at 21:18 #2731
James Murray
ParticipantUpdate: The error is only in the editor, in the placed label the value text comes through.
James M
-
September 20, 2016 at 18:10 #2734
James Murray
ParticipantI 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.
James M
-
October 20, 2016 at 12:48 #2812
Dominika Bobály
KeymasterJames, the article is ready. Hope it gives you some answers.
Dominika Bobály
Product Manager
GRAPHISOFT SE
-
-
October 20, 2016 at 14:39 #2813
James Murray
ParticipantThank 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.
James M
-
-
AuthorPosts
- The forum ‘Informations from the environment’ is closed to new topics and replies.