Hello !
I have created a DocBlock in my model and i would like to update the content programmatically. I have this code :
DocBlock = find_system('Model', 'SearchDepth', 1, 'Name', 'DocBlock');DocBlockHandle = getSimulinkBlockHandle(DocBlock);B = get_param(DocBlockHandle, 'UserData');B.content = 'Test DocBlock update';set_param(DocBlockHandle, 'UserData', B, 'UserDataPersistent','On');save_system('Model');
When i debug, B is updated with the good content but when i run the script and i enter in my DocBlock .txt file it didn't changed i don't understand why.
EDIT : When i change directly the text of the .txt file it saves the changes but still not when i use script
Thank you !
Best Answer