Subdiagrams

Hello,
If I have an activity diagram, created as a use case scenario, how can I get a use case that it describes, using Open API?

Regards,
Jacek

Hello Jacek,

Try this:
IDiagramUIModel.getParentModel()

The IModelElement returned by this call is the use case.

Best regards,
Jick

Hello,
Unfortunately there is no such a method in my version of API.

Regards,
Jacek

methods.JPG

Hello Jacek,

I am sorry that this function was removed in the current version for some reasons. But we have added it back, and it is now available in the latest release. Please run the product updater to advance to the latest release that include the getParentModel() method. Sorry for the wrong information in my previous post.

Best regards,
Jick

Hello,

It works now, thank you,
Jacek

You are welcome. :smiley: