get_param(annotation,'Text') has inconsistent format
Mostrar comentarios más antiguos
I am trying to obtain the annotation texts from all of my subsystems in Simulink programmatically, and then edit them.
First, I tried to use set_param (annotation, 'PlainText', annotationtext) but it turns out that 'PlainText' is read-only.
Then, I started using get_param (annotation, 'Text') to obtain the text because 'Text' is not read-only, so I can edit that.
However, when i use get_param for 'Text', the text is sometimes obtained in html format for some subsystems, and sometimes in in plain format for other subsystems. Thus, I cannot create a generic script to edit the text because sometimes I get it in html format and sometimes in plain format. Why does this happen? How can I obtain all text in plain format by using the 'Text' property?
1 comentario
Fi La
el 8 de Dic. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Programmatic Model Editing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!