Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hurra

Pages: 1 ... 11 12 [13]
181
Automation Interface, Add-Ins and Tools / Re: Add in: get stereotype
« on: September 21, 2016, 12:32:53 am »
I'm pretty sure this expansion is only done in the print statement and not generally in string expansion. Could any Sparxian affirm that?

q.

I'm sorry, I don't think I understand what you mean..

As I said, I read in a thread that this would be possible with an add-in. Is that statement false?

Thanks!

182
Automation Interface, Add-Ins and Tools / Re: Add in: get stereotype
« on: September 20, 2016, 09:31:57 pm »
Thank you for your answer.

I have tried this in my add-in:

Code: [Select]
public string GetValueForStereotype(EA.Repository rep, string eaGuid, object stereotype)
        {
            EA.Element element = rep.GetElementByGuid(eaGuid);
            string ret = element.Stereotype;
            return ret;
        }

and shape script
Code: [Select]
decoration symbol {
    orientation = "SE";
Image("Mall::#ADDIN:GetStereotype, GetValueForStereotype#.emf",0,0,100,100);
}

where Mall i the name on my technology.

I have tried to print #ADDIN:GetStereotype, GetValueForStereotype# which gives me the correct output, but no image is shown.

Thanks for your time.

183
Automation Interface, Add-Ins and Tools / Add in: get stereotype
« on: September 20, 2016, 04:49:10 pm »
Hello!

A few weeks ago a saw a post on this forum on how it is possible to create a add-in to allow shape scripts such as

Code: [Select]
decoration symbol {
    orientation = "SE";
Image("#STEREOTYPE#.emf",0,0,100,100);
}

However, I didn't know anything about creating add-ins and had to read up on that. Now I can't find the post regarding that add-in. I have searched this forum and googled like crazy...

Can someone help me with this topic or refer me to that forum post?

Thank you,

Robert.

Pages: 1 ... 11 12 [13]