Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: gfranz on May 27, 2013, 03:24:04 pm

Title: Line break in diagram object name
Post by: gfranz 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
Title: Re: Line break in diagram object name
Post by: VKN on May 27, 2013, 03:45:46 pm
Just wondering how code generation would work with those kind of names?
Title: Re: Line break in diagram object name
Post by: gfranz 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...

Title: Re: Line break in diagram object name
Post by: Takeshi K 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

Title: Re: Line break in diagram object name
Post by: gfranz 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?

Title: Re: Line break in diagram object name
Post by: qwerty 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.
Title: Re: Line break in diagram object name
Post by: gfranz on May 27, 2013, 10:17:04 pm
Thanks!