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 ... 151 152 [153] 154 155 ... 164
2282
Quote
I'd like to send a ZIP that contains the EA diagram, the modified template and an image of what I did in the template. How can I do this?
mailto:support@sparxsystems.com

2283
Have a look in EA.Element.MiscData(2). There should be a string like this which you will need to decode:

Code: [Select]
<PRM1>=parameter;<TYP1>=type;<DEF1>=default;

2284
Build an MDG Technology containing your profile and implement the EA_OnInitializeTechnologies broadcast handler.

HTH

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

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

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

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

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

2290
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-)

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

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

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

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

2295
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);
}

Pages: 1 ... 151 152 [153] 154 155 ... 164