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
It doesn't look like it can be done using the automation interface. Please send in a bug report and hopefully somebody can add it.

In the meantime, if you can establish a SQL connection to your model you can set it directly in the database. The field you would need to change is t_diagramobjects.ObjectStyle which contains a set of properties including "VPartition=0;" for horizontal partition (the default) or "VPartition=1;" for vertical.

There aren't any commands to, for example, create a profile from a given diagram/package or create a technology from a given MTS file (good ideas for a feature request), so you would have to write your own XML serialization. If you do, the potential sticking point will probably be base-64 encoding of shape scripts and bitmaps - I can't help you there, no idea how it's done.


But was not the question if it possible to hide symbols when exporting them? At least I want to show them on screen but when exporting removing certain elements.

// Magnus
Select the elements you want to appear in your diagram (hold down Ctrl and click the ones to select) then press Ctrl+C to copy the selected elements to the clipboard. Open a graphics application (MS Paint will do) and paste the clipboard into a new diagram. HTH

You can define a stereotype «invisible» that applies the following shape script:

Code: [Select]
shape main
If you set the stereotype's base class to '<all>' you can apply it to any element.

Regarding EA crashing, this needs investigating so please send in a bug report. Thanks.

Automation Interface, Add-Ins and Tools / Re: Toolbox Help
« on: December 04, 2009, 10:01:41 am »

No joy in fixing this yet...

Can a kind soul please post a simple example of a stereotype extending a metaclass that successfully drags from the toolbox?

Have a look in C:\Program Files\Sparx Systems\EA\MDGTechnologies. There's lots of examples in there.

Looking at your XML snippet, ProgrammeModelling is the name of your toolbox profile. Is it also the name of the UML Profile which contains the ZZZB stereotype?

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.

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

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.

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?

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

Code: [Select]

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


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.

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.

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

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

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