Use only getter in Presentation elements’ classes even if setters are available. Setters are not part of OpenAPI and in most cases should not be called directly.

 

Majority of functions for manipulating/creating/deleting the symbols is available in utility class com.nomagic.magicdraw.openapi.uml.PresentationElementsManager

PresentationElementManager can be used only inside the created session with com.nomagic.magicdraw.openapi.uml.SessionManager. If a session is not created, java.lang.IllegalStateException is thrown.

PresentationElementManager can be used only in already loaded and active project. In other cases, results can be unpredictable.

PresentationElementManager is implemented as a singleton. Use method PresentationElementManager.getInstance() to get a shared instance of this manager.