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

Pages: [1]
1
General Board / Re: Reflexive Associations
« on: May 09, 2005, 03:58:10 pm »
Quote
The Sparxians said it's something they intend to fix in a future (unpecifried) release.


Excellent. Thanks for the tip. :)

-Charlie

2
General Board / Re: Reflexive Associations
« on: May 09, 2005, 03:36:09 pm »
Hi Paolo,

Did you end up resolving this? I have the same query.

Later
Charlie

3
General Board / Parameter names
« on: May 05, 2005, 04:34:19 pm »
I've imported some Java source, and would like the names of parameters - in addition to their type - to be displayed. Particularly in the case where an operation contains several parameters having the same type, names can be important for description. I'm yet to find a means for having names displayed in Enterprise Architect, though. Is it possible? I'm using version 4.51, build 750.

And, by the way, hello everyone!
I'm new to the product and only just joined the forums.

4
Automation Interface, Add-Ins and Tools / Re: Automated Testing
« on: June 11, 2007, 03:52:48 am »
I am trying to do the following:

- Create an instance of a test EA.Repository with child elements, packages, diagrams, etc.
- I want to avoid calling the OpenFile method of the repository so that my tests can run on our continuous integration server independent of file system parameters.

Can this be done using a Mock objects? I am struggling to do this with RhinoMocks.  If it is possible, can you post some sample code?

5
Automation Interface, Add-Ins and Tools / Re: c# Add-in deployment
« on: June 05, 2007, 07:42:23 am »
As suggested by Alex above, I have been creating a Wix installer for the add-in I am building.  However, I've not been able to get the installed add-in available to EA.  What settings did you use for your dll file in Wix:
- Did you add the dll to the GAC (I get an error in manage add-ins screen).
- SelfRegCost='1' (I get an error during the msi install "unable to register dll").

6
Using EA code, how do I get a collection of Elements in a diagram?  The types of items I am trying to return include: Tables, Screens, Classes.

7
Automation Interface, Add-Ins and Tools / Re: Element.Files.AddNew
« on: May 04, 2007, 04:19:06 am »
Great thanks...all working now.  C# code below:

Code: [Select]

EA.File file = package.Element.Files.AddNew(urlAddress, "Web Address") as EA.File;
file.Update();

8
Automation Interface, Add-Ins and Tools / Element.Files.AddNew
« on: May 04, 2007, 03:06:04 am »
Hi,
I'm trying to add a file to an element.  However, using the code example below, the file is not saving.

Code: [Select]

private void AddFileToPackage(EA.Package package, string urlAddress)
{
....if (package != null)
....{
........if (package.Element != null)
........{
............package.Element.Files.AddNew(urlAddress, "Web Address");
............package.Element.Update();
............package.Update();
........}
....}
}


Anyone got any ideas what I'm doing wrong?

Pages: [1]