Problem with AutomatonMacroAPI.addStereotype

MagicDraw OpenAPI, scripting related questions and discussions

Moderator: Moderators

Problem with AutomatonMacroAPI.addStereotype

Postby denis.dmitriev@ge.com » 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?

Thanks,
Denid
denis.dmitriev@ge.com
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: Google [Bot] and 0 guests