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 - José Farinha

Pages: [1] 2 3
1
General Board / Element shadows Off, how?
« on: February 16, 2023, 06:05:48 am »
Anybody knows if there is a way to switch off the shadows behind classes with EA 16.1?

I could swear I've done that before using Preferences. Now, all I can find is a check box in
   Preferences -> Diagram -> Themes -> Applied styles,
which I already unmark, but shadows are still there.
I've considered setting the shadow colour to white, but would like to do it the proper way.

Thanks for your attention.
 

2
Yes, there is a mechanism.

Code: [Select]
$plural=%EXEC_ADD_IN("MyAddin", "Plural", className)%
name=%qt%%CONVERT_NAME($plural, "Spaced", "Underscored")%%qt%

https://sparxsystems.com/enterprise_architect_user_guide/16.0/modeling_domains/functionmacros.html

Just for the record, I wouldn't go near writing this function if I could avoid it. Even if it was just for English it is always going to be incomplete. That may be okay if the people writing it are the same people running it, but for something like EA you could be waiting months just to get one special case added.

Thanks, Eve.
I'll check it out. Looks feasible.

Best regards.

3
Just my opinion (whatever it might count): don't use them at all. Transformation sounds nice but the process is questionable. if you have a model and a derived one, there's usually a part that won't transform with simple rules. So you have to do that manually. Means you have two branches which somehow are linked. Also you usually adapt that transformed part to satisfy requirements in the one or other way (plus you have the backward way also quite often!). In the end you have two (cross-)dependent branches but there is no easy way to get changes from the base model into the transformed one. The only way I found was by manually synchronizing both and using "natural communication" to achieve that. EA's transformation also create lots of (invisible) dependencies which did not really help maintaining a synchronization (just because that is not trivial).

q.

Thanks for the advice, Querty.

I'm aware of the challenges of keeping models aligned. But I just want to forward engineer a pack of models I have and the macro I mentioned would save some work.

Best regards

4
Is it possible to create new, user-defined transformation macros?

I've read 16.0's documentation  and checked EA itself, but couldn't find anything.

For instance, I'd like to have a macro for transforming names from singular to plural and customize the DDL transformation to get something like this:

   name=%qt%%CONVERT_NAME(PLURAL(className), "Spaced", "Underscored")%%qt%

Note: simply appending an 's' doesn't suffice, since languages such as Portuguese and French have complex plural rules as well as special cases.

(I'm not sure if this is the right board for this question. Apologize if it isn't)

Thanks a lot


5
General Board / Re: Generating HTML from classes
« on: September 03, 2020, 09:09:47 am »
Thanks, Eve.

Following your second pointer I manage to solve the problem by clearing the filenames.

Best regards

6
General Board / Generating HTML from classes
« on: September 02, 2020, 09:06:49 am »
I’m trying to leverage a Java-targeted model I have to generate HTML forms from some classes. For that I added HTML as a new language to the Code Template Editor, created the templates I needed and after changing the ‘language’ of those classes to HTML I manage to have the HTML code I wanted.

The problem is that the code is still being generated into .java files. I have to change their extension to .html every time I regenerate them.

Does anyone know how to get an .html extension? I can't find a way.
Is it that every class gets intrinsically tied to a target language ever since they are created, which determines the file extension? Do I need to generate a new model targeted to HTML?

Thanks for your attention.
José

7
Bugs and Issues / Re: A class has become an enumeration, in sympathy
« on: June 19, 2020, 08:37:45 am »
Thanks, Geert. You saved me from a lot of work. But it was not straightforward:

I had already tried your first suggestion, but the problem was that the [...] button leads me to a list with a single option: «metaclass». That's the only stereotype available for enumerations.

The Design | ... | Change Type option worked, but only resorting to a trick:
1. I had to change my enumeration-class to an entity,
2. then the «enumeration» stereotype reappears in the [...] list and I could uncheck it,
3. then I changed the type back: entity -> class.




8
Bugs and Issues / A class has become an enumeration, in sympathy
« on: June 16, 2020, 09:52:53 am »

I've set the stereotype of a class to «enumeration». Strangely, another class connected to the former has also become «enumeration» and turned green.

The real problem is that I can't see a way to remove the stereotype from this class, because the stereotype field is now grayed out and the typical list of stereotypes has shrunk to a single option:
https://photos.google.com/photo/AF1QipO9jeFE6HBaCkCxZuzSNXiyZ4U5bdhS9oJ9S4Ne

Is this problem familiar to anyone?
Any suggestions?

Thanks for your attention
José

9
General Board / Re: Print to PDF shrinks diagram
« on: March 23, 2020, 03:07:08 am »

I've reported it meanwhile.

Thanks.

10
General Board / Print to PDF shrinks diagram
« on: March 22, 2020, 11:33:49 am »
Printing a diagram to PDF using "Print to PDF" is now reducing diagrams to a letter size that barely can be read. I believe this has been happening since I installed v15.1. The same diagrams printed to PDF using "Print" appear in normal size.

Does any one know why is that? Bug?
I've done a thorough scan of the settings but nothing seems relevant.

Thanks for your attention.

11
General Board / Re: Difficulty when showing stereotypes
« on: March 17, 2020, 02:58:55 am »

Thanks, Geert.

I was assuming it was diagram-specific setting, because we may want grouping in some diagramas only.
Maybe I'll submit a feature request about it.

Best regards.

12
General Board / Difficulty when showing stereotypes
« on: March 17, 2020, 01:13:11 am »

Can’t find in the current EA a way to show operations with their stereotypes prefixed, as I could with previous versions using the diagram properties config tool.
I mean, show this:

«stereotypeA» operation1 (...)
«stereotypeA» operation2 (...)
«stereotypeB» operation3 (...)
«stereotypeB» operation4 (...)

instead of this:

«stereotypeA»
    operation1 (...)
    operation2 (...)
«stereotypeB»
    operation1 (...)
    operation2 (...)

Is it not possible anymore or is there something that I’m missing? Has anyone come into this problem?

Thanks and best regards
José

13
Something like that is also in the help (IIRC). RE works just fine and gives you a real model.

q-

Thanks.
Don you mean reverse engineering the interop.EA.dll?
If so, I've done it. I got a flat, non-UML diagram :-(

14
I think you can reverse engineer the interop DDL (but I never tried it)

I've always just used the help.

Geert

I've done it, but since it required a disassembly the result is highly "flat" (no generalizations, no associations, etc.).  I was looking for a genuine UML diagram.

Thanks for the hint, anyway.

Best regards

15
Automation Interface, Add-Ins and Tools / Diagram of the EA Object Model
« on: February 07, 2020, 11:18:31 am »

Is there any publicly available diagram of the EA Object Model?
For instance, something of an .eap file displaying the contents of the manual at https://sparxsystems.com/resources/user-guides/15.1/automation/enterprise-architect-object-model.pdf.

Maybe that would be the best way to get acquainted with the OM.

I've searched through the user guide library and EA's installation folder but could find any.

TFYA + best regards

Pages: [1] 2 3