Book a Demo

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

Pages: [1] 2
1
Ah Thank you.

2
Thanks for the reply.

I have made progress with writing the .NET usercontrol and it works fine if i use it with the AddTab method available from the repository

i followed the article from this link
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/creat...

The problem i have i can add the user control using the addwindow method which works, the code is like this

m_MyControl = (Test.UserControl1)Repository.AddWindow("SYSPRO Window", "Test.UserControl1");

m_MyControl.BringToFront();
IntPtr myPtr = m_MyControl.Handle;

Now i cannot find my window, i did look under the Workspace Layouts and there is nothing.  How can i trouble shoot this
I am on version 8.0 of Enterprise Architecture. Build 856.

Please Help.

Thanks in Advence.

3
Thanks for the reply.

I have made progress with writing the .NET usercontrol and it works fine if i use it with the AddTab method available from the repository

i followed the article from this link
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/creatingacustomview.htm

The problem i have i can add the user control using the addwindow method which works, the code is like this

 m_MyControl = (Test.UserControl1)Repository.AddWindow("SYSPRO Window", "Test.UserControl1");

 m_MyControl.BringToFront();
IntPtr myPtr = m_MyControl.Handle;

Now i cannot find my window, i did look under the Workspace Layouts and there is nothing.  How can i trouble shoot this
I am on version 8.0 of Enterprise Architecture. Build 856.

Please Help.

Thanks in Advence.

4
Hi I have created a active X control using VB 6.

i have registered it and now trying to use it in my EA Addin.

i am using the follwing code:
Repository.AddWindow("Test Window", "Project1.UserControl1");
the code executes with no exception raised but the window does not get added, i even checked under the work space layout.

Does the control have to be written in .NET?

If i try to add it using:
Repository.AddTab("Test", "Project1.UserControl1");

i get the "attempted to read or arite protected memory error...."

Please can someone help with this or maybe point me to the correct Microsoft articles that shows how to create a OCX in .NET

Thanks in advance. :)

5
Automation Interface, Add-Ins and Tools / Re: Export diagram to image
« on: February 06, 2012, 05:58:05 pm »
Thanks for your help

6
Automation Interface, Add-Ins and Tools / Export diagram to image
« on: February 06, 2012, 03:45:55 pm »
Hi, is there a way via the automation interface to export a diagram to a image.  Basically we are developing an addin to report of our EA database.  In the report we would like to have screen shots of the diagrams.

Thanks :)

7
Automation Interface, Add-Ins and Tools / Re: SPM User
« on: November 07, 2011, 10:58:48 pm »
Hi, thanks for this, do have some sample code illustrating, how to do this.

Thnaks in advance.

8
Automation Interface, Add-Ins and Tools / SPM User
« on: November 07, 2011, 10:16:26 pm »
Hi, I would like to know if it is possible to copy a EA user to a new user, via the automation interface.   One of the things i would to be able to do is create a new user and set the users permissions.

I am coding using C#.NET

Thanks

9
Automation Interface, Add-Ins and Tools / Apply/Relase user lock
« on: April 20, 2011, 09:42:52 pm »
Hi.  How i can i setup a user against my database so that when you right you click the Apply userlock or Release userlock is disabled or not visible.

Thanks

10
Automation Interface, Add-Ins and Tools / Re: EA project versin
« on: February 23, 2011, 08:54:37 pm »
Sorry, the project

11
Automation Interface, Add-Ins and Tools / Re: EA project versin
« on: February 23, 2011, 07:56:27 pm »
Ok does the EA database not store some sort of version information.

Think of it in this way you have product which is version 1.0  then later you release 2.0

I want to if possible get the similar information from the EA database.

How will one know if he/she has the correct version of the EA database or the .eap file

Thanks

12
Automation Interface, Add-Ins and Tools / EA project versin
« on: February 14, 2011, 10:03:25 pm »
Hi.

How can i get the version of the EA project, the databse file.  I don't want the version of the individual diagram or package.

I wasn to do this programatically.

Thanks

13
When i execute the following code against the repository

_diagram.ApplyUserLock(); or _diagram.ReleaseUserLock();

i get the following exception raised "External component has thrown an exception."  and the EA crashes.

14
Thats good point.  What i will do is give the text Element a Name like zzzSYSPROCompanyName, something not very auvious.

but i will use a loop so i update the first occurence.

Thanks for your Help.

15
Hi, i am using this code

EA.Element textElement = (EA.Element)parentPackage.Elements.GetByName("CustomerName");

Seems to work.

Please advise if ishould not be doing this.  I appreciate you guys response to my query.
Thanks

Pages: [1] 2