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 Geert I did find the t_complexitytypes about 15 mins after my post, but thanks for the info regarding the windows registry setting

I will give the t_datatypes query a go,

Thnaks again

Hi All

I have a need in an Add-In to obtain the current repository values for the following:


I can obtain the values in Status by using the Repository method GetReferenceList("Status")

However what about the other two?

Yes I could "hard code" the values, but I am seeking a more elegant solution where I can obtain the Language settings (as shown in the code generation toolbar) directly from the repository, similarly with the Complexity.

If this is not possible, is there a way I can detect if the user has set the "Extend Complexity" option on?

This would allow me to use one of two "hard coded" settings if obtaining the values directly is not possible.

I have checked the EA version 8.0 User Guide and have examined the Enumerations but cannot find what I require there

Any suggestions?



Many many thanks for all the replies, most helpful!


Hi All

Does anyone know how a symbol can be drawn in front of the text present in a label in a shapescript?

The effect I am after is similar to the "reading direction" black triangle for an association.

There appears to be no way to affect the text position, I can get the symbol, but the text is placed on top rather than alongside


Automation Interface, Add-Ins and Tools / Re: MDG's SysML Add-In
« on: September 17, 2010, 06:35:24 pm »
EA's built in SysML 1.1 is more or less SysML compliant. I use it occasionally, but I have noticed that you cannot display a Parts compartment within a Block element for example (you can in the MDG SysML 1.0 version)

There are other similar compartments defined in the SysML which again are not supported by Sparx

Because a Requirement element is already in EA, SysML uses the same element and hence its appearance differs from that defined in SysML.

Apart from this minor niggles, I find the SysML 1.1 works just fine. (The simulation of then parametric diagrams is a little limited however)



Hi Guys

Problem solved, the query was changed to

queryResult = repository.SQLQuery(@"SELECT UserLogin, FirstName, Surname FROM t_secuser " +
                              @"WHERE USERID = '" + userID.InnerText + "'");

That is not using * in the SELECT and all is fine now



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?

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