![]() If I wrap the above in a loop to cycle through the items in the list, and replace the '( 4) by (list z): (do ((z 4 (+ 1 z))) It does as expected: It selects an item from a drop down list, opens a dialog window for that item, changes the value of a parameter from 0 to 1, and then closes that window. (cx-gui-do cx-activate-item "Velocity Inlet*PanelButtons*PushButton1(OK)") (cx-gui-do cx-set-expression-entry "Velocity Inlet*Frame3*Frame6(Multiphase)*Table1*Table16*ExpressionEntry1(Volume Fraction)" '("1". Set the "volume fraction" parameter to 1 (cx-gui-do cx-activate-item "Boundary Conditions*Table1*Table3*Table4*ButtonBox1*PushButton1(Edit)") Open dialog window for the selected item ![]() (cx-gui-do cx-activate-item "Boundary Conditions*Table1*List2(Zone)") (cx-gui-do cx-set-list-selections "Boundary Conditions*Table1*List2(Zone)" '( 4)) If I run this command from Fluent's command interface (modulo comments): Select item in list I'm trying to automate some boring tasks by using a loop to automatically set a bunch of parameters to my simulation. Unfortunately I never even heard of Scheme, I just know it's a Lisp dialect (which I also know nothing of). ![]() This program allows some partial automation of the simulation setup using a so-called Journal File, and I just came to know that this Journal File is written in Scheme. I'm using the ANSYS Fluent program for CFD simulations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |