Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a popup window appear? 1

Status
Not open for further replies.

plvachon

Mechanical
Jun 16, 2005
38
Hi to all!

Is it possible to create a popup message in Ansys? I'd like to make a window appear with a user-defined message into it, when a specific condition is met. Thanks in advance...
 
Replies continue below

Recommended for you

Hi,
yes, you can: the way I know is with the *MSG APDL command:
in the example below:

*MSG,UI,ciclo_num,F_agenti(1),F_agenti(2)
Calculating and applying gradients for cycle num. %I ... &
Force on level 1 is %G N; &
Force on level 2 is %G N.

*MSG starts the command, UI means that you want it appear in a message window popup, the three subsequent fields are numerical variables which will be recalled inside the message; the message text starts on next row: "Calculating... etc"; symbol % introduces the numerical variables, and the letter immediately after identifies it as an integer (I), a real (G) a string or whatsoever, using the Fortran notation; symbol & at the end of a line signifies that the message continues on next row.
More info is in the help file: not extremely easy nor clear on this point, but it should help...

Regards
 
You must have the "/UIS" command somewhere at the beginning to let ANSYS know to allow certain messages/errors/warnings/notes, etc. to popup.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor