In Dymola, I can display the name of a component in a TextBox by using the syntax %name. I can also display its class (%class), its path (%path) and any of its parameter (%name_of_parameter).
But I can't find how to display the "Comment" field. %comment does work on Wolfram, but doesn't seem to work in my version of Dymola. Is there any way to do that, or do I need to create a custom "DisplayedName" parameter?