I am still working on my SC and on my app which automatically chooses the right submodel (SC) depending on the parameter.
Now I have a problem: each time the app detects the necessity to change the submodel, it reset all the parameter which already have been set, and set the default parameter from the submodel.
I quickly checked the documentation, and it seems not to have an utility to copy and paste parameter from one submodel to another.
Am I right?
Solved! Go to Solution.
I'm not sure, but I suppose you are using the Embedded API.
The AMEChangeSubmodel function has an argument to keep the values of parameters when they have the same title. It's the copy_common_parameters flag below:
Indeed in rev15 this function was "private". That is why the name starts with an underscore "_". These internal functions are not documented and might change from one version to another.
Starting in revision 16 the public function AMEChangeMode has been created.
But I'm glad you managed to find a solution to your problem!