slreportgen.utils.getObjectID
Generate link target ID for Simulink or Stateflow object
Description
generates a link target ID for the specified Simulink® or Stateflow® object. The ID is hashed so that it does not exceed the 40-character limit
imposed on Microsoft Word bookmarks.id
= slreportgen.utils.getObjectID(obj
)
Note
The slreportgen.report.Diagram
and
slreportgen.report.ElementDiagram
reporters use this utility to generate IDs
for element hyperlinks in diagrams generated for HTML and PDF reports. You can use this
function to generate corresponding link targets for the diagram elements.
To create a link target for a Truth Table block in a Simulink
diagram, specify the Truth Table block path and not the
Stateflow.TruthTable
object.
Examples
Obtain Object ID from Handle
openExample('f14') modelHandle = slreportgen.utils.getSlSfHandle('f14'); objID = slreportgen.utils.getObjectID(modelHandle)
objID = '8bc7ba92e180202ffc5ce217625c6563'
Input Arguments
Output Arguments
Version History
Introduced in R2018b