Algosim documentation: ClearDiagram

ClearDiagram

Removes all objects from a diagram.

Syntax

Description

If s is the name of an existing diagram, then ClearDiagram(s) removes all objects from this diagram. A reference to the diagram is returned.

If s is not the name of an existing diagram, then a new, empty diagram is created with this name (just as if diagram(s) had been called). A reference to this diagram is returned.

See also