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

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

That worked.


In my MDG's custom toolbox I am creating a page for common database tools as well as some custom stereotypes. For example, I have included the standard table element by inserting an attribute:

UML::Table = Table

I would also like to include EA's view and procedure stereotypes. Tried:
UML::View = View
UML::Procedure = Procedure
but it does not work.

Any suggestions?

Thanks to Dermot (Sparx Support) there is a way to report embedded element connections.

Turn on embedded elements in the template section, but do not place any text/fields in the template.  That is the template would look like:

embedded elements>
<embedded elements

Upon seeing that there are no fields for embedded elements, the generator will default to what ever you have for the element, including the child sections, such as connections and attributes.

If you place anything within the embedded elements, the default is not taken and you are on your own, thus limited to the fields that can be selected under embedded elements.  A feature request has been made to allow the same child sections for embedded elements as you get for elements, thus providing more control over the report output.

Apparently there was no replies to Jura's Aug 2011 posting and now I have the exact same question...

How does one create a report template that can display the connection (and attributes) between two nodes' ports (embedded elements) like you can with connections between two nodes?

I am assuming you cannot which rather defeats the purpose of ports.


Just curious if others have this minor issue.  
Since upgrading to v11, documents that include diagrams which have their property option set for "Divide Diagram into Multiple Pages" are only generating the first page in the doc.
To fix, I have to open the properties for the diagram, click the Diagram tab and then click OK, which one would think does nothing, but now when generating the document, all pages of the diagram are displayed.  

In my RTF template, I set the package name to "Heading 1". The RTF generator correctly creates the child package name with the Heading 2, Heading 3, etc.
I am using a style sheet template to define the Headings. Only Heading 1 has a page break preceding it.

When the RTF generator creates the output document, it assigns the correct Heading x style to the package name and displays the correct formatting, EXCEPT, the generator is formatting a page break for all Headings, not just Heading 1. I am assuming this is a bug in that it is picking up the Page Beak defined for Heading 1 and applying it to all Heading x created for the child packages.

FYI:: While I am using v11 and style templates, I think the same issue was in earlier releases when I defined the header styles as part of the main template. It also does not make any difference which document type you select for the output.

Thanks Helmut.
You understood exactly.
Found the code and modified it.  Working great.

I am trying to create a customized version of v11's Data Modeling Report and its associated fragments. I started by making copies of the report, the database fragments and the Template Selector fragment so that I have them under User Templates and thus can modify it.

I am confused on how this report includes the Database Table fragment. In the Data Modeling Report within the element section there is the inclusion of:
{Template - Template Selector

When you view this fragment, it only consists of the section:
custom >

that is, no inclusion of the Database Table fragment, yet somehow it pulls in the Database Table fragment.
In my case I want it to pull in my customized Database Table fragment, but cannot figure out how to change it. I am assuming there is some code or query associated with the Template Selection template, but do not know how to view/modify it.

What am I missing?

I figured it out.
I do not think it can be done from within the document template editor. Instead I initially created the rtf document via Word which had the cover page created with a header that included all of the background images then the text on the actual cover page. I saved the doc as an RTF doc. I then went to the EA's document template editor, created a new template and imported the rtf document.
Note: if you import an RTF doc into the document template editor and it has tables in the header or footer, you may have to re-create the tables with the template editor. For some reason it did not import the column size correctly and was difficult to adjust. Was easier to re-create it.

I have succeeded in embarrassing myself.
Over a year ago I had created an RTF template that closely matched our company’s Word templates. It actually works very nice.  It has a cover sheet with a header where I have an image. The actual image extends beyond the header margin and down the left side of the entire page and text in the header as well as the page flows over the image. I am able to click on the image and position it accurately on the page.  
I now want to change the template to match new company guidelines, but for the life of me, I cannot determine how I did it.

If I select “Insert Picture”, it embeds the picture in line with the text with the text flowing around it and header margin increases so that the entire image is within the header margin, pushing the start of the actual page area down.

If I select “Background” the image fills the entire page with no capability for positioning it or resizing the image.

Also does not look like I used frames or object drawing.  

I do not know how I did it. Only clue is that when looking at the header with the Paragraph Marking icon on, not only do you see the image, but in the text line, you also see a small icon of the image that is the same size as a text character. If you click on that small icon image, the actual image is selected. Repositioning the actual image does not change the position of the small icon.  The size of the header remains relational to the text only, allowing the actual image to extend beyond the header margin. I now want to do the same thing. Anyone know how I did this?  Was it a capability in release 9 that I cannot create in 10 or am I missing something?  

Automation Interface, Add-Ins and Tools / Re: MDG generation sleeping?
« on: October 31, 2013, 05:05:17 am »
I am using a local eap file as well as local files for my generated xml profile files. Any image icons used on my stereotypes are also local files, so I cannot think of any network-based resources, yet I would agree the symptoms would seem to indicate that EA is waiting (sometimes a long time) for something.  Thing that bugs me the most is that it is not consistent.  

Automation Interface, Add-Ins and Tools / MDG generation sleeping?
« on: October 30, 2013, 12:20:41 am »
Just being curious. I have a custom MDG technology that includes a profile with quite a few node stereotypes, several toolboxes, several diagrams, rtf templates and some included images. When generating the MDG (using an MTS file) sometimes it proceeds thru each step of the MDG wizard quite fast, completing the generation within 15 seconds or so, but more often than not, it seems to go to sleep toward the last couple steps, like before the image selection or at the end. If I wait, it will complete, but sometime it will be several minutes.

Anyone else experience this? Have any idea what could be causing such a difference in generation time of the same MDG?

Thanks, Simon.

I have an MDG with a profile that defines 14 stereotypes used for network diagraming It alos has an associated toolbox and digram profile. All 14 stereotypes are created the same way, that is,
in the profile:
- all stereotypes objects extend to the same Node metaclass object.
- Their attributes structure are the same in that each have:
  - an _metatype with a unique value (such as Router, Server. etc.),
  - an _image with a decloration script to provide icon on the steretype object,
  - an icon attribute to provide a similar icon in the project prowser
  - unique set of attributes for creation of tags.
- The default appearace for each object is set so that most have a unique background color.

When I create an new object on a diagram using the MDG's stereotypes, all is well, except for two. In these two stereotypes, EA does not include the <<stereotype name>> above the object name and there is another icon under the defined _image icon (you can see it around the edges of the defined image). The dafault color, tags and object name as well as the name of the Stereotype in the object's General properties are OK.  I suspect that EA is getting confused with another stereotype of the same name. In my MDG the names are "Server" and "Storage", but I can see in the list of stereotypes that there was also a "server" and "storage". I know that in some functions when EA looks up stereotypes, it ignores case as well as the generating MDG, apparently picking the first stereotype in the return query. In an effort to correct the problem, under UML Types I deteted "server" and "storage" stereotypes and then removed all MDG technologies except Basic, Simple, Code and my MDG. The "server" and "storage" stereotypes now do not show up in either UML Type list nor for stereotypes in the object's general properties, yet the generated object are still displayed without the <<stereotype name>> and the corrupted _image decloration iocn.

If this is just a display issue, then it is not a huge problem, but I am concerned that these two object are being creating differently internally than the other stereotypes which may cause issues later. For example if I start using API to access the objects.

Other than using a different name in my MDG, is there a way to fix this?

I thought changing the diagram type would be the answer, but I could not find the option when I right clicked the diagram in the browser. I just noticed that the option is under the Dagram menu. So I changed the diagram type to my NCI diagram and all appears well. Still need to do that for all of the diagrams

I currently do not understand Q's solution, but maybe I will not need it.

Thanks Gunther and Q.

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