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 ... 153 154 [155] 156 157 ... 163
2311
On the UML Elements toolbar (View > Toolbars > UML Elements) there is a hyperlink element that you can drop onto a diagram. Right-click > Properties and enter a URL in the "Hyperlink Address" field. You can shape script them by entering a stereotype in the Properties docked window (Alt+1).

2312
The problem is that diagrams aren't model elements and can't own tagged values.

If you have a look at our BPMN profile, you will see the work around that we came up with. The BPMN specification defines a number of properties of business process diagrams but we couldn't attach those properties to each diagram in the form of tagged values, so we create a "Business Process" element that owns each diagram and hang the tagged values on that instead. You might like to use a similar solution.

2313
I gave your shape script a go, and the result really wasn't what I was expecting. Without looking at the source (I probably wouldn't understand it if I did) I suspect that the arc() function uses absolute positioning and can't take into account the direction of the line.

Can you Report the Bug to Sparx support please. At the very least we should be able to provide "sourceedge" and "targetedge" properties to allow you to test whether the line attaches to the left, right, top or bottom edge, so you can change the arc parameters accordingly.

2314
Not currently possible but it will be in the next major release (EA 7.5)

2315
Quote
My problem is that the stereotypes I'm looking for are not in this list. They are defined in EA (you can give a class the stereotype boundary) but not used in any EA toolbox.
Try adding "boundary", "control" and "entity" as stereotypes extending "Class" to a profile of your own, and then you can use them in your own toolbox: "MyProfile::boundary(UML::Class)"

2316
Automation Interface, Add-Ins and Tools / Re: Shape script and properties!
« on: November 10, 2008, 09:17:36 am »
Could you check for a non-null value of the "classifier" property?

Code: [Select]
if(hasproperty("classifier",""))
{
      print("no classifier");
}
else
{
      print("classifier=#classifier#");
}

2317
Automation Interface, Add-Ins and Tools / Re: UML Profile - Archimate
« on: November 05, 2008, 09:15:39 am »
Just to let you know, we are currently working on an ArchiMate profile that should be available around about the same time as EA 7.5

2318
Quote
Could you give me an example of one such example?
Code: [Select]
decoration notes
{
      orientation="NE";
      if(hasproperty("notes",""))
      {
            // it would really help if shape scripts had 'NOT'...
      }
      else
      {
            setfillcolor(255,0,0);
            ellipse(0,0,100,100);
            // or you could draw the pencil that the O.P. mentioned
      }
}

2319
Quote
Not sure whether I got the intention of the question right but maybe you want to take a look at the QuickLink feature also.
Yes, good call: have a look at defining some quicklinker rules before writing a validation add-in, you may find you don't need the add-in...

2320
Quote
- Is Altering the XML file directly the only way to alter the order of toolbox pages?
No, don't do that. Assuming you are creating your profile by right-clicking the diagram (not the package it's in), you can change the Z-order of the «stereotype» elements. The bottom-most «stereotype» appears first.

Quote
- Is there a way to create labels for stereotyped connectors? How can I access and change the text of existing labels?
Create a shape named one of LeftTopLabel, MiddleTopLabel, RightTopLabel, LeftBottomLabel, MiddleBottomLabel, RightBottomLabel.

Quote
- Is it possible to suppress/change the <<stereotype>> label on connectors?
Either add the command hidelabel("MiddleBottomLabel"); to your shape main, or create a shape MiddleBottomLabel { print(""); }

Quote
- How can I define which element stereotypes accept which connector stereotypes? Can this be done thorugh profiles? Through an add-in?
You will need to write an add-in to intercept the "Project > Model Validation > Validate Selected" command. There is some sample code here.

Quote
- Using the tagged value connector, on the profile diagram, is it possible to create a property that allows me to pick more than one object? I mean, like the activity picker on the effects dialog?
Create a RefGUIDList tagged value (Settings > UML > Tagged Value Types, then press Help for details) and give your stereotype an attribute with the same name as your tagged value type.

Quote
- Is it possible to create custom dialogs for custom object types through add-ins? If so, is there a sample available for download or online browsing?
In an add-in, you can intercept the EA_OnContextItemDoubleClicked
broadcast and implement your own dialog.

2321
Hi sygnus,

It might be caused by the trailing blank in the metaclass name:
Code: [Select]
<AppliesTo>
      <Apply type="ToolboxPage[highlight] [/highlight]"/>
</AppliesTo>

2322
Automation Interface, Add-Ins and Tools / Re: New diagram type
« on: October 23, 2008, 03:01:28 pm »
Currently not possible, but being implemented for EA 7.5

2323
The bad news is that what you are trying to do isn't possible. There is a DrawNativeShape() command in shape scripts, but you can't say "I am a Component but I want to draw a Requirement's native shape".

The good news is that Requirement elements can be composite. Search the help for _defaultDiagramType and _makeComposite to see how to change the diagram type of the composite requirement.

2324
Search the help for EA_OnContextItemDoubleClicked.

2325
Exposed interfaces are difficult because they have different dimensions depending on which edge of their parent they are attached to (either 35x16 or 16x35). I have tried creating a shape script for one using the (new for build 832) defsize() command after checking the parentedge property, and it just gets horribly confused (as did I). I'll raise the bug report...

Pages: 1 ... 153 154 [155] 156 157 ... 163