Book a Demo

Author Topic: Bring in .NET 2.0 Types  (Read 4119 times)

Tryst

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Bring in .NET 2.0 Types
« on: January 07, 2008, 07:42:35 am »
Hi all,

is there any way I can bring in .NET 2.0 types so that they are available to me in the diagrams?

Thanks
Tryst

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Bring in .NET 2.0 Types
« Reply #1 on: January 07, 2008, 08:15:38 am »
Yes,

Use the Import Binary Module function - or simply Binary Module in the help index - to bring in the appropriate .Net DLL files.

Search the forum for various hints, tricks and traps if you get into trouble. But first try the import, it is pretty straightforward.

HTH, David
No, you can't have it!

Tryst

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Bring in .NET 2.0 Types
« Reply #2 on: January 07, 2008, 10:59:32 am »
Thanks, David, thats exactly what I wanted :)

wow - EA is an awesome tool, fair play. Sooo much depth too it!
Tryst

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: Bring in .NET 2.0 Types
« Reply #3 on: January 07, 2008, 12:47:59 pm »
It is not really that use full unless you know what you're looking for. I imported the whole .NET frame work classes and it made the project very slow...
Recursion definition:
If you don’t understand the definition read "Recursion definition".

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Bring in .NET 2.0 Types
« Reply #4 on: January 07, 2008, 05:15:06 pm »
As would importing entire Java libraries.

Still, if you want to link these classes in, I think you'll find that it would take you longer to create a faithful model of either .Net or Java.   ;)
No, you can't have it!

Tryst

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Bring in .NET 2.0 Types
« Reply #5 on: January 08, 2008, 01:31:31 am »
I have only imported the System.dll and some others that I need. Pointless importing the whole Framework as there are 90% classes/structs etc that I will never use.
Tryst

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Bring in .NET 2.0 Types
« Reply #6 on: January 08, 2008, 04:25:38 am »
Good stuff Tryst!

Exactly what I meant by "appropriate .Net DLL files." You don't need to set up the things you won't need.

When you get your breath back, consider creating a new project for just this purpose. Import the entire structure, and get it arranged in a way that works for you.

You can now export the appropriate package tree(s) to XMI and import them into other projects that need to reference .Net. [Or Java of course.] Now you can have the same GUID for a reference class in all your projects.

At this time EA cannot reference an entity in another project. Perhaps that ability will appear in future, but it is not a simple matter, so I don't think you should hold your breath while waiting.

David
No, you can't have it!