Jump to content
ydigit

Error importing parasolid files

Recommended Posts

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?
 

 

Share this post


Link to post
Share on other sites

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.


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...