The following line is in the "replace" branch of Player Piano:
type_to_get = com.nomagic.magicdraw.uml.ClassifierFinder.findClassifierOrDataType(live_project, 'String', [], sysml_package);
The variable sysml_package isn't defined anywhere. Based on the context, variable name, and method documentation, sysml_package should be set to the element that is the SysML profile package.
Looking at the findClassifierOrDataType() method documentation from 19.0 SP4 and later versions It doesn't look like this method has changed since at least that version. So any fix is probably independent of version changes
I'm not super familiar with what Player Piano is trying to do in this section, and I haven't yet encountered an error caused by this line. It would be worth having someone more familiar with RMT come up with a test case that actually makes use of this part of the script.
The following line is in the "replace" branch of Player Piano:
type_to_get = com.nomagic.magicdraw.uml.ClassifierFinder.findClassifierOrDataType(live_project, 'String', [], sysml_package);The variable
sysml_packageisn't defined anywhere. Based on the context, variable name, and method documentation,sysml_packageshould be set to the element that is the SysML profile package.Looking at the findClassifierOrDataType() method documentation from 19.0 SP4 and later versions It doesn't look like this method has changed since at least that version. So any fix is probably independent of version changes
I'm not super familiar with what Player Piano is trying to do in this section, and I haven't yet encountered an error caused by this line. It would be worth having someone more familiar with RMT come up with a test case that actually makes use of this part of the script.