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
is there a possibility to automatically integrate the current date into the file name when saving files (e. g. write excel)?
As an example, the file should be called "filename_yymmdd.xls".
Best regards
Hi Nicson,
you can integrate the name by using a macro.
By default, each process has a macro called process_start, which has the following format "2018_03_13-AM_11_12_01", which might be a bit long.
With the Generate Macro, you can use String manipulation to shorten it to the first 10 characters, if you are only interested in the data. Alternatively you can use the data_now() function and extract the parts of the date you need.
To add the macro to you just add it to your desired file name with the %{macro_name} syntax. In case this could look like that:
"filename_%{date_macro}.xls"
There is also a very good knowledge base about macros available if you want to learn more:
https://community.rapidminer.com/t5/RapidMiner-Studio-Knowledge-Base/How-to-Use-Macros/ta-p/32966
Best,David
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…