gobravedave / Enterprise-Architect

scripts and other code snippets to extend Sparxs Enterprise Architect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sequence diagram creation out of the plantUml script does not work for the projects with Version Control enabled

ikanel opened this issue · comments

If the EA project has a version control enabled - generation of the sequence diagram from the plantUml fails with the following error:
PlantUML.Create-Sequence-Diagram error: The current action cannot be completed as the necessary security is not available, Line:450

Line 450 of the Create-Sequence-Diagram is: connector.Update

Possible reason:
The script takes lifeline objects from the other packages which may be "CheckedIn" so, they are read-only and script cannot create connections for them.

Possible solution:
Create local instances of the objects instead of using one from the other packages.

thanks @ikanel , the code by design attempts to resolve whether the timeline object exists. it does assume that you have access to the package which contains this object.

If you wish to bypass this behaviour, then I suggest you remove the If condition on L222 and the subsequent else statements.