Export autonumbering?

0 votes
asked Nov 15, 2018 in Question / help by anonymous

Hello,
Is there way to get autonumbers exported somehow?

Requirement is to have sequence numbers (autonumber) and sequence arrow names listed in excel/word with additional documentation. In simple sequences it would be possible to maintain numbers in excel manually. But in complex cases with lot of changes and where numbering is sometimes stopped and continued with different range that would not work.

Simple sample:

@startuml
autonumber
Alice -> Bob ++ #red: Hello
return Hi there
Alice -> Ken : Do your job!
autonumber stop
group external
Ken -[#grey]> Ken : working
end group
...
autonumber resume
Alice -> Ken : Are you ready?
@enduml

PlantUML Diagram

ASCII art is containing required information, but that is difficult to process automatically.

     ┌─────┐          ┌───┐          ┌───┐               
     │Alice│          │Bob│          │Ken│               
     └──┬──┘          └─┬─┘          └─┬─┘               
        │  1 Hello     ┌┴┐             │                 
        │────────────> │ │             │                 
        │              │ │             │                 
        │ 2 Hi there   │ │             │                 
        │<─ ─ ─ ─ ─ ─  │ │             │                 
        │              └┬┘             │                 
        │       3 Do your job!         │                 
        │─────────────────────────────>│                 
        │               │              │                 
        │               │              │                 
        │               │  ╔═══════════╤════════════════╗
        │               │  ║ EXTERNAL  │                ║
        │               │  ╟───────────────┐            ║
        │               │  ║               │ working    ║
        │               │  ║           <───┘            ║
        │               │  ╚═══════════╪════════════════╝
        │               │              │                 
        .               .              .                 
        .               .              .                 
        .               .              .                 
        .               .              .                 
        .      4 Are you ready?        .                 
        .─────────────────────────────>.                 
     ┌──┴──┐          ┌─┴─┐          ┌─┴─┐               
     │Alice│          │Bob│          │Ken│               
     └─────┘          └───┘          └───┘               

Is there way to get output just for auto generated numbers and text =documentation? Are there any workarounds?

Thanks,
Hannu

commented Nov 15, 2018 by albert (3,520 points)
Please have a look at the formats like xmi, latex or even HTML and postproccess this into a format that can be inputted to excel.
From the help information:
    -tpng               To generate images using PNG format (default)
    -tsvg               To generate images using SVG format
    -teps               To generate images using EPS format
    -tpdf               To generate images using PDF format
    -tvdx               To generate images using VDX format
    -txmi               To generate XMI file for class diagram
    -tscxml             To generate SCXML file for state diagram
    -thtml              To generate HTML file for class diagram
    -ttxt               To generate images with ASCII art
    -tutxt              To generate images with ASCII art using Unicode characters
    -tlatex             To generate images using LaTeX/Tikz format
    -tlatex:nopreamble  To generate images using LaTeX/Tikz format without preamble

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...