CATIA V5-API and Python programming language

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ali seaman
    New Member
    • May 2011
    • 2

    CATIA V5-API and Python programming language

    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 !
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    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.

    Comment

    • Ali seaman
      New Member
      • May 2011
      • 2

      #3
      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

      Comment

      Working...