The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
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
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…