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 - KP

Pages: 1 ... 161 162 [163] 164 165 ... 167
2431
I think BusinessProcess1 and BusinessProcess2 in your diagram ought to be replaced with Activity elements with the "ActivityType" tagged value set to "Sub-Process". This will add the "plus-in-a-box" icon to the activity shape. You will want to right-click each activity and use the "Advanced > Composite Element" command to create a child diagram linked to the activity.

2432
Quote
Thanks Neil,

BTW, where is it stored? Is it in the SubType field, or elsewhere?

David

The type's GUID is stored in the t_object.PDATA1 field - for automation purposes that's EA.Element.MiscData(0).

2433
It's the same as with UML ports: right-click > Advanced > Set Property Type. The keyboard shortcut is Ctrl+L.

2434
Unfortunately, maintenance changes don't invoke the EA_OnPostNewElement broadcast event, so it looks like you're out of luck on doing it automatically - you will need to provide a command and hope the user executes it.

2435
Quote
How can i get de Diagram model default using automation interface via API?

Not easily. Outside your add-in (in EA) you could define a custom search using the SQL Editor. Use this search:
Code: [Select]
select value from usys_system where property='Default Diagram'
and then run it from your add-in with Repository.RunModelSearch.  This will return a GUID which you can lookup with Repository.GetDiagramByGuid.

2436
Automation Interface, Add-Ins and Tools / Re: Event to say EA has closed
« on: December 21, 2006, 01:47:59 pm »
There is a broadcast event EA_FileClose which you can intercept. This will tell you when a database has been closed - not quite the same as telling when EA has closed, but there isn't much you can do with EA without having a database open...  :)

2437
First thing to try if the Add-In menu doesn't show is to reset your menu: Tools | Customize | Menu | Reset.

2438
Denis,

This is caused by the "Automatic" or default colour being interpreted as "White" in certain circumstances. We have a fix but I'm not sure if it made it into build 801 - it might have to wait until 802.

Until then, there's a couple of work-arounds:

1. Select the affected elements/connector, press F4 and set border/line colour to be explicitly black, or

2. Set the clipboard format to "Bitmap" instead of "Metafile" (Tools | Options | General)

HTH,

Neil

2439
Automation Interface, Add-Ins and Tools / Re: Determine InitialNode
« on: December 17, 2006, 01:49:26 pm »
Quote
Hello,

I have a problem with determine the InitialNode from an activity diagram. Can someone write me please what attribute determine type of the element, like Activity, ActivityInitial or ActivityFinal, thank you in advance, regards.

Alek

You need to look at the EA.Element.Subtype value. An ActivityInitial will have Type="StateNode" and Subtype=100. This is explained in the help file under "Subtype" about half way down the page.

HTH

2440
Quote
When i am selecting any element in project browser  then how should i know it's parent as well as it's child information.


If Element.ParentID is non-zero then its parent is an element. You can use Repository.GetElementByID() to retrieve the parent.

If Element.ParentID is zero then it doesn't have a parent, but you can find out which package it's in by passing Element.PackageID to Repository.GetPackageByID().

You can find its children by iterating through the collections Element.Elements and Element.EmbeddedElements.

This is all described in the EA help file under Automation and Scripting.

I hope this helps.

2441
Go to "Settings | UML | Tagged Value Types" and create a tagged value type called "approved_date" with detail field set to "Type=DateTime;". Then go to your profile definition and give your <<stereotype>> class an attribute named "approved_date". Save the profile, import the profile and it should work.

2442
Automation Interface, Add-Ins and Tools / Re: Trouble on Video Resolution
« on: September 05, 2006, 04:09:52 pm »
Yes, you can scroll the toolboxes as Bary suggests. Another idea is to hold down the left mouse button and click the right mouse button to bring up a context menu which repeats the toolbox contents.

2443
What the XMI calls 'privatedata5' is what the automation interface calls EA.Connector.MiscData(4) and it is readonly I'm afraid

2444
It looks like you can't import a profile using the AutInt. You can import a technology though, so try creating a technology to wrap your profile and then import it using Repository.ImportTechnology() and show it in the toolbox using ShowProfileToolbox().

2445
Automation Interface, Add-Ins and Tools / Re: Merge Nodes and Regions
« on: August 15, 2006, 04:54:44 pm »
Quote
Why is this?


Bug. We'll fix for the next Beta.

Pages: 1 ... 161 162 [163] 164 165 ... 167