Book a Demo

Author Topic: Model and class creation  (Read 2914 times)

bluemanifold

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Model and class creation
« on: January 09, 2008, 06:12:46 am »
Does anyone know if it is possible to use the automation interface to create a UML model and then programatically add classes, attributes, etc.?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Model and class creation
« Reply #1 on: January 09, 2008, 06:16:22 am »
Absolutely!

The key methods you need to call are AddNew and Update. The first adds something (depending on context) to a collection, and the latter saves it after you've added (at least) the minimum necessary information (which varies depending on what you've added). Each type of entity has different things, some of which are collections. Once you sort out what goes where (elements in classes for example) you will be fine.

Take a look at the code fragments in the help file or user documentation and then experiment.

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