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

Pages: [1] 2 3 4
1
Yes, it worked. Thank you very much.

I suspect that what you're seeing is the Windows https authentication. This is separate from EA security (and shows up before EA knows that security is enabled.)

If I'm right, the instructions for configuring the worker will help.

https://sparxsystems.com/enterprise_architect_user_guide/15.2/pro_cloud_server/manual_worker_config.html
Quote
However, when the model has security enabled the connection string requires USER and PASSWORD parameters:
EAConnectString:model1 --- ;Connect=Cloud=protocol:http,address:localhost,port:804,user:fred,pwd:pwdxxx;Data Source=model1;

2
Setting it before also not working.

setting eaRepo.SuppressSecurityDialog = true; after trying to open the repository (and thus showing the security dialog) isn't going to help much I guess.

Geert

3
I am trying to connect to a model protected by username and password by using openFile2() method. Every time it shows me the Login to EA Repository dialog which should be suppressed by default if I provide correct username and password. Setting SuppressSecurityDialog to true is also not working. I am using version EA 13.5.1315. Is this a bug? I don't know about the latest version of EA as I don't have license. Is there any fix for this? I have tried the below code:

Code: [Select]
Repository eaRepo = new Repository();
eaRepo.OpenFile2(inputFilePath, "user", "password");
eaRepo.SuppressSecurityDialog = true;

4


yes
So it's the first part until the colon from the connection string that you have to omit?

q.

5
Following is the working code:

Code: [Select]
eaRepo.OpenFile2("Test-Architecture-CM --- ;Connect=Cloud=protocol:http,address:apec.test.de,port:80;Data Source=Test-Architecture;DSN=Test-Architecture;","abc","abc")

You likely need to mail Sparx support unless one of the supporters picks on this one.

q.

6
I have emailed the support about the problem. Also, I have tried to find a documentation regarding connecting to a cloud model, but so far no luck. Do you have any idea?

You likely need to mail Sparx support unless one of the supporters picks on this one.

q.

7
Tried, didn't work, says file doesn't exist. The solution only works if I create a shortcut from the connection string and rename it as a .eap file. It would have been great if direct connection to cloud can be established. Also I am facing another problem, SuppressSecurityDialog is not working, by default or explicitly setting it to true is not working. I am using EA version 13.5.

Code: [Select]
Repository eaRepo = new Repository();
eaRepo.OpenFile2("Connect=Cloud=protocol:http,address:apec.test.de,port:80;Data Source=Test-Architecture;DSN=Test-Architecture;", "abc", "abc");
eaRepo.SuppressSecurityDialog = true;

Try leaving the first part off:

Code: [Select]
eaRepo.OpenFile2("Connect=Cloud=protocol:http,address:apec.test.de,port:80;Data Source=Test-Architecture;DSN=Test-Architecture;","abc","abc")
This same principle works for database connections. I've not used it with a cloud connection before.

Geert

8
I have tried the following but didn't work, said file not exists:

Code: [Select]

eaRepo.OpenFile2("EAConnectString:Test-Architecture-CM --- ;Connect=Cloud=protocol:http,address:apec.test.de,port:80;Data Source=Test-Architecture;DSN=Test-Architecture;","abc","abc")


I can create a shortcut of the cloud EAP file with the connection string though:

Code: [Select]
"EAConnectString:Test-Architecture-CM --- ;Connect=Cloud=protocol:http,address:apec.test.de,port:80;Data Source=Test-Architecture;DSN=Test-Architecture;","abc","abc"

I guess that you can pick the DSN from the Open menu when you select Edit Connection String from the context of the DB.

q.

9
For the input file path, how should I specify the http path, port and the model name? Is there any specific format for that?

https://ibb.co/JBRdNFt

IIRC there's an OpenFile2 as well that accepts a username and password.

Geert

10
I have developed a command line tool which can open a local EA repository file (.EAP), make some operation on models and provide output on console with the following code:

Code: [Select]
Repository eaRepo = new Repository();
eaRepo.OpenFile(inputFilePath);

where inputFilePath points to a local repository file. Now I want to connect to a cloud repository, which is password protected. Is there any way to access the repo in cloud? I am using c# project.

11
Thank you for the explanation. That means, we are doing this com interop dll registry because of EA's mechanism of plugin registry. Once we build the c# project with this option checked, our project get acquainted to the registry entry. After that, we no longer need to make this step as our c# project is already familiar with the registry entry. But if I uncheck the option from next builds, how does EA get notified about the changes I made to the project?

 
Debugging will then not work right?
You only need admin rights to register you dll for COM interop.
If you uncheck that option you can build your project without admin rights.

Geert
You only need to register your dll once (for a certain project structure)
Once registered there is no need to re-register it every time you build your project. (it's the easiest option though, because it makes sure the registry stuff is always up to date, so you don't need to worry about it)
Debugging is not related to that. If EA uses the dll you just built, you can debug.

Geert

12
I have developed a plugin for my company following the tutorial by Geert from link below:

https://bellekens.com/2011/01/29/tutorial-create-your-

However, I have to open visual studio in admin mode in order to build the project. In my working machine, I have a domain user and an admin user, I and gave full permission to both of the users in registry key of sparx system EAAddin. But still, I have to open and build the project in admin mode. Is there any way I can get rid of that?

13
General Board / Re: Download EA 13.5 trial version
« on: December 25, 2021, 05:50:40 am »
Ok thanks

14
General Board / Download EA 13.5 trial version
« on: December 24, 2021, 06:01:12 am »
I have an academic license of EA 13.5 which can only be applied via license server. But I am unable to find the trial installer of version 13.5. Is there any way to download the installer file?

15
Sure, can definitely be done, more or less the same way as your example code.

Geert

As long as my knowledge from the documentations provided by EA, till now, I haven't found any api to call a specific addin and feed in the diagram guid.

Pages: [1] 2 3 4