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]
16
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

17
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

18
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

19
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

20
General Board / Re: V12 and V11 compatibility
« on: March 08, 2015, 08:59:07 pm »
Quote
The only thing I got in trouble with was a change in the API when retrieving Elements or Packages.
The operation used to throw an exception if something was not found, and  in v12 it suddenly returns an empty object.

Seems that I've run into exactly this problem.  EA12 reliably crashes with with my add-ins.  I'll start to investigate, thanks for pointing this out!

-Heiko



21
General Board / Re: Local directories and paths
« on: March 06, 2015, 08:27:22 pm »
Thanks, but that's not really an option.  

By the way, in the branch I only modify the controlled package. The EAP file is not merged and the controlled package XML is basically only copied back which is why I usually don't get in trouble here  :)

Best would be to have a path relative to the EAP file path but so far I did not find something like this.

-Heiko

22
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

23
Works fine, thanks!  Never came to the idea that these objects are something different than the "regular" EA objects.  :(

-Heiko

24
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

25
That helped, many thanks!

Seems that this function does most of the stereotype cleanup which I intended to do manually :-)

-Heiko

26
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

27
XSLT can be your friend here.  I export XMI and let a XSL translator process the XMI outside EA for something similar.  Works quite well but is usually less compatible between the major XMI versions :(


-heiko



Pages: 1 [2]