What makes different "kinds" of SVGs perform differently when being imported through the API?

kgehrke58RYW
Observer

What makes different "kinds" of SVGs perform differently when being imported through the API?

kgehrke58RYW
Observer
Observer

I am trying to write a script that allows the user to import an SVG into a sketch and extrude it automatically. All SVGs can be selected via the file selection, however, I seem to have an issue where only SVGs created via a Python vectorizer are recognized by Fusion. When I use SVGs from elsewhere, sometimes it gives an error that says it does not have recognizable paths that can be extruded, and sometimes it is "TypeError: cannot unpack non-iterable NoneType object."

 

I put "kinds" in quotes in the title because I'm not sure what is going on behind the scenes with SVGs of different origins. SVGs I make in Adobe Illustrator and export as .svg files don't work and SVGs I download don't work. Only the ones made in the Python program work in the script.

 

Any insights as to what may be different about SVGs of different origins, or ideas on how to get Fusion to recognize all SVGs, regardless of where they come from?

 

Alternatively, does anyone know what settings in Adobe Illustrator to use when exporting as an SVG such that the SVG works in Fusion?

0 Likes
Reply
148 Views
0 Replies
Replies (0)