slreportgen.finder.DiagramElementFinder Class
Namespace: slreportgen.finder
Create diagram element finder object
Description
Finds elements in a Simulink® block or Stateflow® chart diagram.
The slreportgen.finder.DiagramElementFinder
class is a handle
class.
Creation
Description
creates a finder that finds elements of a Simulink block or Stateflow chart diagram. By default this finder finds blocks,
annotations, lines, states, and other elements in the diagram. Use the
properties of the finder to constrain the search to specific types of
elements.finder
= DiagramElementFinder(diagram
)
Note
This finder provides these options to get search results:
To return the search results as an array, use the
find
method. Add the results directly to a report or process the results in afor
-loop.To iterate through the results one at a time, use the
hasNext
andnext
methods in awhile
-loop.
Neither option has a performance advantage.
sets properties using name-value arguments. You can specify multiple
name-value arguments in any order.finder
= DiagramElementFinder(Name=Value
)
Input Arguments
Properties
Methods
Examples
Version History
Introduced in R2017b
See Also
slreportgen.report.Report
| slreportgen.finder.DiagramFinder
| slreportgen.finder.SystemDiagramFinder
| slreportgen.finder.ChartDiagramFinder
| slreportgen.finder.StateflowDiagramElementFinder
| slreportgen.finder.StateFinder
| slreportgen.report.Diagram
| slreportgen.finder.BlockFinder
| slreportgen.finder.AnnotationFinder
| slreportgen.finder.DiagramElementResult