Page 1 of 1

Problem with AutomatonMacroAPI.addStereotype

PostPosted: Wed May 15, 2019 12:17 pm
by denis.dmitriev@ge.com
Just started exploring MD scripts and faced a problem what I can't just playback recently recorded macro creating a simple "Block" element. The following error message is generated:


MagicDraw cannot execute the python macro, please make sure that the "Untitled." is correct. null java.lang.Exception: java.lang.Exception: "Model Model" is not a stereotype. in "Untitled." at line number 16


The problematic line of code is related to adding of stereotyped:

ele1 = AutomatonMacroAPI.addStereotype(ele1, ele3)

Could anyone let me know what is the potential problem?

Thanks,
Denid