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 - Geert Bellekens

Pages: 1 [2] 3 4 ... 525
16
The model search I tend to use most is a very simple search by GUID that returns a single element.
You can use that search in your situation as well.

If fact if you look at my example in detail you should be able to quite easily adapt it to your situation.

Geert

17
Bugs and Issues / Re: Error opening SQL Server shared repository
« on: February 19, 2018, 06:41:47 pm »
Open EA and start project transfer from a local .eap file to your DBMS repository.

Geert

18
So there is a way to extend the UML?

There is, but not "in place".
Extending the UML types would mean that you would have to create your own stereotype for each UML metatype.
Each stereotype would then have your tagged value (this can be inherited from a single stereotype)

But it would also mean that from now on you cannot use any of the "standard" UML stereotype, but only your extended stereotypes. So you probably want to duplicate each and every UML toolbox.

And to be able to use the toolboxes in a convenient way you would then have to to override the default toolbox for each UML diagram type.

Then once that is all in place you probably want to write some kind of script to transform your regular UML elements to your extended stereotype.

So a whole lot of work for little to no added value when compared to simply adding the tagged value to all elements (without messing about with UML profiles)

Geert

19
Still, would he have used a TEST or DEV environment then this would not have affected the production users.

Geert

20
General Board / Re: How to create / design completely new elements for EA?
« on: February 09, 2018, 01:43:57 am »
You always have to start from either a UML metatype, or one of the "extended" metatypes.

But except for maybe a theoretical argument, I don't think that should be a problem.
All the existing MDG's do it like that.

Geert

21
I think you would be better off adding the tagged value to all elements without touching the UML profile.
I know that is kind of cheating, but otherwise you would have to extend each every single UML metatype (and the other metatypes you are using).

Adding the tag automatically can be done with an add-in or EA-Matic script.

Geert

22
Automation Interface, Add-Ins and Tools / Re: Update tag value
« on: February 08, 2018, 11:06:27 pm »
The problem is here:

Code: [Select]
currentTag.SetAttribute("eventDefinition", "Timer");
I'm not sure what the SetAttribute is used for structured tagged values (I've never used that). But I'm pretty sure you should just set the currentTag.Value, so
Code: [Select]
currentTag.Value = "Timer");
Also you don't need all those Refresh() calls. Why does everyone keep including those. You only need those if you add or remove an element from a collection. Refresh() will then make sure it contains the correct number of objects. I almost never use that.

Geert

23
General Board / Re: need help for report template setup
« on: February 08, 2018, 04:00:55 pm »
The way I would do it is use virtual documents.
With a search based on the GUID you can single out the subprocess.

I've written up my process here: https://bellekens.com/2015/11/12/tutorial-generate-complex-documents-from-enterprise-architect-with-a-two-step-semi-automated-approach/

Geert

24
Add a Generalization to the subclass's connectors collection and set the target id to the superclass.

Geert

25
Check out the documentation in the manual:
http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/automation/project_2.html

With the LayoutStyle parameter you can control the layout.

Also worth looking is the settings for the layout style.
Go to diagram properties | Diagram | Set Layout Style.
That dialog also includes a checkbox to use that style as the default style for the whole repository.

Geert

26
I usually import MDG's in the model.
But I also usually have clients who have a single (or a few) central repositories.
In this type of setup, I find importing the MDG into the model the easiest as I don't have to worry about client configurations.
Users of this model have access to the MDG regardless of their local configuration.

Geert

27
Problem with the defined tagged values is that this doesn't include the MDG tagged values IIRC.

To get those you would have to find the MDG xml file and parse that.
If it is you own MDG then you could have the checks hardcoded.

Geert

28
I always test my MDG, script, RTF templates, etc... in a separate TEST environment (repository) to make sure I don't break anything in the production environment.

I'm guessing you had configured the required MDG's in the production repository?

Geert

29
I'm afraid you'll have to write your own validations.
AFAIk there is nothing in the API that will validate it for you.

In fact I think there is really no validation of tagged values at all in EA. It is only the GUI that will try to prevent you from entering invalid values.
But if you change the definition of a tagged value, EA will not complain about values that are now invalid according to the new definition.

Geert

30
I guess it depends on how you are importing them.
Basically you would need to add your validation to code that does the importing.

Geert

Pages: 1 [2] 3 4 ... 525