Page 1 of 1

SVG Not Importing

Posted: Thu May 13, 2021 12:01 am
by alanvidali
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!

Re: SVG Not Importing

Posted: Thu May 13, 2021 12:59 am
by mad-matt
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>

Re: SVG Not Importing

Posted: Thu May 13, 2021 4:34 pm
by alanvidali
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.

Re: SVG Not Importing

Posted: Tue May 18, 2021 9:23 am
by mad-matt
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.