![]() If you have a "Commands (APDL)" object with the above and assign a value in the Details view for 'ARG1' to be '12', for example, you'll find after solving that in your project folder, under "user_files" subfolder, a file called "myfileX.txt" (where X is the value you give to ARG1) with just the word "hello" in it. *CFOPEN,%_wb_userfiles_dir(1)%myfile%ARG1%,txt What's nice is that there is a predefined String array called "_wb_userfiles_dir(1)" that you can use to put the file in the "user_files" subdirectory of your Workbench project directory such as with the following: Its value is substituted when you enclose it in % signs. Where "ARG1" may be a parameter you define (from Details view of "Commands (APDL)" object). How are you exporting data with APDL? Are you using *CFOPEN to open a file for writing? If so, APDL has a feature called 'forced substitution', where you can force a parameter to be evaluated for a name of a file, such as
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |