Pregunta

I want to be able to run a simple command to retrieve the active version of Abaqus.

I had hoped that abaqus -v or abaqus -version would work. However, these commands are not valid.

Running abaqus whereami seems to do the trick:

Abaqus 6.9-EF1 Abaqus
Site ID: xxxxxxxxxxxxxxxx
Abaqus is located in the directory C:\SIMULIA\Abaqus\6.9-EF1
...

However, this command is very slow. Querying the Site ID takes way too long.

Is there a quick way to get the version number?

¿Fue útil?

Solución 3

Inside of CAE the python variable 'version' stores the current version number ie:

version '6.12-1'

Otros consejos

Enter the following command in windows console(cmd):

abaqus information=versions

In command prompt you can get abaqus to return the version by typing:

abaqus information=release

This returns abaqus version number and the location. Though does include the site ID so is not that fast.

Run the following command in the command prompt at the bottom of Abaqus GUI

>>> import sys
>>> print(sys.version)

If you need to explicitly get version in a Python script:

import abaqus
version = abaqus.version
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top