By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 2,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

CATIA V5-API and Python programming language

P: 2
Hi all,

I have a question on how to Create a graphical user interface with Python programming language and integrate it with CATIA V5-API ?( I am working in the Field of Mechanical engineering ,FE-meshes for solids).

I am a begginer in python programming language and I hope somebody knows how to connect it with Catia ?

Sorry for not including a code because I am confused how to start !
May 12 '11 #1
Share this Question
Share on Google+
2 Replies


bvdet
Expert Mod 2.5K+
P: 2,851
SDS/2 has a Python interpreter built-in and can interact in the 3D environment. Does Catia have such a facility? The only way I know of is with win32com. Another example can be found here.
May 13 '11 #2

P: 2
Thank you Very Much bvdet

One of my friend told me , that we can connect python with Catia Via Pywin. and First of all before sketching the part (lets say cylinder) in Catia V5, we should start recording The Macro of the drawing, after finishing the sketching we can get the recorded Macro of the steps we have done to draw the cylinder . Then we use this Macro and program it in Python and then connect it with Catia V5.
actually i want to implement these steps by linking python with Catia

1.Create a graphical user interface with Python programming language. Using this interface, the user should be able to input the dimensions of the solid body (A shaft with a bore in it).

2.Afterwards, the program must create the geometry automatically.

3.This solid body will be analysed in the FEM module in the next step. The program must use tetrahedral elements (linear and parabolic) to mesh this solid.

4.Afterwards, the program should apply restraints to one surface and add a static load to calculate stresses and deformations.

5.The stress and the deformation field must be written out from the program to a file. Afterwards, the program must analyse these data to find the maximum and minimum values
May 13 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.