To create a com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement for given ModelElement in the givencom.nomagic.magicdraw.uml.symbols.DiagramPresentationElement, use method com.nomagic.magicdraw.openapi.uml.PresentationElementsManager#createShapeElement(...). The location of the created shape will be (0,0).