I would like to have a way to see the number of icons on an Object.
Right now there's a work around to get the number of Icons by testing them in a loop with existsIcon, but it's impossible to get the name of the Icon that is found.
Is this something that could be expanded? Like <Path>.getIconName(IconNumber:<integer>) or similar.
Solved! Go to Solution.
If you change the icon to the one you want to get the name of and change it back after then the task becomes quite easy.
param IconNumber: Integer -> String var this: Object := self.~ var currentIcon: Integer := this.currIconNo this.currIconNo := IconNumber var iconName: String := this.currIcon this.currIconNo := currentIcon return iconName
This would be the code that I would use for the method you have suggested.
Look up the "getAttribute" method, it will return to you its value, but if you also give it a boolean variable it will change that to tell you if the attribute is inherted or not.
I cannot find a method to turn the inhertiance back on though, so guess someone else will need to help there.