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

Pages: 1 2 [3] 4
General Board / Generation of Associations as a Property
« on: January 19, 2006, 01:57:02 am »
When I define an Association and define a target Role, I can set it to private or public.

What I really want to be able to do is to set it to private and automatically generate a Property for this field.

Further to this, it would be able to be able to optionally set the property to only have a Setter. The reason for this is that I am creating a 0.* association and I want the collection class to be a read only property.

Can anyone give me some pointers as to how to best acheive this?

Many thanks

General Board / Generation of Association Classes
« on: January 19, 2006, 01:10:30 am »
I am having trouble getting EA to generate the referenced/linked attributes and have them set as properties for an association class.

What exactly do I need to set to get this working automatically?

General Board / Round Trip Engineering: Setting project location
« on: April 28, 2005, 07:05:18 am »
I have a stack of C# code on my machine and I have a new EA model, created by importing the XMI from another tool.

So, I now want to start synchronising the model and code. So how do I set the path for the source code for a package or class, so that synchronisation works?

I have hunted through the documentation and the only thing I can find is that EA stores the location of code when it generates it. That is all!

SO, how do I configure this option?



General Board / Help setting synchronisation paths
« on: December 09, 2003, 05:42:27 am »
During a project, we totally changed the namespace and directory structure to match. However, when I try to synch the model with the code, EA looks for the original path. Look as hard as a might I cannot find a way to change the path for a packages source code.

Could someone please help  and tell me how I can do this.



Well this actually makes it unusable for me... why would anyone design it like this?

Simply put, I want to link a package directly to a project. I would never want the merge to rebuild the namespace structure underneath my package, since the package is already a part of the namespace. At the very least I would want this to be a configurable option.

I cannot see how you can get this to ever work. It might work with a one project solution but how on earth can it be used with multple projects and packages, as is the norm with most solutions?

Use search to find out about this...


<sarcasm>Oh dear.. I NEVER thought of doing that..</sarcasm>

I did search and found nothing.. hence the post. Do you reply to every post with this witty answer?

I have created a model in EA and generated the code.  The classes are all linked to the output code file and round trip engineering was working fine. My Package structure mirrors the namespace structure... Each package will more or less equate to a VS project.

I have now installed VS Integration so that I can see the model from within VS2005. Following the instructions, I have connected a package to the relevant project.

Now, when I come to Merge, EA/MDG recreates the namespace structure under my package.. not expected behaviour and it does not seem to be configurable! ???

I just want it to link the classes in my package to those in the project.

How can this be done?

Use search to find out about this...

<sarcasm>Oh dear.. I NEVER thought of doing that..</sarcasm>

I did search and found nothing.. hence the post!

Automation Interface, Add-Ins and Tools / MDG Int. connect to repository
« on: November 15, 2006, 05:48:47 am »
I have moved my model into a SQL Server repository. I am now trying to get the MDG VS2005 integration working.

From VS2005, when I try to attach to a model and when I choose the Connect to a repository option, I am only given the option to open an EA model or configuration file.. ???.EAP

I am presuming this is a special config file defining how to connect to a repository, but I cannot for the life of me find out how to do this! ???

Can someone please tell me? An then could the documentation be update please!

I have this installed but there is no documentation anywhere telling me how to use this!

So, could someone please tell me how to get at this puppy!


Automation Interface, Add-Ins and Tools / Re: .NET class library Importer
« on: October 29, 2003, 06:45:48 am »
After a mad rush (another project went live this week) I am now back on the trail of the .NET inporter.. watch this space!

I un-installed build 645 and installed build 647 today. This does not seem to have the AddInTemplate dll, the one with the new Disconnect() method...  :o

Please, Mr Sparx, can we have this asap!


I am using the AddInTemplate interface and the EA library. This is causing me some problems because I need to do this in .NET (for obvious reasons) and then make it all ComVisible so it can be used back in the COM world.... working around issues of getting  strong keys into the assembly so I can GAC it and then use it from COM.....needless to say I will probably get this working too.. eventually.... my experience of COM Interop is currently minimal.. but growing very quickly.... any pointers gratefully received!  :-*

Anyway, the point of this reply is to ask for more detailed documentation regarding the AddIn Library....  especially a fully working sample.. the snippets of code are minimal to say the least!... pretty please! ;)

Being able to extend the Application will benefit the community enormously!

Well, since the rush to answer this one was so ovewhelming,  :'(
I soldiered on and got it working by myself! ;D
The only problem I am still left with is the fact that I cannot get the application to load with out showing in a window....

(To recap, I am using the Automation objects to create a package and add classes. When complete, this package is exported as XMI for import into any EA repository.)

Can anyone help with this one (using V3.6) or is this a bug?

I was looking at the marvellous .NET Class Library Exporter for EA kindly provided by Ian Hunter.

Having a few seconds spare time, I tried it out and found that it was not complete in that the XML generation was commented out and incomplete.

I was looking at extending the work he did. Now, my questions are:
  • I have found a method on the Project class to ExportPackageXMI. However, the parameters are not fully documented. For instance:
  • What are the allowable values for XMIType?
  • Also, the parameters are Long, yet the values given are True. So how are you mapping True to a Long? Is it 1 for true and 0 for false?
  • Also, method is supposed to return a string. I was expecting this to be the XML string we are exporting, but this is always blank. however
  • Finally, the exporter uses Repository.ShowWindow(int) What value should be passed in to ensure that the window is not shown?

If I can get this working, I may well use this to create an addin which can be used to import any .NET assembly into an EA diagram.

Pages: 1 2 [3] 4