Error importing parasolid files

ydigit
ydigit
Altair Employee
edited October 2020 in Community Q&A

I load my .x_t parasolid file for the geometry and then get the next error:

Traceback (most recent call last):
   File 'pnlFile.py', line 323, in importFile
   File 'pnlWin.py', line 1440, in readData
   File 'pnlImport.py', line 178, in readData
   File 'pnlImport.py', line 294, in readDataFile
   File 'pnlLoadGeom.py', line 264, in __init__
   File 'pnlLoadGeom.py', line 293, in readGeom
   File 'pnlLoadGeom.py', line 357, in loadGeomData
   File 'pnlLoadGeom.py', line 742, in readCad
   File 'pnlLoadGeom.py', line 1746, in saveGeomTree
   File 'pnlDb.py', line 731, in putStrPar
   File 'ahdBase.pxi', line 733, in acuhdf.AcuHDF.putStr
   File 'ahdBase.pxi', line 2449, in acuhdf.AcuHDF._put
   File 'acuuc.pyx', line 79, in acuuc.toStr
   File
'/home/acusim/p4_acusolve/acu_r12.0/linux64/base/lib/python2.4/encodings/utf_8.py',
line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 8-11:
invalid data
Traceback (most recent call last):
   File 'pnlFile.py', line 323, in importFile
   File 'pnlWin.py', line 1440, in readData
   File 'pnlImport.py', line 178, in readData
   File 'pnlImport.py', line 294, in readDataFile
   File 'pnlLoadGeom.py', line 264, in __init__
   File 'pnlLoadGeom.py', line 293, in readGeom
   File 'pnlLoadGeom.py', line 357, in loadGeomData
   File 'pnlLoadGeom.py', line 742, in readCad
   File 'pnlLoadGeom.py', line 1746, in saveGeomTree
   File 'pnlDb.py', line 731, in putStrPar
   File 'ahdBase.pxi', line 733, in acuhdf.AcuHDF.putStr
   File 'ahdBase.pxi', line 2449, in acuhdf.AcuHDF._put
   File 'acuuc.pyx', line 79, in acuuc.toStr
   File
'/home/acusim/p4_acusolve/acu_r12.0/linux64/base/lib/python2.4/encodings/utf_8.py',
line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 8-11:
invalid data

I tried reading another geometry file also x_t, and it worked. So I guess there is something wrong with my file. From the error I posted above, can we know what is wrong? Some kind of setup problem, encoding?
 

 

Tagged:

Answers

  • cfdguru
    cfdguru New Altair Community Member
    edited May 2013

    This error seems to be associated with unicode.  Are there any non-English characters present in the part names or feature names in the CAD model?  If there are, try replacing them, then export the model again.  Another option is to try exporting the model as ACIS (if your CAD package supports this).  That may handle the unicode strings differently.