Cannot put model data into codeset

General discussions about code engineering

Moderator: Moderators

Cannot put model data into codeset

Postby troy.kelly@ngc.com » Mon Jan 19, 2015 2:26 pm

Hello,

I am trying to set up round trip engineering in C++ for one of our subsystems in our model. We are trying to set up the code base using forward engineering into C++ code from our UML. I can successfully create a codeset and point it to a working directory and a working package. However, I cannot move the classes that I plan to generate code from into the codeset from the model. When I attempt to do so, I just get a "progress" wheel, but that is it. When I move the entire package to the codeset, only the system level model elements get moved.

I am also getting an error: "ClassCastException: com.nomagic.magicdraw.ce.cppAnsi.c.c.h cannot be cast to com.nomagic.magicdraw.ce.core.rt.objects.RTProjectObject". I started receiving this error only after my first generation of the system elements described above, so I don't know if this is contributing to the problem, or not.

I cannot send the model as an example. I was wondering if there is a logging feature that I can turn on that lets me know why MD doesn't like what I am doing?

Troy
troy.kelly@ngc.com
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Mon Jan 12, 2015 2:30 pm

Re: Cannot put model data into codeset

Postby bhoomchai » Tue Jan 20, 2015 3:26 am

Dear Troy,

We've failed to reproduce the problem you described. The problem might be caused by some specific structure of the model.
If you can reproduce the problem with a simple model, please provide it to us for further investigation.
Regarding the logging, you can look at md.log file. It can be accessed from the menu Help->About MagicDraw, and the go to Environment tab.

Best regards,
No Magic Customer Support
bhoomchai
Customer Support
Customer Support
 
Posts: 36
Posts Rating:5
Joined: Thu Jan 21, 2010 12:38 am

Re: Cannot put model data into codeset

Postby troy.kelly@ngc.com » Fri Jan 23, 2015 4:31 pm

Thanks for your quick response!

I discovered my error that was causing this to happen. I had my code sitting inside a subsystem instead of the package that the subsystem is housed in. When I moved the code outside of the subsystem and into the package at the subsystem level, everything started to work again.

Sorry for the inconvenience,
Troy
troy.kelly@ngc.com
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Mon Jan 12, 2015 2:30 pm


Return to Code engineering

Who is online

Users browsing this forum: No registered users and 1 guest