Book a Demo

Author Topic: Modelling .Net classes in EA  (Read 2708 times)

mhyde

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
  • EA Convert
    • View Profile
Modelling .Net classes in EA
« on: December 05, 2006, 09:34:54 am »
Hi,
I'd like to show on my class diagrams some of the .Net classes that my C# code will be using. Other than manually creating classes in EA and adding the particular method signatures on that I'm interested in, is there an easy way to import the .Net classes I want (e.g. System.IO.Ports.SerialPort)?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Modelling .Net classes in EA
« Reply #1 on: December 05, 2006, 09:55:54 am »
Yes and no, depending on your definition of "easy."

You need to import from binary - there's information in the documentation and in the forum.

For a start, use an empty package for the target the first time. Make  absolutely sure the package is selected, and from the main menu click Project | Source Code Engineering | Import Binary Module. You can also reach this from the context menu after right-clicking the package in the Project Browser tree.

Point to the .Net dll files and away you go!

Practice a bit, and look at the above sources of more information.

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

mhyde

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
  • EA Convert
    • View Profile
Re: Modelling .Net classes in EA
« Reply #2 on: December 06, 2006, 01:25:10 am »
Thanks for the advice, it worked a treat, albeit it took a while!