Printing index (%i%) in *do loop in Workbech
Printing index (%i%) in *do loop in Workbech
(OP)
I am stuck in coding/scripting in ANSYS Workbench. I am trying to print/insert the index of a *do loop. The Python command %i% works in ANSYS APDL but not in Workbench. Any alternative, please
*do,i,1,10,1
*get,stress(%i%),....
*enddo
I expect to get:
stress (1)
stress (2)
stress (3)
.
.
.
stress (10)
*do,i,1,10,1
*get,stress(%i%),....
*enddo
I expect to get:
stress (1)
stress (2)
stress (3)
.
.
.
stress (10)
RE: Printing index (%i%) in *do loop in Workbech
try this and let me know.
CODE --> APDL
Best regards
Jiri