Inkscape.org
  1. #1
    ti4dm ti4dm @ti4dm

    Hi, I'm trying to import DXF file from Rhinoceros 3d and Inkscabe give me something like this:

    [quote]

    Traceback (most recent call last):
      File "dxf_input.py", line 399, in <module>
        layername = unicode(line[1], options.input_encode)
      File "C:\Program Files\Inkscape\lib\python2.7/encodings/utf_8.py", line 16, in decode
        return codecs.utf_8_decode(input, errors, True)
    UnicodeDecodeError: 'utf8' codec can't decode byte 0xf3 in position 3: invalid continuation byte

    [/quote]

     

    And  not importing anything.

    Where looking for solutions?

     

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Might be the version of DXF. 

    Please share an example dxf file from Rhino.

  3. #3
    ti4dm ti4dm @ti4dm

    Hi,

    Windows 10 64bit  version 10.0.19041 Build 19041

    Inkscape 0.92.5 (2060ec1f9f, 2020-04-08)

    file exported from Rhinoceros 3D version 5 SR8 64-bit (5.8.40128.10495, 2014-01-28)

    Exported via 'Export selected' option from menu File

    Export option:

                                    export template: default,

    exported parts from 2 layers (from many, many more)

    in file inkscape_import_test.dxf

     

    In Inkscape:

    File -> import -> Autocat dxf

    defaut options.

    Method of scaling:Read from file

     

    and results in file inkscape_import_dxf_results.png

     

    Thank you for your interest in this issue and I am waiting for suggestions for a solution

    Inkscape Import Test
    Inkscape Import Dxf Results
  4. #4
    Tyler Durden Tyler Durden @TylerDurden

    Surprisingly, I had the best success by opening in another program (MoI3D) and saving as a PDF.
    If Rhino can export a pdf, I'd try that first.

    Rhino Moi Pdf
  5. #5
    ti4dm ti4dm @ti4dm

    HI,

    I think I found the solution...

    But it's really crazy and complicated.

    First I export parts as 'Adobe Illustrator' file, next I convert this file to ANSI code [Rhino exports as UTF-8] next I use UniConvertor (http://sk1projeject.org)  to conver  to .SVG type file.
    And finally I import this file to Inkscape as 'Adobe Illustrator 8.0 and below (.ai) '

     

    I know it's crazy and stupid.
    But my friend says: " If something is stupid and works, that's mean it's NOT stupid"

     

    Thanks for Your time to help me

  6. #6
    Tyler Durden Tyler Durden @TylerDurden

    Seems to be a free 3rd-party plugin to get svg from Rhino: https://www.food4rhino.com/app/save-scalable-vector-graphics