Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: adriang on January 21, 2004, 06:59:50 am
-
Is there currently a way to import the .Net Framework class libraries into an EA Project?
-
I'm interested in this as well.
I'm just evaluating the product at the moment and it really puts Visio for Enterprise Arthitects (VS.NET) to shame. Really quick and precise.
However.
When specifying return types or parameters for operations, I'd like to relate to the .NET framework classes as well. For instance, it must be a common requirement to return the type System.Data.DataSet from a method. The obvious solution is to create your own DataSet type before hand but its a bit excessive for every type you wish to use.
cheers
-
Hi adriang,
try the AssemblyMetadata2Xmi Converter at
http://www.anticipatingminds.com/products/assemblymetadata2xmi/assemblymetadata2xmi.aspx
Regards
-
Thanks for this.
There is also the utility called RE.Net from www.lotontech. However I think the AssemblyMetaData2XMI Converter is better as it gives you the class members for free whereas you have to pay 20 GPB for the RE.Net product (the Lite version gives you the types only, not the members)
I've generated XMI for .NET Framework classes and have imported this XMI package into Enterprise Architect. Bingo, the types and members are all there. However, all I get to see is the Private types from the XMI import. I'm an EA newbie and am evaluating the product. Like what I see so far. How can I 'filter' so that I can see all members, irrespective of their access modifiers?
regards
-
I tried using this tool on System.dll and received an 'Ambiguous Reference' error. What am I doing wrong?
-SP
-
I think my tool is better, it handles the protected members and also deals with a few stereotypes.
http://www.sunmoonsystems.com/downloads.php
-
fluxtah
Really thank you for sharing framework template. It's kind of you.
By the way I have a question.
I have imported a single form application (a button and a textbox) into .NET EA project.
Now how should I put Button, Form and EditBox classes on my class diagram (I ctrl+drag them from system.windows.forms to classdiagram) so that it can recognise the associaions? Or I should do the associations myself?
Regards,
Mac
-
Hiya, thanks, I am glad the framework model helps :]
I am not sure on import if it would maintain the associations, I will have to test this :/ I would hope that the XMI exporter would do this, if not then you can just drag them as you described onto your diagram.
Then if you just manually drag the association links from the form to the button and form to the edit box respectively.
Double click on the connectors and set the target role (which will be the button and edit box i think) to the member that they are associated to within the Form Class.
When doing this without reverse engineering you do'nt even need to add the members to the source class which is quite handy :]
I have'nt got EA set up at work yet, so I can not draft a quick example diagram :(
hth
Fluxtah