views:

60

answers:

2

Hi,

I am trying to learn how to use Abaqus Scripting. I just downloaded Eclipse and added the pydev plugin. Everything seems to work fine.

What I want to do now is to add all the built-in Abaqus libraries or modules.

I would like, for example, the IDE to display the class members and methods when I press the ".".

I would like to see if the code compiles fine without running it into Abaqus.

Do you know how to do this in Eclipse? or should I change IDE, or it is not possible...

All suggestions welcomed.

Thanks in Advance

Luigi

+1  A: 

You can add these libraries to the settings to get the effect you want. This can be done in the Libraries setting accessed through Window > Preferences > PyDev > Interpreter - Python > Libraries. Add the .egg or source folder of the libraries you want to add and click Apply followed by OK.

Manoj Govindan
I just tried, but no success. I am very beginner of python (today is my second day).
Luigi Giaccari
Can you restart Eclipse and see if it worked?
Manoj Govindan
I just tried, but no success, I don't fully understand what I do. I am very beginner of python (today is my second day).I have into the abaqus folder the python folder. It leads to two subfolders:-lib: full of .pyc file (I guess precompiled python files)-obj: full of windows dll and the python.exe which I guess is the interpeter. I also tried to add this interpreter but Eclipse said it can not add it (Error getting info on the interpreter)I just added the whole lib and obj folder.Maybe once I get more involved in python I can give you more detailed explanations.
Luigi Giaccari
There are news:when I try to run the script it says: ImportError: Bad magic number in C:\SIMULIA\Abaqus\6.9-1\Python\Lib\abaqus.pyc Is there a compatibility problem, maybe with different version of python interpreters?
Luigi Giaccari
I used python 2.4, and it works now!
Luigi Giaccari
The problem is I can not use the library since it requires a running abaqus kernel.
Luigi Giaccari
A: 

I just tried, but no success, I don't fully understand what I do. I am very beginner of python (today is my second day). I have into the abaqus folder the python folder. It leads to two subfolders:

-lib: full of .pyc file (I guess precompiled python files)

-obj: full of windows dll and the python.exe which I guess is the interpeter.

I also tried to add this interpreter but Eclipse said it can not add it (Error getting info on the interpreter)

I just added the whole lib and obj folder. Maybe once I get more involved in python I can give you more detailed explanations.

There are news:

when I try to run the script it says: ImportError: Bad magic number in C:\SIMULIA\Abaqus\6.9-1\Python\Lib\abaqus.pyc

Is there a compatibility problem, maybe with different version of python interpreters?

Luigi Giaccari