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 ... 154 155 [156] 157 158 ... 167
2326
Quote
As far I remember this was the thingey I didn't get to work. I've tried various versions for PPP and SSS, with full stereotype namespace, without, etc. But maybe I've just missed something. At least I ended up implementing the mentioned synch code, and that worked well.

WBR
Günther
If you were taking it from this post it is missing a semi-colon after the stereotype. Maybe that was the problem?

2327
The answer is buried deep in one of the links that Günther gave you:
Code: [Select]
Repository.CustomCommand("Repository", "SynchProfile", "Profile=PPP;Stereotype=SSS;");
What this will do is search for all elements in the database with the stereotype «SSS» from profile "PPP" and bring their list of tagged values up-to-date. So if you are adding several stereotyped elements, just run this command once at the end.

2329
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

2330
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;

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

HTH

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

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

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

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

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

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

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

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

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

Pages: 1 ... 154 155 [156] 157 158 ... 167