Hello together,
I have tried to run TexGen command direcly from the kernel command dialog in ABAQUS2017/ABAQUS6.14, but it failed.The trying steps is as follows:
1. I downloaded Texgen from the sourceforge and the TexGen version is 3.12.2. Then I searched the folder containing the python package of the Texgen code, which is prepared for the importing action.This step is shown in "fig1.png".
2. I found the path that is the ABAQUS's third-party library storage path.This step is shown in "fig2 and fig 3.png".
3. I imported Texgen package file whose path is "...\TexGen\Python\libxtra\TexGen" into the folder which contains ABAQUS's python third-party libraries.This step is shown in "fig2 and fig 3.png".
4. Finally, I run the command "From TexGen.Core import *",hoping it to make it, but it promped the DLL error saying "The specified path could not be found".This step is shown in "fig4.png".
So the question is, which step causes the final error or how could I manage it to run Texgen command in abaqus directly or using the typr of python script? I am a new to python and really confused.I am looking forward to your reply.
run Texgen commands in abaqus's kernel command dialog
Moderators: Martin, Developers
-
Simon Green
- Posts: 4
- Joined: Mon May 15, 2023 2:40 am
run Texgen commands in abaqus's kernel command dialog
- Attachments
-
- fig1.png the Texgen folder as third-party package for ABAQUS
- fig1.png (10.38 KiB) Viewed 48872 times
-
- fig2 and fig3.png the path for ABAQUS to import third-party package along with the importing result
- fig2 and fig3.png (97.94 KiB) Viewed 48872 times
-
- fig 4.png the DLL error when running "From TexGen.Core import *"
- fig4.png (99.83 KiB) Viewed 48872 times
Re: run Texgen commands in abaqus's kernel command dialog
Hi,
It could be a version problem. The current release version of TexGen was built with Python 2.7.16. Try checking which version of Python Abaqus is using. If it is different you may need to build TexGen with the same Python version.
Best wishes,
Louise
It could be a version problem. The current release version of TexGen was built with Python 2.7.16. Try checking which version of Python Abaqus is using. If it is different you may need to build TexGen with the same Python version.
Best wishes,
Louise
-
Simon Green
- Posts: 4
- Joined: Mon May 15, 2023 2:40 am
Re: run Texgen commands in abaqus's kernel command dialog
Thanks a lot louisepb, I finally could import the TexGen API with texgen3.8.1 under your guidence.And a lot sorry for my late reply due to my other tasks and many trials.
Sincerely wish you and your teams go on well!
Sincerely wish you and your teams go on well!
- Attachments
-
- success import.PNG (20.09 KiB) Viewed 48853 times