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,
I have plotted data in POSTFEKO with API scripting, but I do not know how I can export each graph as a .dat file. Can someone help me with that? And is there a macro recording option for POSTFEKO, because I could not find it. Thanks in advance!
With kind regards,
Meerten
Unable to find an attachment - read this blog
Hello Meerten,
The Graph object has a method to export traces. Below is an extract from the documentation.
ExportTraces
Export the graph traces to the specified tab separated file.
If you want to loop over all the graphs and export the traces to .dat files, I suggest that you create a FOR loop and loop over all the graph collections that you want to export and then export use the method above. It will be something like the code below:
app = pf.GetApplication() for ii = 1, app.CartesianGraphs.Count do local graph = app.CartesianGraphs[ii] graph:ExportImage('Cartesian_Graph'..index, 100) end
This is just for Cartesian graphs. You will need a similar loop for other graph types that you want to export (polar, Smith, etc.)
Note that I didn't test the code. /emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20'>
Hi Jif,
Thanks for the quick and great response! I've got what I wanted, many thanks to you!
Hi Meerten,
Macro recording in POSTFEKO is still under development, too early to give an estimation when it'll be available.
@Torben Voigt That would be great!
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…