×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to make a popup window appear?

How to make a popup window appear?

How to make a popup window appear?

(OP)
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...

RE: How to make a popup window appear?

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

RE: How to make a popup window appear?

You must have the "/UIS" command somewhere at the beginning to let ANSYS know to allow certain messages/errors/warnings/notes, etc. to popup.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources