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 ... 152 153 [154] 155 156 ... 163
2296
Automation Interface, Add-Ins and Tools / Re: MDG Technologies
« on: March 02, 2009, 08:45:53 am »
Quote
I have loaded the technology using the ressources view.
Don't do that! Delete the technology from the Resources view, go to Settings > MDG Technologies > Advanced > Add > Add Path, OK, OK, OK and restart EA...

2297
It's hard to know for certain without seeing your shape script, but it sounds like a "pixel count vs percentage" confusion. With shape script functions such as moveto(), lineto(), rectangle() and ellipse(), their parameters all represent a percentage of the overall size. If you want a rectangle that is 25x20 pixels, it is tempting to use the command rectangle(0,0,25,20); but that would be wrong. First define the area as 25x20 and then use 100% of it, as follows:

shape main
{
    defsize(25,20);
    rectangle(0,0,100,100);
}

I hope this helps. If not, please post your shape script to this thread and we can see what is going wrong.

2298
Quote
I then want MyStereoA to have a tag of type MyTagA, and MyStereoB to have a tag of type MyTagB. I can do this - but the tags cannot have the same name (MyTag). I must name them differently, eg aMyTag and bMyTag.
Yes, I'm afraid tag names must be unique at the profile level.

Quote
Secondly, I can specify that a Stereotype should be composite (_makeComposite, _defaultDiagramType) - but if I do that on the abstract MyStereo, the concrete MyStereoA and MyStereoB are not made composite when dragged in from the Resources tab.
EDIT: see Simon's answer below. Rightly or wrongly, _makeComposite and _defaultDiagramType aren't inherited. You will need to add them to all subclasses that need them (which is pretty easy: just drag and drop from the project browser).

2299
Can you use GUIDs? They are guaranteed to be different across elements, packages and diagrams...

2300
Automation Interface, Add-Ins and Tools / Re: Entity appearance
« on: February 09, 2009, 09:43:30 am »
You can switch this off on a per-diagram basis by going "Diagram > Properties > Elements" and clearing the "Use Stereotype Icons" option.

2301
Automation Interface, Add-Ins and Tools / Re: Shape Script Variable Text
« on: February 09, 2009, 09:32:58 am »
Hi Jim,

I posted this a while ago, it may help:

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1198458939/0#0

2302
Automation Interface, Add-Ins and Tools / Re: Posts Beta Version
« on: January 30, 2009, 01:38:29 pm »
Quote
Is there a specific location for posting observations about the beta SDK, etc?
No, just post on whichever forum seems most appropriate, but if it's a bug could you report it here too please. Thanks.

2303
Quote
Those are only added when the diagram has been scaled.
I don't know the answer to your question, but if you go "Tools > Options > Diagram" and look at the "Diagram Frames" option, you need to clear the "On Clipboard Images" option if you don't want a border on a saved or printed diagram if it is scaled, because the scaling process uses the clipboard.

2304
The information is held in the t_xref table, and isn't made available by the EA object model. You can extract it using a direct SQL select though: search for t_xref.Behavior = 'subsettedProperty' or 'redefinedProperty'.

2305
Automation Interface, Add-Ins and Tools / Re: Search addin
« on: December 24, 2008, 12:33:45 pm »
Quote
I'm told the answer is 'LCase' to convert to lower case (and 'UCase' to convert to upper).
Another correction: 'LCase' works with Access SQL (i.e. EAP files), other repositories will use 'LOWER'. I'm learning stuff today! :)

2306
Automation Interface, Add-Ins and Tools / Re: Search addin
« on: December 24, 2008, 12:19:18 pm »
Quote
Have you tried your SQL select statement in EA's custom query editor? (Ctrl+F and click "Manage Searches"). When I try it I get the error message:

Quote
Undefined function 'LOWER' in expression.
I don't know enough SQL to know what to use instead.

I'm told the answer is 'LCase' to convert to lower case (and 'UCase' to convert to upper).

2307
Automation Interface, Add-Ins and Tools / Re: Search addin
« on: December 24, 2008, 11:48:15 am »
Have you tried your SQL select statement in EA's custom query editor? (Ctrl+F and click "Manage Searches"). When I try it I get the error message:

Quote
Undefined function 'LOWER' in expression.
I don't know enough SQL to know what to use instead.

2308
Sparx Systems is a member of the UPDM Group and we will support whatever the UPDM Group come up with as a combined DoDAF and MODAF profile. I don't currently know the how, when or what.

2309
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).

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

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