Skip to main content
Participant
September 8, 2020
Answered

SVG Import is incomplete (some elements are missing)

  • September 8, 2020
  • 3 replies
  • 7939 views

Hi,

I tried to import an SVG generated from a CAD program. It looks fine in all web browsers (chrome, Mozilla, ...) but when importing in Illustrator, some elements are missing. only the black elements are visible in AI.

 

What Do I have to change in the SVG file, so the import will work?

 

Thank you

This topic has been closed for replies.
Correct answer Monika Gause

You can file a bug report to http://illustrator.uservoice.com

And then try and export it from Inkscape.

3 replies

Mylenium
Legend
September 8, 2020

There is an invalid duplicate </style> closing tag on line 23 to begin with which causes the border of the artboard/ drawing board to not appear in the first place and the rest seems down to this being exclusively web formatting and only using strokes everywhere. The paths are actually all there once you twirl down, they just have no strokes applied at all because AI can't interpret the CSS definitions. As suggested, this would need to be fixed/ converted in another tool or exported with different options.

 

Mylenium

Dirk16E5Author
Participant
September 10, 2020

Hi Mylenium,

 

we asked the CAD tool provider. They fixed the output for the second </style>.

Now the file is W3C compliant see diffpair_clean.svg.

 

All browsers and also Inkscape can open it and display it right. Just AI is not getting it. Any Idea???

Dirk16E5

Monika Gause
Community Expert
Monika GauseCommunity ExpertCorrect answer
Community Expert
September 10, 2020

You can file a bug report to http://illustrator.uservoice.com

And then try and export it from Inkscape.

Mike_Gondek10189183
Community Expert
Community Expert
September 8, 2020

If you don't have access to the CAD file to correct the export, you can use

 

Click  on wrench and choose RSVG for the conversion engine

 

 

Click here for the .ai file I came up with.

 

 

 

 

 

Then save as .pdf and you can open in Illustrator

 

Monika Gause
Community Expert
Community Expert
September 8, 2020

Maybe there are too many clipping paths.

Does it open well in Inkscape? If so, export it as a PDF (or whatever format is good for you) from there in order to get it into Illustrator.