Simulink.BlockDiagram.deleteContents - Delete contents of block diagram

Syntax

Simulink.BlockDiagram.deleteContents(bdiag)

Arguments

bdiag

Block diagram name or handle

Description

Simulink.BlockDiagram.deleteContents deletes the contents of the block diagram bdiag. The block diagram must have already been loaded. The function affects only blocks, lines, and annotations; it does not affect nongraphical information such as configuration sets.

Example

If an open block diagram named f14 exists, the following code deletes the graphical contents of f14, including all subsystems. Nongraphical information in f14 is unaffected.

Simulink.BlockDiagram.deleteContents('f14');

See Also

Simulink.BlockDiagram.copyContentsToSubSystem

Simulink.SubSystem.convertToModelReference

Simulink.SubSystem.copyContentsToBlockDiagram

Simulink.SubSystem.deleteContents

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS