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 - Simon M

Pages: 1 ... 390 391 [392] 393 394 ... 415
Probably the easiest way to do this is to define a search and tell EA to run it using Repository.GetElementsByQuery.

If the search needs to be executed on multiple computers export the search and add it to EA using Repository.AddDefinedSearches.

No.  Forgetting something does not make anyone stupid, but I am glad you found the problem.

Just a note.

C++ code engineering does not use the parameter kind.  So although your diagram will look right if you set those options.  It won't generate out.  You can change the templates, but then it won't synchronize.

I know that shape scripted elements currently don't expand to fit their contents.

But maybe it would be worth posting an example of the name that is being wrapped by the default shape (what that default shape is) and not wrapped by the shape script.

David.  No, I don't think there is any way that could be done.

As for two different decorations.  It may be possible to do both decorations, but I suspect only one shape script can be drawn.

I was also hoping that you may be able to get the additional stereotype from the one shape script, but that doesn't appear to be possible.

For tagged values you can check the HasTag for the two tags in question and draw the appropriate decoration.  You just need to have a stereotyped object to do it.

Okay, I'll elaborate.

Some time ago I wrote a profile for EA (that so far hasn't seen the light of day) that specifies that the instances have the same notation as the classifier, but with the ': classfier' after the name.  This required accessing the stereotype/classifier of the classifier from the shape script so that it could draw the appropriate notation.

Think of two stereotypes, a circle and square.  In the object shape script you can say if my classifier stereotype is a circle, draw a circle, if otherwise draw a square.

If misused this would certainly add fuel to anti-shape script movement, but for some domains, such as the one that I was working on at the time it is necessary.  I'm not talking about UML here, and it would not fit with UML at all.

Shape scripts can only be applied to something with a stereotype.  This means that your instance will also need a stereotype.

(However, I have had success using Classifier.Stereotype or Classifier.Metatype to change the display of a shape scripted instance based on what it is actually an instance of.)

That code appears to be trying to get an already open EA application.  If you don't have one it would fail when accessing app.Repository, so either try adding a null check.

Automation Interface, Add-Ins and Tools / Re: Create a RTF from API
« on: May 02, 2008, 08:15:43 am »
The default templates are internal to EA, the user templates are stored in your model.

I don't think that either are available to the automation interface.

Automation Interface, Add-Ins and Tools / Re: Create a RTF from API
« on: April 30, 2008, 08:04:06 am »
Are you looking for Project.RunReport?  (

Dollar signs denote variables in the template framework.  To generate a literal dollar sign you will need to use %dl%.

Then I would send a bug report to sparx systems.

Hello Everyone,

We have been able to restore the missing posts.

If there are any further problems then please let us know.


Simon McNeilly

Hello Everyone,

It appears that our restore to the general board was incomplete.  Until now we were unaware of the problem.  We are currently investigating how we can restore the lost posts from our backups.

This will be done with as little further disruption to the forum as possible.

We will provide updates when we can.

Until then, sorry for any inconvenience caused.


Simon McNeilly

Pages: 1 ... 390 391 [392] 393 394 ... 415