Main Content

slreportgen.finder.BlockResult class

Package: slreportgen.finder

Create block finder result object


Block search result object for a block in a Simulink® diagram.


result = BlockResult(block) creates a search result object for a block found by a BlockFinder. The result object contains the Simulink block.


The simulink.finder.BlockFinder find method creates objects of this type for each block that it finds. You do not need to create this object yourself.

finder = BlockResult(Name=Value) sets properties using name-value pairs. You can specify multiple name-value pair arguments in any order.

Input Arguments

expand all

Simulink block, specified as a path or block handle to that block.


expand all

This read-only property contains a handle to the block returned in this result.

This read-only property specifies the name of the block returned in this result.

This read-only property specifies the type of the block returned in this result.

Example: "Gain"

This read-only property returns the path of the block returned in this result.

Additional information to add to this result. You can set it to any type of value.


Public Methods

getPropertyValuespropVals = getPropertyValues(resultObject,propNames) returns the values of the properties specified in propNames in a cell array. Access the properties of the result object or the block represented by the finder result object by specifying the required property names in propNames.
getDefaultSummaryPropertiespropList = getDefaultSummaryProperties(resultObject,TypeSpecificProperties) returns the list of finder result class properties that are included by default in a summary table.
getDefaultSummaryTableTitletableTitle = getDefaultSummaryTableTitle(resultObject,TypeSpecificTitle) returns the default title for a summary table for a finder result object of type resultObject.
getReporterLinkTargetIDtargetID = getReporterLinkTargetID(resultObject) returns the link target ID of the reporter associated with the finder result object. Use the link target ID to add a hyperlink to the reporter from any part of the report.

Copy Semantics

Handle. To learn how handle classes affect copy operations, see Copying Objects.

Version History

Introduced in R2017b