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
1
General Board / Re: Can you use multiple values in <Search Term>
« on: November 20, 2017, 10:36:52 am »
Yes, it's database-dependent. I couldn't get it to work with a Firebird repository, doesn't like the double quotes.

2
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

3
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?)

4
Try "ActivityParameter"

5
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.

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

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

8
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".

9
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
{
if(hasproperty("direction","in"))
{
setfillcolor(255,0,255);
}
drawnativeshape();
}

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

Geert

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

11
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.

12
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.

13
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.

14
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.

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

EAREQ::FunctionalRequirement(UML::Requirement)

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

@STEREO;Name=FunctionalRequirement;FQName=EAREQ::FunctionalRequirement;@ENDSTEREO;

Pages: [1] 2 3 ... 163