Problem with importing a geometry from CATPart into mapdl #4226
-
I recently tried to import a CATIA V5 .CATPart into ANSYS MAPDL using PyMAPDL. When I use the CAT5IN command to import a CATIA V5 .CATPart, MAPDL reports no errors, yet no geometry is brought in (no volumes/areas/lines). Has anyone managed to import CATIA V5 files into MAPDL? Any tips or prerequisites? These are the versions that I am using: PyMAPDL: 0.70.2 ANSYS: 2023R2 I don’t believe this is a licensing issue, as I can import a CATPart file directly in ANSYS APDL. I would appreciate any help regarding this issue. Below, you can find the code I am using. Thank you so much! from ansys.mapdl.core import launch_mapdl, version as pymapdl_version mapdl = launch_mapdl(run_location=r"C:\Users\u7260\Desktop\Workflow_BB\Prueba_Catia_Ansys", override=True) Versionesprint("PyMAPDL:", pymapdl_version) mapdl.prep7() 3) Cuenta entidadesnvol = int(mapdl.get_value('VOLU', 0, 'COUNT')) 4) Plotea lo que hayaif nvol > 0: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
@JoseNogueron What happens if you try fmt=0? |
Beta Was this translation helpful? Give feedback.
-
Hi @JoseNogueron never mind. Instead run the command via the non-interactive method. Like so: with mapdl.non_interactive:
mapdl.run("~cat5in,cylinder,CATPart,,all,0) What happens then? |
Beta Was this translation helpful? Give feedback.
-
@JoseNogueron Try to import one of the Catia 5 files from here (assuming you have a standard installation): |
Beta Was this translation helpful? Give feedback.
Hi @JoseNogueron I just noticed that the closing " is missing in the mapdl.run command I posted earlier...let's correct that and try again.
Please also copy one of the Ansys (well, Synopsys) supplied catpart files to the script folder and try to import it as a second test.