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 - Thomas Arnbjerg

Pages: 1 2 [3] 4 5 6
31
Is there a way to launch a script from a diagram? - e.g. a link in a diagram in a report package.

I often need to run a script before generating a report and it would be easier visualize this by including the invocation in the report packages somehow.

32
Found it. In the tool box for the profile there is a way to synchronize a stereotype.

33
I've created a UML profile, which extends the attributes normally associated with are requirement.

After creating a number of requirements with stereotype from the profile and assigning values to these custom attributes, I've added an attribute to the profile and re-imported it. The new attribute does not appear on existing requirements. Is there a way to have existing elements with the stereotype 're-apply' the stereotype to include this new attribute without deleting existing values?


34
I think this issue is also related to the master-replica implementation. We work in replicas, which are synchronized with the master. The retrieval order follows the insertion order in the database so if synchronization order adds new elements to the master in a different order than the insertion order in the replica the retrieval order is different in the master. This is propagated to any new replicas.

35
Thanks for the suggestions.

The order of attributes in Java Script seems to be always alphabetical - i.e. does not necessarily match the presentation order in EA.

36
I have a a class with the attributes 'left', 'right', 'middle' as seen in the project explorer.

When I iterate over the attributes in Java script the order is 'left', 'middle', 'right'.

Is there a way to avoid this?? - It basically blows up my ability to autogenerate serialization/deserialization code for classes.

37
Ok - it's an internal error somewhere. If i clone the two interface classes (i.e. identical) I can do the code generation.

So that's a workaround.

38
General Board / Error "Encountered an improper argument" during code gen
« on: November 01, 2023, 09:18:43 pm »
When I generate C++ code from two interface classes I get the error message "Encountered an improper argument".
It has worked before for the two interfaces in question.
The error does not appear for several other interface classes with the same number of parameters and data types.

Any ideas?

39
Is there a way to paste text into note fields without formatting?

I know the notepad workaround - it's just lots of wasted operations (again and again and again)....

40
I've created a script, which sets the project constants based on tags on a report package. Is there a way to trigger document generation from javascript (display window 'Generate Documentation') and avoid having the user press F8?

41
With a custom language, code generation always overwrites the code - i.e. this solution is only viable for fully autogenerated code.

42
Fixed this by creating a new programming language and copied in all C++ templates. Had to export the new language, update the code options in the exported file, and re-import.

43
Is there a way to either:

1) Avoid having EA generating includes for known data types?
2) Somehow configure the format of includes generated by EA - e.g. switch from backslash to forward slash, use relative paths.

44
Ok - fixed it by adding a tagged value "implIncludes" with the needed includes as part of my script. I then modified the template "Import Section Impl" to contain the following fragment:

..
%if classTag:"implIncludes" != ""%
#include %qt%%className%.hpp%qt%
%classTag:"implIncludes"%
%else%
%fileHeaders%
%endIf%
..

45
Well  not so ideal.
In the generated cpp file the first line says '#include ""', where it should say '#include "<header file name>". If I set the path from the UI and re-generate (override ) the first include statement is correct.

Any other suggestions?

Pages: 1 2 [3] 4 5 6