You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

To remove the given com.nomagic.magicdraw.uml.symbols.PresentationElement from the diagram, use the method com.nomagic.magicdraw.openapi.uml.PresentationElementsManager.deletePresentationElement(PresentationElement):

    PresentationElement element = ...; 
    SessionManager.getInstance().createSession("Test"); 
    PresentationElementsManager.getInstance().removePresentationElement(element); 
    SessionManager.getInstance().closeSession();

All related presentation elements with all children and connected paths will be removed too.

Related pages