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 ... 150 151 [152] 153 154 ... 163
2266
Automation Interface, Add-Ins and Tools / Re: New tables into ea database
« on: September 15, 2009, 04:02:43 pm »
I think the OP has added extra tables to a DBMS repository or .EAP file, and is now hoping to be able to add data to the tables from within EA. Sounds "adventurous", and yes you would probably have to manually connect to the database from within an add-in to be able to write to the new tables. EA's custom SQL queries should be able to read from the tables, but can't write.

2267
I've never done this, but I think what you need to do is find every diagram on which both the start and end elements appear, create a diagram link for each diagram, and set all but one of the diagram links to hidden.

2268
If you can send an XMI export of the relevant parts of your model to Sparx support, someone will be able to look at it and advise you...

2269
Quote
I'll check that each of the packages in the solution explorer tree hierarchy have that 'profile package' stereotype.
Only one package needs it: the one that you right-click to select the "Save Package as UML Profile" command...

2270
Quote
In the confirmation/selection dialog, I noticed the UML 2.0 (preferred) button was greyed out and the EAP 4.0 button was available.
The package that owns the profile needs to have the «profile» stereotype.

2271
Quote
While I greatly appreciate Neil's input, I'm a little concerned that he's guessing.
The only guesswork was what "LFSP" stood for  8-)

2272
Just had a look and t_connector.StyleEx is getting the value:

Code: [Select]
LFSP={<guid>}R;LFEP={<guid>}L;
I'm guessing that LFSP is Linked Feature Start Property and LFEP is End Property. The R and L denote which edge of the object to attach to. The <guid> refers to t_attribute.ea_guid. The help for Connector.StyleEx in the Object Model says "Advanced style settings. Reserved for the use of Sparx Systems." so exercise caution, but you'll be pleased to hear it's read/write.

2273
Automation Interface, Add-Ins and Tools / Re: Create EA UI Screen
« on: August 06, 2009, 12:03:09 pm »
Quote
I can see MyNewWindow in the Project browser, with a bunch of controls attached to it... but when I drag the Screen onto a diagram... I'm not seeing the controls at all.
Ctrl+Drag the screen onto the diagram and a dialog will appear. Tick the "include Embedded Elements" option to add the embedded elements to the diagram. Tick the "Based on Instance" option to name a diagram which has the element and its embedded elements arranged in the formation you want to copy.

Quote
I know with a DiagramObject you have to position the object in a Diagram... but how do you position a control in a screen??
You position the embedded elements on the diagram too, you just need to make sure that the embedded elements are positioned within the parent. EA normally takes care of this - if you get it wrong, say placing a port nowhere near its parent class, EA will sort it out the first chance it gets (either when you select or move one or other element).

2274
You can try something like this:

Code: [Select]
shape main
{
    ...
    if(hasproperty("notes",""))
    {
        // empty notes, draw it small
        defsize(90,70);
    }
    else
    {
        // non-empty notes, draw it large
        defsize(90,200);
    }
    ...
}
Not ideal, but maybe worth experimenting with...

2275
Automation Interface, Add-Ins and Tools / Re: MDG technology as exe
« on: July 14, 2009, 08:53:48 am »
Does it really say that? Some technologies are hard-coded into the EA executable, some are installed as separate .xml files, some are supplied by add-ins (which are .dll files). You can create the separate .xml files or add-ins, but you can't hard-code technologies into EA.

2276
Automation Interface, Add-Ins and Tools / Re: How to change icon
« on: June 25, 2009, 09:57:20 am »
Quote
I don't think you can retrieve the current drawing color in a shape script.

Yes you can:

Code: [Select]
shape main
{
    setfillcolor(getuserbordercolor());
    setpencolor(getuserfillcolor());
    rectangle(0,0,100,100);
}

2277
Automation Interface, Add-Ins and Tools / Re: How to change icon
« on: June 25, 2009, 08:57:07 am »
Try a shape script like this, it may be what you need:

Code: [Select]
decoration a
{
    orientation="NE";
    setfillcolor(0,255,0);
    rectangle(-10,0,90,120);
}

The co-ordinates of the rectangle command need to be adjusted to completely hide the icon behind it. I just tested this version on a component and the built-in icon is fully hidden. Obviously, you will want to replace the green rectangle with your own icon. Maybe use the image("imagename",0,0,100,100); command.

2278
Quote
By add-in do you mean a MDG one? Looking for clues where to find the relevant help page in order to assess how difficult this is going to be. I'd like to constrain folks to reduce the scope for errors / non-conformity.

Look in the help under "SDK for Enterprise Architect". The two relevant sections are "Enterprise Architect Object Model" and "Enterprise Architect Add-In Model".

2279
Quote
I want to constrain things such that View and Viewpoint are related by 'conformsTo'.
If you want to enforce this (disallow any other relationship type between these two element types), you will have to write an add-in. Instructions in the help if you fancy going down that path. Otherwise, you can "make it easy to use the correct relationship type" by defining quicklinks for your profile. Again, instructions in the help.

Quote
I'm confused whether a) I need to create a metaclass to represent this relationship
One of the benefits is that it will appear in the Link Type list box for the Relationship Matrix.

Quote
and, if so, how to connect the 2 metaclases using it
Quicklinks, Relationship Matrix, Toolbox, all the usual ways.

Quote
or, b) whether I just use a standard UML relationship (in which case this seems to be separate from the relationships shown on the Profile Toolbar).
You can put standard (unstereotyped) UML elements in your profile toolbox by defining a custom toolbox profile. Instructions in the help file.

2280
No, tagged values cannot be sorted, they are always in alphabetical order. Probably worth sending in a feature request...

Pages: 1 ... 150 151 [152] 153 154 ... 163