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.


Topics - heba

Pages: [1]
1
Hi all,

I have some diagrams with notes linked to elements (classes) and their content linked to the element feature "Element note". 
The class was created using reverse engineering from source.

After running reverse engineering again the class gets updated. Its element note remains as it is but text from the note disappears. :(

I can "repair" this by opening the dialog "Link this Note to an element feature..." and just pressing OK. So the text is not lost and there must be something wrong with the link.

Did anyone else run into this issue or has some more information?

Thanks in advance!
Heiko

2
Automation Interface, Add-Ins and Tools / Create formatted element 'notes'
« on: February 08, 2017, 10:38:10 pm »
Hi all,

When I use the rich text features of the EA notes editor I get some HTML-like formatting in the element description, e.g. <ul> for the beginning of an unordered list or 
 for line breaks.

I want to generate element notes via automation which contain some formatting like this but I have not found a way to prevent EA from quoting the "&".  It seems that assigning  Element.Notes = "
"  always converts it to "
" which basically converts the formatting tags into plain text.

Does someone know how to mark the '&' as special char not to be converted?

Thank you!
Heiko

3
Hi,

in my activity charts I sometimes use "Call behaviour" action elements.

Before EA 13, they had the name resp. caption "<element name>: <activity name>".  For example, when I name the activity "GetLock" and the element "Call" it read "Call: GetLock".

With EA 13, the elements only have their names as captions but do not show the name of the activity where they are an instance of.  In the above example, it just reads "Call" now.

Is there a new option to show or hide the name of the base element?   When I open the model in an older EA version it appears with this name.

Thank you!
Heiko

4
Hi all,

I want to generate code for classes using an automation script and I'm searching for the respective method.  There should be something like Element.Generate(File, Language) but I cannot find it. And I'm quite sure that I have seen something like this  :-\

Use case is to generate a package resp. some elements of it two times with a different language in each run.

Thanks,
Heiko

5
General Board / What is the base template for "typedef"?
« on: April 23, 2016, 12:53:03 am »
Hi all,

I have a question regarding code generation.

In my model I have a UML class "MyNiceClass", stereotype = "struct" with some attributes.  I set the tagged values "typeDef" = "true" and "typeSynonyms" = "MyNiceClassType".  Now when I generate C code I mainly get what I expect:

typedef struct MyNiceClass {
  /* some attributes with doxygen documentation */
} MyNiceClassType;


So attributes and the attribute notes have been modified by me and this works well.  What I now want to do is also modify the "typedef struct" (the "frame" of the attributes) but I cannot find any template to modify.  Nothing in the "class" area influences the result here. 

Does anyone know what the correct base template is or if EA has some internal magic processing these "typedef = true" classes?

Many thanks!
Heiko


6
General Board / Security users - windows authentication
« on: October 29, 2015, 02:32:26 am »
Hi all,

I'm trying to setup a repository with security enabled. In the "Security Users" dialog I can successfully import AD users.

But it seems that selecting the "Accept Windows Authentication" checkbox does not have the desired effect.  I cannot login with my Windows/AD credentials.  Setting a normal/specific EA user password works.

Help says, when importing "Enterprise Architect generates random passwords for Windows user IDs; however, if necessary you can assign a new password to an imported user ID".  

That sounds wrong, somehow?  Because I want users to be able to just use their regular Windows password and not having individual passwords.

Do I miss something, or do I make something wrong?  

Thanks!
Heiko

7
General Board / Visualize a variable (print it) at a diagram?
« on: March 24, 2015, 12:40:12 am »
Hi all,

is there a chance to print a variable's value on a diagram?  I tried to do that using a hyperlink, or in a note... but the %VAR% is never expanded.

My last idea would be something stereotyped plus a shape script but this sounds a bit too much :)

Thanks
Heiko

8
General Board / Local directories and paths
« on: March 05, 2015, 11:14:06 pm »
Hello,

EA provides the possibility to define a local path and assign it to a variable, e.g. define %BRANCH% and assign to /project/branch-1 to be used for packages.

Now, when I'm branching, I branch the eap together with the controlled packages which aren't version controlled but just Xml files.  Afterwards I'd set %BRANCH% to the new branch and I can load+save packages to that branch.

Unfortunately, these variables seem to be global. So if I have more than one branch and change %BRANCH% to /project/branch-2,  EA also exports packages from the first branch here.

Does anyone have a better idea here?  (Changing the branching strategy is not an option. We're branching the whole project per feature.)

Thanks,
Heiko

9
Hi all,

I'm currently trying to work with the selected object in a diagram. I want to modify the object from my Add-In after right click.

In TreeView this works fine. In Diagram I start with:
Code: [Select]
EA.Diagram Diagram = Repository.GetCurrentDiagram();
if (Diagram.SelectedObjects.Count == 1)
{
  Object Element = Diagram.SelectedObjects.GetAt(0);
  ...

Now Element is not null but it's also nothing to be successfully casted into EA.Element or something I can use to modify the class.

What might I've been missing in the documentation?  How can I get an EA element out of this collection which can be modified?

Many thanks,
Heiko

10
Hi all,

I created a stereotype "MyReq" of a "Requirement" and added some tagged values.  This gives a new tab "MyReq" in the properties window with all the tagged values. Using the automation interface I'm also able to create new requirement objects  into the repository together with the tags.

Now if the requirement object already exists but without that tagged value I'll try to add this using

TaggedValues.AddNew("VALUE1", "MyReq");

This result in adding the tagged value to the "base class", to the "Tags" section but not the other existing tags defined by the stereotype. I also played around with the "type" parameter and used "Requirement::MyReq" and so on but always got the same result.

Does anyone knows what's going on here and what would be the correct call?

Many thanks
Heiko

Pages: [1]