Book a Demo

Author Topic: Update default diagram size, font size  (Read 3305 times)

rnv

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Update default diagram size, font size
« on: December 13, 2012, 09:49:13 pm »
Hi,

Please help me with some basics.

how can i change the font, line length between objects of automatically created diagrams?

explanation:
I have use case scenarios from which i create activity diagrams automatically. The problem the diagram extends to more than one page because the lines connecting actions are too long. Also since the font is small when i print it is difficult to read.

with best regards,
rnv

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Update default diagram size, font size
« Reply #1 on: December 19, 2012, 01:52:20 am »
From my Inside EA book:
Quote
DiagramObject StyleEx Property
Even more semi-colon stuff:
Dockable=on;DUID=BA09D7A8;VPartition=1;LCol=0;BCol=14938876;BFol=0; font=ARIAL;fontsz=80;bold=0;italic=0;ul=0;charset=0;pitch=0;
A part of these are detailed in Sparx’ automation object reference. From t_diagramobject.StyleEx
That might get you on the track.

q.
« Last Edit: December 19, 2012, 01:54:26 am by qwerty »

rnv

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: Update default diagram size, font size
« Reply #2 on: December 19, 2012, 06:19:36 pm »
thank you but i am not sure where to start.  :-?

where & how should i specify these things? (I am relatively new in EA)
regards,
rnv

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Update default diagram size, font size
« Reply #3 on: December 19, 2012, 08:08:07 pm »
Each DiagramObject has a StyleEx property which is a string. You need to parse it an manipulate the according entries (e.g. to italic=1;) or you must add it if not in the list. Then save it. Once you reload the diagram the changes should be visible.

q.