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] 2 3 ... 163
General Board / Re: How to visualize hyperlinks as hyperlinks?
« on: November 02, 2017, 10:23:04 am »
You can switch it off:

EA 12: Tools > Options > Behavior > Use Automatic Sub-Activities

EA 13: Start > Workspace > Preferences > Behavior > Use Automatic Sub-Activities

Uml Process / Re: Class Attributes: How can I delete the {...} field?
« on: November 02, 2017, 09:59:54 am »
{bag} was replaced by {nonunique} for UML 2.2. EA hasn't caught up yet.

(I prefer bag. Why use a big word when a diminutive one would suffice?)

Try "ActivityParameter"

and if someone could explain the visual logic of that thing to me I could go to my grave a happy man

I believe the trident is supposed to look like one of those call trees that we used to draw in the days before UML.

Bugs and Issues / Re: TimeLine data
« on: October 17, 2017, 08:55:45 am »
t_diagram.StyleEx has values TDurLow, TDurHigh, TDurUnit and TDurHide

Sure but is it that hard to make a stub in a package that opens up what is currently called a "relationship matrix profile"?

You mean like a Matrix Specification Artifact?

I can create stereotypes with shape scripts which set different colours -- but how do I specify that when using my «outpar» ActivityParameter stereotype toolbox item, an 'out' ActivityParameter should be created as opposed to an 'in' one which is the default?

In your profile, give your "ActivityParameter" metaclass element an attribute named "direction" with initial value "out". This appears to work, but it's possible it only works for properties named "direction".

But there's no way to check for the element's 'direction' in a shape script -- it doesn't have its own property for retrieval, and it's not a tagged value.

This works...
Code: [Select]
shape main

There's no need to guess. The property names are all documented in the manual; you just have to read it.


Correct. I've just checked it's neither "ID" nor "DiagramID".

It's a long time since I wrote an add-in, but I don't think you're going to be passed a DiagramID in the EventProperties of EA_OnPostNewElement. Try getting the size of the EventProperties then loop through with Get(index) and see what's there - more reliable than guessing the property names.

EA will send out broadcasts when certain actions take place, so you need to create functions that respond to those broadcasts. For example, to respond to a new element being created, you will need to have a function called EA_OnPostNewElement. Search the help for "EA_OnPostNewElement" and it should point you in the right direction.

Automation Interface, Add-Ins and Tools / Re: Link restrictions
« on: September 25, 2017, 09:04:55 am »
The quicklinker can suggest valid connections but can't prevent invalid connections. You can write an add-in that implements the EA_OnPreNewConnector broadcast handler to prevent invalid connections, or you can write a validation script or add-in to report on invalid connections in your models.

To avoid having to hide the component icon, have you considered extending UML::Class instead of UML::Component? A UML Component is basically a Class with required and provided interfaces, and EA allows you to add required and provided interfaces to Classes anyway, so you wouldn't lose any functionality.

The Extended Requirements page contains a bunch of stereotyped Requirements, but they are not "UML::xxx".


The rest follow the same pattern. If you get stuck, create one in an empty model and then look in t_xref for a definition like this


It would have been nice to get feedback from Sparx in this forum.

If you aren't getting the answers you need from this user forum, you can contact Sparx Support. Use the "Report a Bug" link at the bottom of this page.

Pages: [1] 2 3 ... 163