Book a Demo

Author Topic: Line break in diagram object name  (Read 10596 times)

gfranz

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Line break in diagram object name
« on: May 27, 2013, 03:24:04 pm »
Hello,

is there a way to tell EA to insert a line break in the name of a diagram object on a defined position? I want to limit the width of diagram objects, but currently I don't see a way to wrap the name into a second line without using spaces.

Example: Wrap

----------------------
CapabilityTransition
----------------------

into

-----------
Capability
Transition
-----------

Thanks
« Last Edit: May 27, 2013, 03:25:09 pm by gfranz »

VKN

  • EA User
  • **
  • Posts: 187
  • Karma: +9/-1
    • View Profile
Re: Line break in diagram object name
« Reply #1 on: May 27, 2013, 03:45:46 pm »
Just wondering how code generation would work with those kind of names?

gfranz

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Line break in diagram object name
« Reply #2 on: May 27, 2013, 03:50:36 pm »
Yes, it must be a kind of special character, like the ones you add to menu items in your IDE. And it must be ignored within EA and maybe also when accessing EA with the API. So I don't expect, that there is a way to do this and just want to make sure...


Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Line break in diagram object name
« Reply #3 on: May 27, 2013, 04:16:21 pm »
You can add a line break by the following steps for some type of objects, but it causes bad result for code generation and document generation...

1. select a target object in a diagram
2. press F2 and move cursor to location to add a line break
3. press Ctrl+Enter

--
t-kouno

gfranz

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Line break in diagram object name
« Reply #4 on: May 27, 2013, 05:10:18 pm »
Thanks a lot!

Do you also know, where this handling is stored in the database? And how?


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Line break in diagram object name
« Reply #5 on: May 27, 2013, 05:56:54 pm »
It's simply in t_object.Name. Place a newline char where you want the line break.

q.

gfranz

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Line break in diagram object name
« Reply #6 on: May 27, 2013, 10:17:04 pm »
Thanks!