SVG Not Importing
  • alanvidali
    junior Member
    Posts: 2
    Joined: Wed May 12, 2021 11:56 pm

    SVG Not Importing

    by alanvidali » Thu May 13, 2021 12:01 am

    Hi! I am having some issues importing an SVG file. I am using Affinity Design to create my designs but they will not be imported by Mad Mapper.

    I go to File - Import Fixtures and then I get the following prompt _ Please look at the attached image.

    Any help is appreciated. I tried everything I could think of and I can't use SVG files.

    Thanks!
    Attachments
    Screen Shot 2021-05-12 at 17.54.49.png
    Screen Shot 2021-05-12 at 17.54.49.png (15.74 KiB) Viewed 1551 times
  • mad-matt
    garageCube team
    Posts: 1475
    Joined: Mon Sep 09, 2013 5:50 pm

    Re: SVG Not Importing

    by mad-matt » Thu May 13, 2021 12:59 am

    MadMapper loads fixtures from the "lines" elements found in the SVG. It seems there are none in your file.
    Check this example file, all elements are of type "line". We can't generate fixtures from svg circle or text. Maybe we should handle "rect" but actually we only support lines.

    <svg version="1.1" x="0px" y="0px" width="64px" height="64px">
    <line id="fixture3" fill="none" stroke="#000000" stroke-miterlimit="10" x1="0" y1="0" x2="64" y2="64"/>
    <line id="fixture2" fill="none" stroke="#000000" stroke-miterlimit="10" x1="64" y1="0" x2="0" y2="64"/>
    <line id="fixture1" fill="none" stroke="#000000" stroke-miterlimit="10" x1="0" y1="32" x2="64" y2="32"/>
    </svg>
  • alanvidali
    junior Member
    Posts: 2
    Joined: Wed May 12, 2021 11:56 pm

    Re: SVG Not Importing

    by alanvidali » Thu May 13, 2021 4:34 pm

    Thank you for the response. So will MadMapper only accept SVG files created by coding? Or does it take svg design files created in Adobe Design or Affinity Design as well?

    The reason I ask is because I do not understand why you shared a code.

    Thanks for the support.
  • mad-matt
    garageCube team
    Posts: 1475
    Joined: Mon Sep 09, 2013 5:50 pm

    Re: SVG Not Importing

    by mad-matt » Tue May 18, 2021 9:23 am

    This is not code, this is the content of an SVG file. You can paste this text in Notepad or TextEdit and save it as toto.svg and it will be a valid SVG file loadable by Illustrator or whatever.
    Until your software (illustrator / affinity...) is able to produce "line" elements in the SVG file it's ok.
    I can't attach a SVG so I zipped it and attached the zip below.
    Attachments
    test import svg.svg.zip
    (737 Bytes) Downloaded 129 times

Who is online

Users browsing this forum: No registered users and 18 guests