An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Hi forum,
I'd like to close (delete) one of the scopes of a project by oml-script. close all closes all scopes, but how can I close just one of many?
Thanks for help.
Ronald,
Is your goal to close plots that were created within an OML script in the system model? If so, the command close(figure_handle) will close a specific plot.
The handle ID is obtained as output from your figure() command which generated the plot.
If your goal is to close an Activate scope from an OML script, I'm not sure if this is possible. Please let me know if that's what you need and I will continue to look into it.
Hope that helps,
Patrick
Ronald, Is your goal to close plots that were created within an OML script in the system model? If so, the command close(figure_handle) will close a specific plot. The handle ID is obtained as output from your figure() command which generated the plot. If your goal is to close an Activate scope from an OML script, I'm not sure if this is possible. Please let me know if that's what you need and I will continue to look into it. Hope that helps, Patrick
Hi Patrick,
Thanks for you help, but that is not my application. My goal is that what you wrote at the end.
In detail:
I use an input dialog for my simulation and can switch on/off an animation by activating/deactivating the block (bdeSetBlockStatus(bdeGetBlockByFullName('Animation/Anim2D'), 'on');). Once a simulation with animation has run, I want to hide or delete the display in case of animation is off.
I've searched for a way to get the handle from block or by name, but wasn't successful.
Any further ideas or help is welcome.
Ronald