Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Jayson on November 28, 2014, 09:56:05 am
-
Alrightkie
I've got a shape script which has the following label script:
shape label
{
....
SetOrigin("N",0,-30);
Print("#Name#\n<<#Tag:Type of Interval#>>");
...
}
This script is intended to place the name and interval type above the element with each occupying a single line ONLY.
Unfortunately, it does NOT do this.
It creates a text area that is generally too narrow for the text and then WRAPS the text across three or more lines!
The result is that the text spews all over the element, which is really unsightly.
So, after that rant, the question is: Is there some way to PREVENT text wrapping so that the name and interval type are each printed on a single line?
Cheers
Jays :)
-
So why did you put the '\n' in your print?
q.