Hello.
Although I've been using EA heavily since about 2004, I'm still fairly new to the horrors of Shape Script. So, if this is silly question, please forgive me.
As I understand it, Shape Script has the capability to expand properties and tags into strings, using the #<property name># notation. So, for example, if I want to print out the name of an image that is semantically associated with a stereotype, I might do something like this:
print("#stereotype#.emf");
If my stereotype is "bob", then the above prints out "bob.emf". Marvellous.
What if I then want to display the image? Let's say our stereotype is again "bob", and I've already imported an image named "bob.emf". I kind of expected this to work:
image("#stereotype#.emf", 0, 0, 100, 100);
And drum roll..... and nothing. Nada. Squat. Not even a rude message. The image simply isn't displayed.
So, my question is, why not? Is my expectation all wrong? For example, is the macro expansion performed by the print function itself, but not by the image function, rather than by some pre-parser?
Thanks.