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 - Modesto Vega

Pages: 1 ... 5 6 [7] 8 9 ... 11
91
General Board / Re: Copy Elements Between Diagrams
« on: April 17, 2015, 10:41:53 pm »
Quote
Quote
It will be nice if a diagram could be copied and an element within the diagram replaced with a new element preserving similar relationships.
To me that sounds like some very local use. Anyhow, a little script can do that  for you.

q.
It is not local for the modelling I do: data modelling. There are a lot of recurring patterns, in particular when modelling entities at different level of granularity :)

Is this the best reference for scripting in EA https://leanpub.com/ScriptingEA?

92
General Board / Re: Copy Elements Between Diagrams
« on: April 15, 2015, 09:39:20 pm »
I don't think there is a way to do what you are after, at least I haven't found a way to do it. You can copy and a paste and element but any dependencies and associations will be lost because one of the 2 elements in the relationships is a different element in the new diagram.

It will be nice if a diagram could be copied and an element within the diagram replaced with a new element preserving similar relationships.

93
General Board / Re: Document generation
« on: April 29, 2015, 10:17:22 pm »
Is that a build after 1212? You see I got the feeling it worked on the 1st EA12 build I downloaded (which wasn't 1212).

94
General Board / Re: Document generation
« on: April 29, 2015, 10:11:32 pm »
Quote
It does work. However there have been bugs reported against this in the past ... which version of Sparx are you using ? v8 / v9 had the bugs I think. If your using a later version ... delete the table and recreate ... it will only work if "Name", "Description" appear in cells on the first row...if there is a row above them it want work...
EA 12 (Build 1212). I'll try your suggestion when it gets a little quieter. I am sure I had seen this working but cannot remember if it was on 12 or 11.

95
General Board / Re: Document generation
« on: April 29, 2015, 05:56:19 pm »
Quote
Try selecting "name" and "description" cells and right click select Table -> Header Row....
This does not work, it repeats the headers as many time as elements.

96
General Board / Re: Document generation
« on: April 28, 2015, 09:00:22 pm »
Quote
Yes it is possible. Just add Name and Description on first line.

i.e. adding to your example
Code: [Select]
package >
{Pkg.Name}
package element >< package element
element >
Name             Description
{Element.Name}      {Element.Notes}
child elements >
< child elements
< element
child packages >
< child packages
< package
It would also help if you added a table
There is table in the code, it just does not copy.

As I said in the OP, I have tried what you propose with a table and I end up with Name and Description repeated multiple times, possibly as many as elements (although I haven't counted them, there almost 200 in the model I a working with). Setting the top row as header does not solve the repetition.

97
General Board / Document generation
« on: April 28, 2015, 06:46:24 pm »
Before I raise this as an issue, I would like to establish if it is at all possible.

Let's say I have a package, lets call it "Package 1" for this example, with a diagram, lets call it "Diagram 1" for this example, and a several classes, 5 for these example, "Class 1" to "Class 5".

I know the following code snippet (by the way {Element.Name} and {Element.Notes} are 2 cells on ta table

Code: [Select]
package >
{Pkg.Name}
package element >< package element
element >
{Element.Name}      {Element.Notes}
child elements >
< child elements
< element
child packages >
< child packages
< package

Is going to generate the following

Package 1

Class 1Notes for Class 1
Class 2Notes for Class 2
Class 3Notes for Class 3
Class 4Notes for Class 4
Class 5Notes for Class 5

This is good, almost what I am trying to achieve. However what I am trying to do is having a table looking like:

NameDescription
Class 1Notes for class Class 1
Class 2Notes for Class 2
Class 3Notes for Class 3
Class 4Notes for Class 4
Class 5Notes for Class 5

Is this possible? Making the top row on the table a Header Row does not do it. If it is possible, what have I missed?

98
General Board / Re: change system templates (fragments) ?
« on: April 29, 2015, 12:14:14 am »
Instead of creating a Fragment, have you tried creating a Template. If you have a user define template (instead of a fragment), you can generate documentation from it.

Fragments are to be used only Templates.

99
General Board / Re: change system templates (fragments) ?
« on: April 28, 2015, 10:08:43 pm »
Which version of EA are you running? On EA12 you can create your own documentation fragments based on existing system templates. Just make sure you select the right system template on the "Copy from" list.

100
General Board / Re: Copying/saving a diagram to the clipboard
« on: April 24, 2015, 05:59:19 pm »
Quote
Alternatively
Tools > Options > Diagram
See "Diagram frames"
you can turn them off when copied to the clipboard, so the problem goes away.
It certainly does the trick; thank you very much, much appreciated.

101
General Board / Re: Copying/saving a diagram to the clipboard
« on: April 15, 2015, 06:57:48 pm »
Quote
Not if you are including profiles.  You need to export each of your profiles (Stereotypes, Diagrams, Toolboxes) as XML files first, which can then be included in the MDG Technology.
How can I establish beyond doubt all the profiles used in a project, including those inherited?

102
General Board / Re: Copying/saving a diagram to the clipboard
« on: April 14, 2015, 11:48:51 pm »
Thanks for this, MDG technology gets mentioned again I should give a try. Is the MDG creation wizard capable of generating an MDG file based on a project?

103
General Board / Copying/saving a diagram to the clipboard
« on: April 14, 2015, 12:58:16 am »
If I have a diagram call foo and save it to the clipboard, when it gets pasted into another document it has a box at the top reading "class foo". Is there a way to customise this through a stereotype and make it read "SADM foo"?

104
General Board / Re: Set Element Properties by Diagram Type
« on: April 22, 2015, 02:53:11 am »
You can set the color locally for each diagram using the toolbox at the top of the diagram or globally using F4. The formatting toolbox at the top of the diagram overrides the global settings. Which method are you using to change the color of the class?

105
General Board / Re: Connectors in diagrams in background
« on: April 15, 2015, 06:55:45 pm »
Quote
To go on with that: creating wall-papers I found it extremely convenient to use sub-domains on A4 format and assemble them on a larger A-format poster rather than creating a single big one.

q.
Fully agree, all detail does not have to be in 1 diagram; it is often best to divide a very large diagram and assemble a larger diagram together as a wallpaper.
To make this task easier I use a "starry skies" orientation: I place the many side of any relationships at the top of the diagram and if I cannot do that I place them on the top left quadrant; but I normally model data.

Pages: 1 ... 5 6 [7] 8 9 ... 11