Populating Drop-Down Enums

Wed 14. Jun 2017, 00:25

Hi, I'm wanting to populate a drop-down list for my users through code. Is this possible?
I've got ObjectProxy -> Template -> Feature -> PropertyDefintion for a drop-down, but am not sure at which level I'd manipulate the available options. I get the feeling that the property value on the Object proxy is just some sort of int or technical name pointer to the available values of the list, and imagine that the list itself is defined in the Feature. I can get the Feature through a query, but don't see any properties for adding/removing values. Basically, I want the editor to check some values of the custom properties of an ObjectProxy, then restrict valid choices in the enum to some subset.
Posts: 14
Joined: Wed 19. Apr 2017, 22:08

Re: Populating Drop-Down Enums

Mon 19. Jun 2017, 09:35


with the current API it is not possible to modify Templates/Features/Properties in any way.
The objects are only accessible as readonly values.
User avatar
[Articy] Peter Sabath
Articy Staff
Articy Staff
Posts: 89
Joined: Wed 23. Nov 2011, 13:58
Location: Bochum

Return to articy:draft Macro Devkit

Who is online

Users browsing this forum: No registered users and 2 guests

Who We Are
Contact Us
Social Links