Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - qwerty

Pages: 1 ... 529 530 [531] 532 533 ... 634
7951
Luckily EA will do that job for you. So if you delete an element it will automatically delete all connectors too. And of course all containing elements. Though all instances are kept since they are now individuals  ;) Any types where the class has been used now just keep the name.

q.

7952
You could start multiple instances, but then you'd need some locking. That wouldn't make sense either.

q.

7953
The update actually creates the element. So you need that. The refresh just updates / re-reads the collection if you want to iterate over it. This is only needed in very few cases since you know that you added the element. This means that you can leave out the refresh.

It *is* possible to bypass the API and create elements directly in EA's database but I would not really recommend it for a couple of obvious reasons. But sometimes other forces are stronger...

q.

P.S. I once measure the effect of the bulk update parameter and it was near to nil. Maybe it has been improved but I doubt that.

7954
I was just googling for the error number 80040154 which brought this up. You're the first here having that problem. So my guess is that your registration went the wrong way. I can't really help. Maybe one of our Windoze gurus?

q.

7956
What do you get for print SelectedPackage ?

q.

7957
Depends on what you have selected. Does GetTreeSelectedElements return a result set at all? I remember some limitations with scripting languages. GetTreeSelectedObject works for sure. If you got a package you would need to change the '4' to 'Class'  so it creates a class named 'test'.

The return value of addNew is not a collection but the Element (or whatever is appropriate for the selected element/package).

Ah. And the Refresh is not needed at all.

q.

7958
I think it's the GenFile property.

q.

7959
To access the contents of a table use Repository.SQLQuery ("SELECT <columns> FROM <table>...". The result is a XML formatted string containing the result set.

My Inside book details quite some of EA's internal tables. It's not complete (e.g. t_xref keeps quite some secrets, some tables are rather exotic, ...) but it contains really a lot of useful details. Also my Scripting book does not give a detailed example for above SQLQuery, but it provides a lot of basics in a concise form. Sure, you can find that in the online help, but then you need to be quite pain-free.

q.

7960
All reference data are stored in according tables of EA's database. I can't recall which table holds the code gen scripts. Maybe someone else? If not, I'll try to find it out Monday.

q.

[edit:] It looks like the default code templates are hard coded in EA and custom code templates go to t_template. The table structure is quite simple and you can probably figure out yourself.

7961
Unfortunately this is an unofficial API function. It has been investigated by a couple of people but just the export of ref-data and opening a hand full of dialogs were discovered so far. In order to get on with the ref-data export you could simply read the underlying table and write time simply formatted as XML to a file. I did so in the past and it's quite easy.

q.

7962
Not the path to the file. The XML itself as string.

q.

7963
Try
Code: [Select]
Repository.CustomCommand ("Repository", "ImportRefData", <xml>);
q.

7964
My XSD experience is too aged. If you can tell me in short the steps to create the element(s) you're interested in. Then I can have a look on how to access them via API.

q.

7965
Quote
Try:

EAUML::table
EAUML::view(UML::Class)
EAUML::procedure
Would someone care to put that in the help? Or is it already buried somewhere? Searching for EAUML only reveals a single entry.

q.

Pages: 1 ... 529 530 [531] 532 533 ... 634