check [Solved]How to get content of note via script

3 months 5 days ago - 3 months 4 days ago #5786 by Ralf Ebert
Happy new year to every one.

is there a way to get the content of notes via a script? I'm using Modelio v3.7 under linux

Best regards
Ralf Ebert

Please Log in or Create an account to join the conversation.

3 months 4 days ago #5790 by pan
Happy new year Ralf!

You can use the getNoteContent method to get the content of a note. It is documented here: www.modelio.org/documentation/javadoc-3....ng-java.lang.String-

This is an example for a description note:
selected = selectedElements.get(0)
print selected.getNoteContent("ModelerModule", "description")

Let us know if it helps.
The following user(s) said Thank You: Ralf Ebert

Please Log in or Create an account to join the conversation.

3 months 4 days ago #5793 by Ralf Ebert
Hi pan,

yes, it works fine. Thank you for your hint, I've found this function but I had no idea to replace moduleName by "ModelerModule" :-/

Best regards,
Ralf

Please Log in or Create an account to join the conversation.

Moderators: tmaebr
Time to create page: 0.037 seconds
^ Back to Top