Problem with AutomatonMacroAPI.addStereotype

MagicDraw OpenAPI, scripting related questions and discussions

Moderator: Moderators

Problem with AutomatonMacroAPI.addStereotype

Postby » Wed May 15, 2019 12:17 pm

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?

Forum Newbie
Forum Newbie
Posts: 1
Posts Rating:0
Joined: Wed May 15, 2019 12:11 pm

Return to Programmatic Extendibility

Who is online

Users browsing this forum: No registered users and 4 guests