gobravedave / Enterprise-Architect

scripts and other code snippets to extend Sparxs Enterprise Architect
BSD 2-Clause "Simplified" License
51 stars 12 forks source link

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

Open ikanel opened 12 months ago

ikanel commented 12 months ago

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.

gobravedave commented 9 months ago

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.