The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"How to set process inputs using macros?"
Hi,
Apologies if this question has been asked before - I search the forums exhaustively but couldn't find the answer to my question.
I created a process which uses macros to filter the resulting data, and that's working fine, I think I got the hang of how macros work. However now I need to change the input of the process using a macro too and I can't figure out how to do it? Basically I have lots of example sets having exactly the same metadata, so instead of creating one process per example set I wanted to use the same process but change the process input using a macro.
Say my example sets are called "Data_SomeName_101", "Data_SomeName_102", etc. I want to have a macro called "input" and pass the value "Data_SomeName_101" (or whatever the example set is called) and have the process recognise that as an input.
Does anyone know how to do that?
Thanks in advance and happy new year!
Marcelo
Apologies if this question has been asked before - I search the forums exhaustively but couldn't find the answer to my question.
I created a process which uses macros to filter the resulting data, and that's working fine, I think I got the hang of how macros work. However now I need to change the input of the process using a macro too and I can't figure out how to do it? Basically I have lots of example sets having exactly the same metadata, so instead of creating one process per example set I wanted to use the same process but change the process input using a macro.
Say my example sets are called "Data_SomeName_101", "Data_SomeName_102", etc. I want to have a macro called "input" and pass the value "Data_SomeName_101" (or whatever the example set is called) and have the process recognise that as an input.
Does anyone know how to do that?
Thanks in advance and happy new year!
Marcelo
0
Answers
you can wrap your process in a Loop operator like in the process below, activate the option "set iteration macro" and then use the macro to assemble the name of the input data. Have a look at the process below.
You could also use the Execute Process operator and embed it into another process which executes the loop, and pass macros via the macros parameter of that operator.
Best regards,
Marius