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 ... 596 597 [598] 599 600 ... 634
8956
If you have Require User Lock to Edit EA holds the lock for the new element. So you should use RelaseUserLock() right after creating the element. Example in Perl:
Code: [Select]
my $pk = $rep->GetTreeSelectedObject();
$pk->ApplyUserLock();
my $e = $pk->Elements->AddNew ("test", "Class");
$e->Update();
$e->ReleaseUserLock();
$pk->ReleaseUserLock();

q.

8957
Typical EAUI. If you issue this very command via the GUI (Tools/Data Management/Project Transfer) the target must exist and will be overwritten. The API just creates a new EAP. Orthogonality?

I wonder what would happen if you transfer to a RDBMS instead of an EAP.

q.

[edit] Here's the help:
Quote
In automation, the target file [highlight]does not have to exist[/highlight]; the file path is enough. Enterprise Architect creates a new, empty Base.EAP file and transfers the source project into it.
Obviously this is wrong wording. It should read [highlight]must not exist[/highlight]

8958
My guess would be reason number two.

q.

8959
I guess not and you should report a bug (link bottom right). I haven't noticed such an "Ignore all errors" options in the transfer. Does it pop up after a first error? However, I guess it's in no way a good idea to ignore errors. The transfer should run without any. Else I'd expect the target to be defect in some way.

q.

8960
Have a look in the project inteface ProjectTransfer method.

q.

8961
The same with V10. I suppose this is a bug as per documentation this method has no parameters. I tried supplying a couple of integers but that resulted in even stranger error messages.

Report a bug - see link at bottom right of this page.

q.

8962
Good morning Australia!

I wonder why the API hides so many features which are only available to manual use. In order to make EA a really powerful tool it's necessary to provide as much as possible via the API.

q.

8963
Quote
First, my belief is that a [highlight]user[/highlight] doesn't need to know that a pattern is special necessarily...
Just one final note: it's not really a user receiving the broadcast but a programmer (or the program written by a programmer). Whilst users expect a silent behavior the program they are using, programmers expect a chatty behavior - the more, the better.

q.

8964
Or you mimic the On*Element to represent a pattern as a special kind of element.

To me it would it would feel natural if any drop onto a diagram would trigger a On*DiagramElement. Be it a single or multiple elements, a picture, some text from the pasteboard (can you do that to create a text element?) or a pattern which will also create a number of new elements (for each of which an On*NewElement should be triggered - so YES, I expect that for orthogonality sake). I hope you don't argue with performance since we're talking about a handful of events here.

Just my point of view.

q.

8965
Hmmm. Isn't the drop itself atomic? I mean if you drop an element, this is not an atom. You are mixing up things here.

q.

8966
I just guess, you found a bug - to be reported.

q.

8967
Quote
bool OpenFile (string Filename) This method opens a repository and returns True if the repository was opened successfully. Returns False otherwise.
Filename is interpreted in various ways by EA.
A file name pointing to an .EAP file: This will simply open the repository.
A file name to a shortcut .EAP file: This will open the repository stored in the shortcut.
A connection string: This will try to connect to the according RDBMS to open the repository. A valid connection string can be obtained from the Open Project dialog via context Edit Connection String for any stored recent repository.
From my book Scripting EA.

q.

8968
VC is just related to packages, not so far a repository. So, "open" is the right method. Once you have it opened a couple of VC related methods apply to lock/check out/in packages.

q.

8969
Just to make things clear: the element based appearance is valid immediately for all occurrences of the element in any diagram. Except - it's locally overwritten with an appearance for the single diagram. So if it's some global appearance you should store it in the single element via SetAppearance. Else you need to place it specifically in the single diagram objects in the Style property. (Orthogonality rules?)

q.

8970
It's stored in the registry: "HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\OPTIONS\MDG_TECHNOLOGY_STATUS"

In order to get info about stereotypes you need to parse the original file containing the MDG. If loaded the info is only available to internal EA resources, not the API.

q.

Pages: 1 ... 596 597 [598] 599 600 ... 634