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

Pages: 1 ... 33 34 [35] 36 37
Thanks Guys for the replies, the situation breifly is:

I am modifying an Add-In for a client that is going to work on shared models, and will be doing fancy things with profiles and tagged values (synchnronising tagged values is just one of them).

They use "require lock for edit", so before updating a list of elements I need to check the lock status, and only work on unlocked or locked for the current user elements.

The discovery of whether locks have been applied is easy and works fine. The problem (the error message) occurs on the following query

queryResult = String.Empty;
queryResult = repository.SQLQuery(@"SELECT * FROM t_secuser " +
                              @"WHERE USERID = '" + userID.InnerText + "'");

Which is taking a userID from the first query XML result and discovering the user name etc

The query above does work and does retrieve the correct results.

For testing I have created a small test EA file which is a shared model, with security enabled. The users  defined are the default admin and another called Phil, who is a member of the Adminstrators group

When running the add-in logged in as Phil, all is fine ... correct results are obtained and no error. However repeating the process logged in as admin, produces the correct results, but the error message occurs when looking up Phil.


Hi All

Does anyone out there know the meaning and cause of the following message appearing in an Add-In?

Code = 0x0
Source - Line : 0; Char : 0;
Error Description = (null)

It is appearing after executing the command


The query does in fact return the correct the result, but the error dialog is incredibly annoying and I cannot make it go away! :-[



Thanks, I think I have found it! It is the table t_trxtypes



Hi All

I have a requirement for and Add-In in which I need to access the tagged values defined in a UML profile.

Question is how do I access a UML profile and hence its tagged values defined on a stereotype within the profile using the SDK and Add-In?


Hi All

Does anyone out there know if its possible (and if so how), to generate RTF from a Model Documemet using a Script?
I have a number of Model Documents, and would like to write a script that iterates a selection of Model Documents and generates the RTFs. This would much quicker than using the menu every time.

The closest I can get is the RunReport(string, string, string) methid for the Project Interface, but this uses a package GUID in XML

I tried passing the GUID of the Model Document (in XML) to this methd, but the RTF dialog is blank in the top text field and hence fails.

I could get the attribute of each Model Element, find the package, get its GUID etc, but this would only work if a Model Document had a single attribute.

Any assistance appreciated!



Automation Interface, Add-Ins and Tools / Visual Studio 2010
« on: April 16, 2010, 08:18:47 pm »
Does anyone know if Sparx have plans to updgrade the current MDG Visual Studio Integration (full version for Visual Studio 2008), to support the recently released Visual Studio 2010?

Automation Interface, Add-Ins and Tools / Re: Regasm does not work
« on: February 05, 2010, 02:18:10 am »
Some extra throughts:

When developing under Visual Studio and using EA as the debug executable, the build of the solution will be Debug. All works fine, EA finds the Add-In

When re-building with the build of the solution of Release, EA (loaded outside Visual Studio) does not find the Add-In. The only solution I have found that works reliably is to copy the Add-In .dll to the installation folder of EA.exe. (As suggested by Aaron B)

Commercial Add-Ins seem to be able to place the .dll where they like, how do they do it?

Automation Interface, Add-Ins and Tools / Re: Adding to Collections
« on: August 31, 2009, 10:11:48 pm »
Hi All

Time for an update.

What I was trying to do is this. I have an add-in that integrates EA with an external editor which maintains the textual part of use case scenarios.

I needed to preserve the order of the scenarios (as displayed in the Use Case Scenario Tab) between EA and this tool, so when the text steps have been modified externally the changes are then incorporated back into EA. The order of the Scenarios in the Scenarios tab of a Use Case element is not necessarily the same as the order of the Scenarios in the Scenarios collection. (I have confirmed this).

To access the position as displayed in the Scenarios tab, the Weight property of a Scenario element is used. (This is actually in the Use Guide, but I missed it on first reading).

Problem solved.

Automation Interface, Add-Ins and Tools / Adding to Collections
« on: August 22, 2009, 12:03:13 am »
Hi All

In the Object Model Collections (obtained via an Element property) are read only. However new items can be added by using the method AddNew.

When the Collection is refreshed, then the elements in the collection appear to sorted alphabetically by name. (This is also true using the EA GUI interface)

On the EA GUI interface there are Up Hand and Down Hand icons which you can use to modifiy the order of items in a Collection (for example changing the order of scenarios by name rather than alphabetcial)

Can this re-ordering of Collections be achived in the Object model for Add-Ins. If so how?

Thanks am I correct in assuming that the path after /d in the last reg entry is the file path to the shared licence store?

Automation Interface, Add-Ins and Tools / EA from the Command Line
« on: July 22, 2009, 12:29:32 am »
Hi All

Does anyone know if it is possible to give the filepath of the floating license store as a parameter to ea.exe in much the same way as you can give the filepath of a ea project file?

for example

ea.exe %1 %2

Where %1 is the filepath of the project (or connection string)
and %2 is the filepath of the floating license store

Cheers and thanks

I have raised this before and it has always puzzled me. If the transformation process generates properties for public attributes (which are then private) in the Platform Independent Model, they why is the default scope (visibility) for attributes private when the gen langauge is set to <none>

Using this default prevents the transformation process generating the properties for the attributes. The only solution is to modify the transformation scripts, or laboriously go through all attributes changing their scope from private to public and then re-apply the transformation.

I would have thought it be more logical to set the default scope (visibility) for attributes to public when the gen language is set to <none>

This is especially odd since the default scope for a role (linked attributed) is public

Thanks and feature request has been submitted.

Hi All

I have developed a large UML profile for a client which contains numerous stereotyped elements and assoicated tagged values.

All works just fine.

Is there any way on the UML Profile export/import process to preserve the order of tagged values so that they agree with the order of the attributes of the elements on the UML profile, instead of arranging them alphapbetically as EA does at present?

This occurs when the profile is imported and used in an EA project

Thanks and regards

Does anyone know of a method using the Object Model how to obtain the diagram to which a Diagram reference (UML Diagram Element)?

I am looking to obtain either the diagram ID or the diagram GUID


Pages: 1 ... 33 34 [35] 36 37