Author Topic: EA Model Generation by Automation Interface  (Read 2662 times)

smidz

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
EA Model Generation by Automation Interface
« on: October 14, 2003, 09:29:40 am »
Hi.
I'm trying to generate contect of EA package by using automation interface and have critical problem with table elements (elements of type "class" and stereotype "table") and it's columns (attributes). EA model is in MS SQL database.

For proper view and settings of attribute's properties (especially data types), table must have set Database type. In other case data types of columns can't be set.
Problem is, that there isn't any element property for this in automation interface. I experimented with setting different properties of element object and look in database table for elements (t_object) and discover, that value of table database type is stored in column t_object.pdata2 (can't be set via property) and t_object.gentype (can be accesed via .GenType element property). Both must be set.

Know anyone how to set database type for element (column t_object.pdata2 in DB) or some different way to generate table's elements correctly?

Thanks.