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

Pages: 1 [2] 3 4 ... 37
16
Uml Process / Re: How to change default programming language?
« on: October 03, 2017, 07:24:11 pm »
In addition to what Geert has suggested you can make the Code Generation Toolbar visible:

1) From the Start Ribbon select the Preferences drop down and select Customize from the menu
2) Select Toolbars
3) Check Code Generation

Select C# from the drop down in the Code Generation Toolbar

Phil


17
This is what I do

1) Model the callable process on a temporary diagrams, make it a composite element, set the sub-process and callable tagged values.
2) Double-click and model the process.
3) I have a package in my BPMN 2.0 elements library called Callable Processes, I move the callable process from 1) together with its child diagram and elements to this package,
4) Delete the temporary diagram.
5) When I want to use by callable process(es) in other process diagrams, simple re-use from the library package as LINK

Changing the name in the library, will of course change the name wherever the callable process has been used.

Phil

18
Automation Interface, Add-Ins and Tools / Re: Tagged Value Groups
« on: August 02, 2017, 05:49:48 pm »
Thanks I had a feeling that might be the case.

Phil

19
Automation Interface, Add-Ins and Tools / Tagged Value Groups
« on: August 01, 2017, 10:54:29 pm »
Hi All

Does anyone know a method in script (or SQL) to discover what Tagged Value Group a given tagged value is in?

I know that tagged value group membership is defined with a MDG Profile stereotype in the element attribute _tagGroupings, but how to access this information within a script / addin?

Cheers

Phil

20
When you create an MDG you get a toolbox containing elements within your MDG (assuming that you not define your own toolboxes). Either way, open up the toolbox containing your MDG elements (Toolbox | More Tools...)

Right-click on an element within your MDG toolbox
Select Synchronize Stereotype

You should see a dialog display

Click OK

After a while all affected elements will be displayed
Click Cancel

Repeat for all other elements in your MDG

NOTE
This action will update the Tagged Values associated with the stereotype defined within your MDG and I assume this is the update you are referring to

Phil



21
Hi Try

This code

        private EA.Connector createSequenceFlow(EA.Repository repository, Element source, Element target)
        {

            // Get corresponding elements from EA
            EA.Element EASource = repository.GetElementByGuid(source.Guid);
            EA.Element EATarget = repository.GetElementByGuid(target.Guid);

            EA.Connector sequenceFlowTo = EASource.Connectors.AddNew("", "BPMN2.0::SequenceFlow");
            sequenceFlowTo.SupplierID = EATarget.ElementID;
            sequenceFlowTo.Update();

            return sequenceFlowTo;
        }

This is written in C#, but you should be able to use to create your script

All the best#

Phil

22
General Board / Re: Sparx EA V13.5 Beta
« on: May 19, 2017, 07:27:03 am »
Yes great news indeed, I too received the e-mail, but did not see any download link for version 13.5 Beta 1

Is this only available from request to Sparx, or did I miss something?

Phil

23
Automation Interface, Add-Ins and Tools / Re: Insert a Legend
« on: April 19, 2017, 05:59:49 pm »
Following on from QWERTY's post

I have done this for a client using a script (jscript) and yes it is very convoluted.

Once you have deciphered the t_xref entry you then have to:

a) create a legend element
b) insert this entry into the t_xref table, which includes the link to the element created in a)
c) add the legend to the diagram

You will also have to investigate the type of element a legend is and discover a way to generate a GUID for the t_xref entry.

As there is no API to add directly into t_xref, I used the undocumented function execute on a SQL INSERT statement for the t_xref

Oh, the colours in the t_xref entry do not appear to be standard integer values from RGB!

As QWERTY suggested, create yourself a little eap create a diagram and then add a legend, then inspect the underlying tables. This is what I did to work it all out.

Best of luck!

Phil

24
General Board / Re: SysML Requirements - Copy relationship
« on: March 15, 2017, 10:19:17 am »
Hi

When a copy relationship is used between SysML requirements, the tagged value named text is copied.

Create a SysML requirement diagram and set element Tag compartment to be visible
Create a requirement and enter some text in the SysML tagged value, named text
Create a second requirement and relate to the first via Copy relationship
Note the value in the Text tagged value in the second requirement, it is the same as the first requirement and read only
Make a change to the text tagged value in the first requirement and notice the change is replicated in the second requirement

Phil

25
A method I used to set an automated orthogonal route was to set the Path property of each connector on the diagram.

Each connector was obtained from the DiagramLinks collection from a diagram and then for each DiagramLink element in the collection the Path was set.

The Path is the coordinates of the "Bend Points" in the form of a delimited string:

"Bend1X:Bend1Y;Bend2X:Bend2Y; ... BendNX:BendNY;"

I calculated the bend points using some offset constants which were then added or subtracted from the height / width of the elements I was starting to or from.

After changing the Path, the DiagramLinks collection was Refreshed and the diagram reloaded.

Hope this helps in some little way.

Phil

26
Bugs and Issues / Re: Tagged Values in a Profile
« on: January 27, 2017, 11:46:27 pm »
When creating an MDG and using the MDG helpers you are prompted for and MDG ID, this is used to name your profile packages

This MGD ID must be the same as the ID used in the ID in the MDG Generation wizard, it also must be less than or equal to 12 chars and ideally contain no spaces.

Then all should be OK

Phil

27
General Board / Re: Respository Usage Statistics
« on: January 10, 2017, 11:22:24 pm »
Thanks qwerty will explore along those lines.

Phil

28
General Board / Respository Usage Statistics
« on: January 10, 2017, 10:46:05 pm »
Hi All

I have a need to collect and report on repository usage statistics in a multi-user repository with security enabled. For example, when users have connected, disconnected and their total connect time.

I believe EA does not capture this data within a repository.

One method would be to create an add-in that responds to the File_Open and File_Code broadcast events, and creates a log file which can the processed at some future stage.

Is there any method that does not use an add-in at all?

Cheers

Phil

29
General Board / Re: Connect Oracle to Enterprise Architect
« on: December 23, 2016, 01:51:00 am »
I would also use the Oracle supplied OLE DB drive and not the Microsoft version which does not work with EA.

Cheers

Phil

30
General Board / Re: Get a gateway's "Type"?
« on: December 13, 2016, 07:10:25 am »
I would try looking through the Tagged Values, since that is where the type of gateway is et when using BPMN 2.0

You can enumerate

myElement.TaggedValues

Phil

Pages: 1 [2] 3 4 ... 37