Skip to content

How to check and wait for Licences #1207

Answered by dipinknair
lstubbig asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lstubbig ,

Currently launch_mechanical will not wait for license. If there is no license available it wont take any. You can have a check in your workflow with below information.

if launch_mechanical is unable to grab license then printing pymechanical app will not show any thing in representation string,

with license

from ansys.mechanical.core import launch_mechanical
app=launch_mechanical()
print(app)
Ansys Mechanical [Ansys Enterprise]
Product Version:251
Software build date: 11/27/2024 09:34:44

Without license

Ansys Mechanical []
Product Version:251
Software build date: 11/27/2024 09:34:44

you can have a check in above to see if pymechanical app has obtained the license or not.

T…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lstubbig
Comment options

Answer selected by lstubbig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants