Skip to main content
charlesn79540358
Inspiring
July 19, 2019
Question

Optimize and Export SVG in Adobe Illustrator

  • July 19, 2019
  • 4 replies
  • 2516 views

Hello,

I have a question. So we have these AutoCad diagram or .dwg files that can be either small or big. So I have been working on project to get rid of flash and I thought I would convert the .dwg files to svg using Adobe Illustrator because you can do interactive with .svg files. I did a conversion on one of the dwg files and it had 16,000 lines of code in the svg. I was just wondering if this is the right tool to use or is there a way to cut the down the lines of code?

Thank you,

{Renamed by MOD}

    This topic has been closed for replies.

    4 replies

    Srishti Bali
    Community Manager
    Community Manager
    July 25, 2019

    Hi Charles,

    Thanks for reaching out. In addition to the suggestions shared above, you can also refer to these helps articles:

    Hope it helps!

    Regards,

    Srishti

    charlesn79540358
    Inspiring
    July 26, 2019

    I will take a look at the articles.

    Thank you!

    Inspiring
    July 20, 2019

    AutoCad draws differently then Adobe and if you looked at the file where in Adobe there might be one line, AutoCad will create with multiple smaller lines. Try cleaning up the file in Illustrator first.

    charlesn79540358
    Inspiring
    July 26, 2019

    Okay thank you.

    Peter Villevoye
    Community Expert
    Community Expert
    July 19, 2019

    160,000 lines of code ? That's a lot ! To see whether some kind of clever simplification is possible (in order to optimise the code and hopefully slim down the file) it's crucial to see what this drawing consists of. Could you post a screenshot of e.g. (part of) the drawing in preview and outline mode ?

    charlesn79540358
    Inspiring
    July 26, 2019

    Here is a screenshot hopefully it helps this is an example of a .dwg that was converted to .svg. Id for the circles are all named "path" so if I want to interact with the svg I have to manually changed the circle id to the corresponding circle number I wish I could automatically do that.

    Thank you,

    Monika Gause
    Community Expert
    Community Expert
    July 26, 2019

    If you want to edit SVG code, you will need other apps. You could try Inkscape.

    But maybe you even need more of a code editor than a graphics application.

    charlesn79540358
    Inspiring
    July 19, 2019

    I messed up on the Code count it was 160,000 plus but I didn't some graphics that was on the .dwg that we didn't need and it cutted it down to 39,000 lines