slreportgen.finder.BlockFinder Class
Namespace: slreportgen.finder
Superclasses: mlreportgen.finder.Finder
Find Simulink blocks
Description
Finds blocks in a Simulink® diagram.
The slreportgen.finder.BlockFinder
class is a handle
class.
Creation
Description
creates a finder that finds by default all types of blocks in the specified
Simulink block diagram. To constrain the search to specific types of
blocks, use the properties of the finder.finder
= BlockFinder(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
= BlockFinder(Name=Value
)
Input Arguments
Properties
Methods
Examples
Version History
Introduced in R2017b
See Also
slreportgen.report.Report
| slreportgen.finder.DiagramFinder
| slreportgen.finder.DiagramElementFinder
| slreportgen.finder.SystemDiagramFinder
| slreportgen.report.SimulinkObjectProperties
| slreportgen.report.Diagram
| slreportgen.report.SimulinkObjectProperties
| slreportgen.finder.BlockResult