SVG Import is incomplete (some elements are missing)

New Here ,
Sep 08, 2020

Copy link to clipboard

Copied

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

TOPICS
Bug, Import and export

Views

127

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

1 Correct Answer

Adobe Community Professional , Sep 10, 2020
Monika Gause Adobe Community Professional , Sep 10, 2020
You can file a bug report to http://illustrator.uservoice.com And then try and export it from Inkscape.

Likes

Translate

Translate
Jump to answer Jump to answer
Adobe Community Professional ,
Sep 08, 2020

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Sep 08, 2020

Copy link to clipboard

Copied

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

Screen Shot 2020-09-08 at 8.35.28 AM.png

 

 

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

 

 

 

 

 

Then save as .pdf and you can open in Illustrator

 

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Most Valuable Participant ,
Sep 08, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dirk16E5 AUTHOR
New Here ,
Sep 10, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Sep 10, 2020

Copy link to clipboard

Copied

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

And then try and export it from Inkscape.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more