Simulink.BlockPath
Fully specified Simulink block path
Description
A Simulink.BlockPath
object represents a fully specified block
path that uniquely identifies a block within a model hierarchy, even when the model hierarchy
references the same model multiple times.
Creation
Use either the Simulink.BlockPath
or gcbp
function
to create a Simulink.BlockPath
object. To get a
Simulink.BlockPath
object for the most recently clicked or loaded block,
use the gcbp
function.
Syntax
Description
creates an empty
bp
= Simulink.BlockPathBlockPath
object.
creates a copy of the specified bp
= Simulink.BlockPath(blockpath
)BlockPath
object.
creates a bp
= Simulink.BlockPath(paths
)BlockPath
object from the specified character vector or cell
array of character vectors. Each character vector represents a path at a level of the
model hierarchy. Simulink® builds the full block path based on the character vectors.
Input Arguments
Properties
Object Functions
convertToCell | Convert block path to cell array of character vectors |
getBlock | Get single block path in model reference hierarchy |
getLength | Get number of hierarchy levels in block path |
open | Open specified model, library, subsystem, or block |
validate | Determine whether block path represents valid block hierarchy |
Examples
Version History
Introduced in R2010b