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 ... 621
8956
Automation Interface, Add-Ins and Tools / Re: Get DiagramObject by ID
« on: July 15, 2012, 01:52:22 am »
Erm. Means that it's solved or that you simply mis-typed the statement in the post?

q.

8957
Automation Interface, Add-Ins and Tools / Re: Get DiagramObject by ID
« on: July 15, 2012, 01:38:33 am »
Sorry, not reading well. You issue
Code: [Select]
rep.GetCurrentDiagram.Count But I guess you mean
Code: [Select]
rep.GetCurrentDiagram.DiagramObjects.Count
q.

8958
Automation Interface, Add-Ins and Tools / Re: Get DiagramObject by ID
« on: July 14, 2012, 07:57:39 pm »
Try diagrams instead of diagramobjects. The first is the diagram and the latter the element instances appearing inside of diagrams.

q.

8959
There was a time limit I was not aware of. I have extended that and it should work now.

q.

8960
I have just published a new release which adds extended creation of scenarios/alternates and connectors between attributes. Readers were not mailed this time but of course they can download the free update as usual.

The book now contains more than 100 A4 pages and has reached an "almost ready" state. Of course I will continue adding stuff over time.

q.

8961
A new major release has just been published. The book has now about 100 A4 pages.

For the beginner it has a step by step explanation of the API.

For the advanced user it contains a lot of details not to be found in the official help.

The book has a cross reference which allows you to find the right API commands from many GUI window elements and vice versa.

Keep in mind that although the book is already in a state of completion, I'm still working on it to add even more value.

q.

8962
I have just published a new e-book about EA's API at http://leanpub.com/ScriptingEA

It starts with a help yourself section so beginners are introduced into the basics. Quite some "bits and pieces" summarize inside information which is not obvious. A final cross reference from GUI to API (not yet complete) ends it up.

Although this is "under construction" I think the current state is worth while to be published. I'm planing to complete it over the next one or two months. Next chapters to be completed: final cross reference; object creation/manipulation.

Hope you enjoy it.

q.

8963
I have just added a sample code to create such associations in my book.

q.

8964
See the latest update in the Inside book. Chapter about StyleEx for Connectors:

Code: [Select]
LF<dir>P=<guid><pos>; connector attached to attribute/operation
<dir> = S or E meaning Start (source) or End (target)
<guid> = ea_guid of t_attribute or t_operation
<pos> = R if <dir>==S or L if <dir>==E
<pos>is obviously redundant...

You can manipulate the Style setting according to that schema.

E.g.
Code: [Select]
LFSP={158B2823-907B-4317-B83A-377D15F9B723}R; will connect an operation (in my model) at the source side of the connector.  And
Code: [Select]
LFSP={158B2823-907B-4317-B83A-377D15F9B723}R;LFEP={6D154121-C500-4d97-AA9C-4B4D6AF46504}L; will additionally connect an attribute (in my model) at the target side.

q.

8965
Hi Matthias,
there's a discussion forum on Leanpub's landing page for the book (for some reason nobody posts there). Also my mail address is present in the book (though I got few feedback through this channel too). And finally there's my initial post here where I announced the book. One of those channels should be okay.

But to answer your questions:

Page 9 - MiscData(0) contains the t_package.PackageID of the package for which this element is defined. When I started with this years ago I expected t_element.PackageID to be this pointer. But that actually points to the package of the package. A bit confusing. I will add a picture in the book to make it clearer. I hope you understand this explanation, though.

Page 11 - yes and no. Connectors actually connect elements. When connecting attribute this is done via some weird Style expression (can't tell this by heart now), But it's added somewhere inside the connector information. I put that on my list to explain it in more detail.

Thanks for the feedback!

q.

(There's a long story behind this 'q.'. Right now it looks a bit ridiculous to sign with q. instead of my real name. But it's shorter when posting.)

8966
You should report this as a bug via the link at the bottom of this page.

q.

8967
I faintly remember to have asked the same question to Sparx support and the answer was: not possible. However, this might have change ever since, or my memory failed me. Maybe one of the Sparxians can confirm that.

q.

8968
:-) indeed. I'd prefer Perl...

q.

8969
You can write a simple script that uses the API to perform s single task.

q.

8970
One more remark: if you create an element via AddNew and supplying a metatype from a profile like Archimate::Component it receives the correct stereotype from the profile. I would not additionally assign the stereotype once again.

q.

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