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.


Topics - philchudley

Pages: [1] 2 3 ... 9
1
Bugs and Issues / SysML Part Association
« on: June 28, 2019, 10:57:33 pm »
Not sure if this a bug or the expected behaviour of EA versions 14.1 and 15

Create two SysML Blocks
Create a Part Association (Composition) between them
EA, correctly, creates a Part element for a "child" block and adds this to the Parts compartment

However, when naming the part end of the composition, the role is not used to name the part element, and vice versa. I would expect these names to be synchronised.

If my memory is correct, this was the case in EA v  13.5

Anyone else noticed? Or is this the correct behaviour?

Thanks

Phil

2
Automation Interface, Add-Ins and Tools / MDG Set Active
« on: June 17, 2019, 06:50:41 pm »
I have set an MDG Active by mistake, does anyone know how to make an Active MDG inactive? That is remove the *

Cheers

Phil

3
General Board / BPSim Confusion EA version 14.1
« on: May 17, 2019, 04:39:58 am »
Hi All

I am using EA version 14.1 and am attempting to try the BPSim. I have had a look at the user guide library book Business Process Simulation where on page 4 it states

You can purchase and download the MDG BPSim Execution Engine from the 'Products' page of the Sparx Systems website (sparxsystems.com/products). As part of this process, you will receive a registration key by email, to enable you to use the system beyond a 14-day trial period.

I have searched the Sparx website and can find no such download.

The entire book refers to his extension.

In the ultimate edition of EA version 14.1 there is a BPSim, which appears to be the same as the for UML Activitiy diagrams etc, it is certainly not the same as the Business Process Simulation book, which is what I want to try out.

Does anyone know what the BPSim situation is? Is there an optional MDG BPsim Add-in for purchase or not? If there is such an Add-in, where do you get it from?

Thanks

Phil

4
Bugs and Issues / SysML Part Association
« on: February 12, 2019, 01:33:40 am »
Hi all

When creating Block Definition models, in SysML using EA version 13.5, and using a Part Association between Blocks, EA synchronised the source role name and source multiplicity between the Part Association and the correspond child Part Property. Which is as I expected.

However, when performing the same task in EA version 14.1 (including the latest build), all Part Properties and created as anonymous and no synchronisation between source role, source multiplicity and Part Property occurs. Frustrating and not what I expected.

Has anyone else experienced this?

I suspect its a bug, and if so will raise one through the usual channels.

Oddly, I have once or twice out of many attempts managed to get a synchronised source role name and Part Property name, but I cannot repeat this reliably, if at all.

Thanks

Phil

5
Hi All

Has anyone else experienced the following when generating an MDG in EA 14.1?

1) Create an MDG consisting of the usual profile, custom diagram(s) and toolbox(es)
2) Use the SPECIALIZE Publish -> Publish Diagram as UML Profile for the custom diagram(s), and toolbox(es) to create the XML files
3) Use the SPECIALIZE Publish -> Publish Package as UML Profile for the profile to create the XML files
4) Generate the MDG and select to include Profile, Diagrams, Toolboxes (etc) in the MTS

Only the Package Profile XML shows up the profile selections for profiles / diagrams / toolboxes! That is the XML files generated for the diagram(s) and toolbox(es) are not listed within the MDG Builder dialogs.

If I revert to EA 13.5 and re-generate all the XML files, the MDG builds fine in EA 14.1

Any thoughts?

Phil

6
Automation Interface, Add-Ins and Tools / Metadata Stereotyped Relationship
« on: November 07, 2018, 03:10:19 am »
Hi All

I am developing  fairly complex MDG in EA 14.1 and am attempting to use the "new" quicklinker Stereotyped Relationship between two stereotyped elements defined in my profile.


It works, sort of.


When I create a diagram using my MDG, and use the Quicklink, I see the relationship defined in the Stereotyped relationship, BUT I also see the following


Substitution

Abstraction

Dependency

Information Flow

Realization

Usage

Trace


How can these be removed? Presumably somewhere within the MDG, these "extras" are not shown in ArchiMate 3.0 for example.


I don't really won't to revert to the legacy spreadsheet method!

Any help much appreciated


Phil

7
General Board / Disable the abilty to Manage Add-Ins
« on: September 18, 2018, 08:06:24 pm »
I have received a request from a client to restrict who can disable / enable Add-ins / Extensions.

Having checked the List of Available Permissions, there does not appear to be any such permission, and a test of:
  • creating a new user with no permissions at all
  • logging in as that user
  • selected to Manage Add-ins, was able to enable / disable any listed Add-in

As workflow scripts only apply to selected element properties, that route won't work either.

Is there a way to prevent users from Managing Add-Ins?

Thanks
Phil

8
General Board / Delete / Remove a List Override
« on: June 28, 2018, 07:43:43 pm »
OK I have defined a list item and list override and have set list numbering with my list override to Heading 1 in my template.

How do I remove the list numbering on the Heading 1? The List Numbering menu item is checked, upon clicking I just get a list of list overrides, with option to set to none.

Alternatively, how can I remove an item list and/or list override? There appears to be no option to do so if there is indeed no option, maybe there should be?

If all else fails I could delve into the tables and remove directly from there I guess.

Any suggestions?

Phil

9
Suggestions and Requests / Package Indicator for Baselines
« on: June 14, 2018, 09:46:50 pm »
Hi All

When a package is set as a namespace root, or has version control is configured, the package icon in the project browser changes to reflect these settings.

I would like to see the package icon change (say overlay a letter B) when a baseline has been taken for that package.

I know its easy to write a query to list packages with baselines, and in EA 14 there's new feature Find Baselines, but a visual indicator would be great.

Phil

10
Hi All

Please excuse if this has been asked before, but I did a search and could find the answer I am seeking.

Let's say I have defined an MDG called MyMDG.

I also have an extension that is managing elements created using stereotypes defined within the MDG.

I now wish to create an ad-hoc tagged value within the extension that is included on the MyMDG tab for the tagged values. Here's what I have got

newTag = myElement.TaggedValues.AddNew("MyMDG::My Tag", "");

This adds the tag correctly and it shows in the MyMDG tab BUT, the tag name shows as MyMDG::MyTag, rather than MyTag

How can the prefix of the MDG name be removed?

I have tried

a) adding to TaggedValuesEx - same effect
b) stripping off the MDG prefix from the tag name after it has been added - moves the tag to the Tag tab

Any ideas?

Thanks

Phil

11
Hi All

Let's say I define an MDG with a stereotype named ABC which is based upon a meta class of UML::Class

I then define attributes (tagged values) and a shapescript within ABC as per usual

I now add a new stereotype XYZ, which is connected to ABC via a Generalisation connector, hence XYZ inherits from ABC

I generate the MDG, and test

Lo and behold the tagged values are inherited as expected, but alas the shapescript is not inherited

I suppose this is the intended behaviour, but just in case I have missed something, can shapescripts be inherited? If so how?

If not (as I suspect), then no option other than to copy the shapescript to all subclasses.

Thanks

Phil

12
Hi All

I am developing a script for a documentation template fragment.

Part of this involves processing a list of GUIDS from a refGUIDList tagged value, getting each GUID is easy, but as part of the XML returned which contains several custom fields, I wish to return a CustomField called, say ELELIST which is a newline delimited string of element names

Does anyone know how to achieve this?

I have tried using \n as the delimiter as well as 
 all are simply ignored during documentation generation and all element names appear on a single line of text.

Phil

13
Hi All

I am attempting to add a custom window to an addin and have used Sparx's rather brief notes

http://sparxsystems.com/enterprise_architect_user_guide/13.5/automation/custom_docked_window.html

However the addiin window is not added:

I am using Visual Studio 2013 and C# .Net 4.5

My Code is as below:

The very simple Test Addin:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TestAddIn
{
    public class TestAddIn
    {
        // ----------------------------------------------------------------------
        // Menu Strings
        // ----------------------------------------------------------------------

        private String menuHeader = null;
        private String[] menuOptions = { null };

        private bool safeDeleteIsEnabled;
        private MyCustomControl myCustomControl;       
 
        //-----------------------------------------------------------------------
        // Constructor
        //-----------------------------------------------------------------------

        public TestAddIn()
        {
            safeDeleteIsEnabled = true;
            menuHeader = "-&Tester";
            menuOptions = new String[] { "&Checked", "-", "&Unchecked", "-", "&Show Window", "&Hide Window"};

        }

        // Enterprise Architect standard extension methods

        public void EA_Connect(EA.Repository repository)
        {

            myCustomControl = (MyCustomControl)repository.AddWindow
                     ("Test Addin", "TestAddIn.MyCustomControl");
            if (myCustomControl == null)
            {
                MessageBox.Show("Test AaddIn Custom Window not added");
            }
            else
            {
                MessageBox.Show("Test AddIn Custom Window added);
         }
        }

        public void EA_Disconnect()
        {
            GC.Collect();
            GC.WaitForPendingFinalizers();
        }

        public object EA_GetMenuItems(EA.Repository repository,
                                      string menuLocation,
                                      string menuName)
        {

            if (menuName == String.Empty)
            {
                //return top level menu option
                return menuHeader;
            }
            if (menuName == this.menuHeader)
            {
                // return submenu options
                return menuOptions;
            }
            else
            {
                return string.Empty;
            }
        }

        public void EA_GetMenuState(EA.Repository repository,
                                    string menuLocation,
                                    string menuName,
                                    string itemName,
                                    ref bool isEnabled,
                                    ref bool isChecked)
        {
            switch (menuLocation)
            {
                case "MainMenu":
                    switch (itemName)
                    {
                        case "&Checked":
                            isEnabled = true;
                            isChecked = safeDeleteIsEnabled;
                            break;
                        case "&Unchecked":
                            isEnabled = true;
                            isChecked = !safeDeleteIsEnabled;
                            break;
                    }
                    break;
            }
        }

        public void EA_MenuClick(EA.Repository repository,
                                    string menuLocation,
                                    string menuName,
                                    string itemName)
        {
            switch (itemName)
            {
                case "&Checked":
                    safeDeleteIsEnabled = !safeDeleteIsEnabled;
                    break;
                case "&Unchecked":
                    safeDeleteIsEnabled = !safeDeleteIsEnabled;
                    break;
            }
        }
    }

}

The addin window has been added to the solutions as a Visual Studio Custom Control and the Code is:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TestAddIn
{
    public partial class MyCustomControl : Control
    {
        public MyCustomControl()
        {
            InitializeComponent();
        }

        protected override void OnPaint(PaintEventArgs pe)
        {
            base.OnPaint(pe);
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}

Everything builds fine and the addin works fine, but the reference nyCustomControl is always null thus indicating the Custom Window has not not been added.

Using the Extend | Manage | Add-in Windows returns No loaded add-ins are using this window

I must be missing something, but what?

All namespaces and names are correct.s

One curious thing, the article by Sparx on Custom Windows, mentions an ActiveX Custom Control and and OCX file. I do not see any OCX file in my build, so if this is what is missing, how is such an OCX file created, and where should it be located.

Any help or advice will be most appreciated.

Phil

14
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

15
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

Pages: [1] 2 3 ... 9