System Generator : Custom compilation target -> get model version and model path
I am implementing a custom compilation target and I have the following question about it:
I overloaded the base class and in the function pre_project_creation(obj, design_info) I can get access to some kind of handle:
I would like to get the current model version and the path of the current model. So I try to get the real object handle from this design_info.top_level_simulink_handle which imho is not a normal handle because it has double as class.
Can anybody help me to convert it to the real handle to the model?
Other approaches to get the model version or the path to the current model are also welcome!