Hi,
To hide all ports in a drawing, set the ShowPorts property of the drawing's ScreenVisibility child to false as shown below:
NDrawing drawing = drawingView.Content;
drawing.ScreenVisibility.ShowPorts = false;
For more information, see the NOV Diagram Drawings documentation topic.