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 - heba

Pages: [1] 2
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
Okay, thanks a lot for pointing this out.

If I remove the name of the CallBehaviour action the project browser also shows the name of the called behaviour so this correction does not look too bad.   I think I can live with that and will remove the names of all these elements.

BR
Heiko

4
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

5
They are stored in the file %appdata%\Sparx Systems\EA\paths.txt

Yes, but should we really use system file access to read these variables? I was hoping to find something more internal...

Passing the variable to the "dir" parameter in the "ExtraOptions", e.g. "Dir=%TRUNK%\\generated\\" does not work. It generates but the files do not seem to appear anywhere :o   Although this is not documented as supported, could it be that it should work but is a bug?  :)

BR,
Heiko

6
Ok, thank you!  I managed to get this to work.

Now I'm left with one final question for which my searches did not return any useful result:

To use relative paths our classes normally have a local variable like %TRUNK% in their Filename.  Is it possible to query this variable's value using the API?

Btw, I wonder why GenerateClass() does not use the "ExtraOptions". Some parameters like overwrite, dir or even lang would be useful - at least to me ;-)

BR,
Heiko

7
Thank you!

Am I right that I cannot pass my desired language even for the class?

  GenerateClass (string ElementGUID, string ExtraOptions) --> ExtraOptions: [..] currently unused

and GeneratePackage () does not provide such a feature in the ExtraOptions.

I suppose the language is taken from the GenType property and the only solution is to change that before generating?  Which again means I have to lock the package if security is enabled, right?  That could make things more complicated  ???

BR,
Heiko

8
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

9
General Board / Re: What is the base template for "typedef"?
« on: May 02, 2016, 06:18:32 pm »
Thank you, Simon!  For some reason I never saw these overrides. They look very promising to what I want to do :)

-Heiko

10
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


11
General Board / Re: Security users - windows authentication
« on: November 02, 2015, 08:45:45 pm »
After some more tests I found that I might have misunderstood that feature.

What I did (and missed to mention, sorry) was to use the "Login as another user..." entry in the Security submenu.  This does not seem to work at all with Windows authentication.

If I close the project and reopen it selecting Windows authentication is opens the project with the permissions I gave to the current Windows user (me) so I expect I'm logged in with my Windows account.

By the way, is it possible to see to currently used DB connection and the current EA user account?

-Heiko

12
General Board / Re: Security users - windows authentication
« on: October 29, 2015, 06:53:10 pm »
Access to the DB is working. I'm using a MSSQL server 2014. Using SQL server management studio I can select "Windows authentication". It automatically selects my account and login + access works fine.

In EA, I tried both formats to login. Using the domain in front of the username, DOMAIN\username, works after entering a dedicated password.

I'm not that expert with SQL server but I'll try to figure out if EA connects to the server and what credentials it is using.  

I was expecting that the windows authentication used by the EA security feature is only used internally by EA since the account to connect to the DBMS is a different one.  Now when thinking about that... maybe that's the mistake :-?   I'll try to check this as soon as possible.

13
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

14
General Board / Re: Visualize a variable (print it) at a diagram?
« on: March 25, 2015, 06:43:35 pm »
Thanks, I played around a bit.  But I wasn't able to read the path variable in any kind so far.  It's probably only available to some internal functions :(

-Heiko

15
General Board / Re: Visualize a variable (print it) at a diagram?
« on: March 24, 2015, 02:38:32 am »
Sorry for the unclear description.

Using "Local directories and paths..." I set a variable e.g. "BASE_DIR" to a certain path.  I want to display these values at the home page (initial diagram) of the model.

-Heiko

Pages: [1] 2