CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Siemens (
-   -   Call a macro from a macro (

Flav June 30, 2004 12:23

Call a macro from a macro
Hi all, I'd like to know if it is possible to call a macro from another macro. I have the feeling that it stops after executing the second macro...

Thanks in advance


4xF June 30, 2004 13:16

Re: Call a macro from a macro
Actually, you cannot call a macro from within a macro :(. How should a macro know after it's execution it has to come back to the location from where it has been called??? A macro is not a subroutine and does not contain a return statement (I tapped also in this booby trap...) Workaround: write your second macro to a file and use the IFILE command.

Flav July 1, 2004 05:42

Re: Call a macro from a macro
Working with .inp files seems to be the good option. Thanks a lot for your quick answer !

Regards Flav

All times are GMT -4. The time now is 01:46.