Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: cat on September 01, 2010, 01:59:13 am

Title: RTF output - line feeds in structured scenario
Post by: cat on September 01, 2010, 01:59:13 am
Greetings,

I searched for the answer but didn't find - how to insert a line feed/new line/carriage return into the output of the structured scenario steps of the rtf document?

Thank you for any help!
Title: Re: RTF output - line feeds in structured scenario
Post by: AndyJ on September 02, 2010, 02:25:59 pm
Hi Cat,

I'm not clear on what you're trying to achieve, but can recommend the white paper "Working with the RTF generator"...

http://www.sparxsystems.com/downloads/whitepapers/Working_with_the_RTF_generator.pdf

However, in my Use Cases, I've put the structured steps in a table, so that each step appears as a new row in the table. If you want extra lines of space to appear, adding a hard return in the template will assist.

The placement of the tags is important however, as any white space can create extra lines, or in the worst case, a separate table for each row...

Hopefully that will help.

Andy.

Title: Re: RTF output - line feeds in structured scenario
Post by: cat on September 02, 2010, 10:45:59 pm
Thank you for your reply. Can you give me an example of how you did the table in the template?
Title: Re: RTF output - line feeds in structured scenario
Post by: AndyJ on September 03, 2010, 08:50:17 am
scenario >
----------------------------------------------------------------------------
 Scenarios:  
----------------------------------------------------------------------------
<ElemScenario.Type><ElemScenario.Notes>
----------------------------------------------------------------------------
<ElemScenario.Scenario>
----------------------------------------------------------------------------
structured scenarios >
----------------------------------------------------------------------------
{Scenario_Structured.Step}. {Scenario_Structured.Name}, Uses: {Scenario_Structured.Uses}
exception >
Exception: . {Exception.Name}
< exception
-------------------------------------------------------------------
< structured scenarios
exception >
{Exception.Step}.{Exception.Name}
< exception
-------------------------------------------------------------------

< scenario

Sorry Cat, I've wasted quite a bit of time trying to get the forum to display this properly as a table, but the interface has defeated me.