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 - SimonMerrick

Pages: [1]
1
Thank you Neil  :)

2
Again good thinking, was worth a go.. same result as we both suspected  :-/

Thank you kindly for your attention/help David. I will post a resolution here if/when I manage to get it right :)

Best,

Simon

3
Good shout. Sadly same result though  :(

Have now tried qualifying the name with profile.stereotype, profile:stereotype, and profile::stereotype

I'm starting to become convinced that the interface doesn't recognise the "SynchProfile" function or the "Repository" class  ;)

(More likely the function I would suspect)

4
Thanks for the swift responses guys, much appreciated.

David; I'm not using MDG Technologies. I think that the Repository.CustomCommand approach is the solution I am looking for here.

However when I execute that function, I get back an error message of the format: -

"Error: Unknown command: Repository.SynchProfile (MyStereotypeName)"


And of course, on inspection, the desired effect has not been acheived.

KP; have I misunderstood the semantics of your code there?

My code reads:-

Code: [Select]
Repository.CustomCommand( "Repository", "SynchProfile", "MyStereotypeName" )
I assume that the error message I'm getting, truly does mean that the interface does not understand the command (as opposed to cannot find the stereotype)...

I am coding in C++ and using EA version 7.0.817 (Corporate Edition) if that has any relevance.

5
Hi,

I am using the Automated Interface to add UML classes to an existing project (.eap file).

There is a stereotype in that project, which has a set of tagged values on it (these are defined in a UML profile that I imported), which I apply to my new classes in the hope that the stereotype's tagged values will then appear on my newly generated classes.

I know that the tagged values were successfully imported because when I right-click on the stereotype (in the Resources view/tree) and click on "Synch Tagged Values and Constraints" the tagged values do appear on all my stereotyped classes... but of course without this manual intervention, the tagged values don't appear on my classes... and I need to populate them during the automated process  :-/

So the Question is: - Is there a way to synchronise these tagged values via the Automation Interface?

It would be a start just to be able to access the tagged values that are set on my stereotype.

Please Help!  :(

Pages: [1]