slreportgen.utils.HierarchyNumber Class
Namespace: slreportgen.utils
Description
Use an object of the slreportgen.utils.HierarchyNumber
class to generate numbers that represent the
positions of subsystems in a model hierarchy. You can use the numbers to label report
elements, such as section titles.
The slreportgen.utils.HierarchyNumber
class is a handle
class.
Creation
Description
creates a hierarchy number object for the specified source and sets the hierarchyNumberObj
= slreportgen.utils.HierarchyNumber(source
)Source
property to source
.
If you specify the source as a Simulink® model, the HierarchyNumber
object uses all the uncommented
Simulink subsystems and Stateflow® chart diagrams in the model to generate the model hierarchy numbers.
Otherwise, the object uses the custom subsystem list that you specify. For example, to
generate the hierarchy number of Stateflow chart diagrams in a model, specify a list of the subsystem paths.
Properties
Methods
Examples
Version History
Introduced in R2021b