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 - Michael Proske

Pages: [1] 2 3 ... 5
1
Paolo can you post the shape script as an example
Regards Michael

2
Suggestions and Requests / Re: Documentation of the EA database
« on: October 07, 2011, 12:07:23 am »
This is the only way but the db model is very simple and intuitive

3
General Board / Re: Multiple stereotypes and apperance(s)
« on: October 02, 2013, 03:18:00 am »
I have used the stereotype of an diagram to show different apperance for the same element. The stereotype can be accessed from within the shape script. Depending on the stereotype I show the orignal class or several visio images based on an tagged value of the element.
But still everything is hardcoded in the shape script.

4
General Board / Re: Experiences with Update Style in RTF Templates
« on: April 14, 2012, 12:17:45 am »
Please do not create normal.rtf with word. The RTF created by word has much more information EA can understand. Normal.rtf for EA is a quite simple file with only basic style information.

5
General Board / Re: Experiences with Update Style in RTF Templates
« on: March 09, 2012, 10:11:35 pm »
I made a bug report of the heading topic. Reply is that this feature is not planned. The behaviour you see with headings is expected by Sparx and not a bug. So just forgot Update Styles functionality it will not work as expected.

6
General Board / Re: Experiences with Update Style in RTF Templates
« on: October 04, 2011, 06:12:18 pm »
I have asked for the status of my bug report but it is still not scheduled. We have to wait.

7
General Board / Re: Experiences with Update Style in RTF Templates
« on: August 10, 2011, 01:50:05 am »
That is the behaviour but if no normal.rtf is located in the program files directory ea is giving an error message that normal.rtf is not available. If you only install it under APPDATA then please remove it under the prgram file directory. Otherwise it copies the first time the normal.rtf under the APPDATA path

8
General Board / Re: Experiences with Update Style in RTF Templates
« on: August 03, 2011, 07:29:09 pm »
Interesting information Raymond.  I agree with you like normal.dot in MS Word a template should provide all style information not only the paragraph styles.

I have tried to solve the problem that after update style heading numbering is lost. It could be written in the rtf documentation of the paragraph style but EA does not analyze it correctly.

I have not registeded all as bugs but i will do so.

9
General Board / Experiences with Update Style in RTF Templates
« on: July 30, 2011, 02:50:05 am »
I just wanted to write down my frustration with the Update Style feature in EA 9. I have twenty of RTF Templates and there was no the task to change it to a new company style.
First task:
Change the page size and change borders. I tried to change the size in the normal.rtf file but this only works for new documents. Update style does not update the page size and borders. By that i was wondering why page size stil was the same even if i changed it under Program Files\Sparx Systems\EA\DocTemplates\Normal.rtf. I found out that EA always generates a copy of this file under C:\Documents and Settings\<username>\Application Data\Sparx Systems\EA\RTF Templates and only use this one for update style but does not change it when i edit the one under the program directory. Caused a lot of trouble so when you change the styles always delete the one in %APPDATA% it will be created immediately when style info is needed.

Second problem i had was that even i have changed Normal Style to Arial 10 after update style it was changed to Arial 10. This problem was solved after i changed the default paragraph font also and gave hime a concrete Font and size information. {\cs1\f0\fs20\cf0\sa120\sl240 Default Paragraph Font;} and here is the font definition {\fonttbl{\f0 \fswiss Arial;}{\f1 \fswiss \fcharset2 Symbol;}{\f2 \froman Lucida Sans;}}

Third problem is that after update style all font information like Bold or colored text is changed to standard normal style. Also Headings are resetted to normal but they keep their style information. You have to set the style again and also switch on numbering.  Didn't find a solution for that.

Fourth problem i had was that the table size was greater than the page size. I exported the document to an rtf file and changed the table site manually in the rtf file what was eays. Then import the file again and ... nothing changed. I found out that you have to close the rtf template and import only works when is open without any change. Could be a memory problem. So any change to the rtf file should be imported only to a newly open template otherwise it fails.

I still have some bugs in when generating documents with the new templates. One is that text in color will not generated when displaying a tagged value (ValueOf(...)). Also sometimes the style of a figure note ist not centrally but left but this happens only ion MS Mode not in Open Office mode. I made the experience that most errors appear in MS mode.

On the other hand style usage is much bette in EA 9. Where i had before hundered of styles in my word doc because very size change of normal style generated a new style this is gone so i have only the styles that i have defined in my word doc.

Hopes information helps somebody out there wis the same problem.

10
General Board / Re: Tagged Values in RTF Report without «stereotyp
« on: June 06, 2012, 10:26:40 pm »
I assume that you use Reference Tagged Values to other elements. If yes then there is no way to avoid printing of the stereotype because it is a feature not a bug. I wrote a bug report because in former versions the behaviour was different but they told me it is implemented as designed.

11
General Board / Re: HasTag and realised MDG tags
« on: May 04, 2012, 07:05:05 am »
I had the same problem today with instantiated classes where the tags also are inherited and will not be seen by the shape script. I made a bug report out of it lets see how Sparx react on that.
qwerty you have the right idea i will write extend my extension to read inherited tags.

12
General Board / Re: Fields in Header/Footer in RTF documents
« on: March 08, 2012, 01:59:41 am »
Graham you are right but project constants are so general that there use is limited

13
General Board / Re: Fields in Header/Footer in RTF documents
« on: March 06, 2012, 01:53:03 am »
The answer is no. You can't put any model information in hedaer / footer. To solve this issue i put the neccessary information in text in the template so it is generated like <EA Field EA_MODEL_NAME>xxxx<EA Field> and use EA_MODEL_NAME in Header or Footer. After generation of the document i have a word plugin that first searches for EA Field and extract the information to word document information fields and then replace the EA_MODEL_NAME with a filed referencing the informatino field. A little bit complex but if you have developed it once it is very flexible and you can put any information in header and footer.

14
General Board / Re: File name in RTF Footer
« on: March 06, 2012, 01:32:31 am »
I think there is no way to put the information in header or footer. It is the same with other document information. I managed the problem with an word plugin that seraches and replaces constants in the text with Word fields etc. but this may not be the solution for everyone.

15
General Board / Re: RTF Reporting Questions
« on: September 17, 2011, 02:46:24 am »
Try to use diagram element section in the rtf template for reporting instead of the overall element section. Maybe this helps

Pages: [1] 2 3 ... 5