How to form diagram from existing model structure using open API

I am trying to a plugin which will create a diagram from a Model Structure using openAPI.
On VP, on Model Explorer on selecting Package Model type right clicking gives an menu with option of
Form Diagram-> Customise/Hierarchical/Navigational, which then creates a class diagram. I believe this feature is only available for Package Model type.
Is an API for this menu option “Form Diagram”??

Hi Shweta,

Thank you for your post. I have forwarded your question to our team. When there is an answer, I will let you know.

Best regards,
Jick Yenug

Hi Shweta,

I am sorry but our Open API does not support the various form diagram options currently.

Best regards,
Jick Yeung