Scaling Down an imported SVG

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
comeinandburn
Posts: 12
Joined: Thu Jan 05, 2017 6:03 pm

Scaling Down an imported SVG

Postby comeinandburn » Tue Feb 07, 2017 12:56 pm

HI,

This may be an extremely silly question, but when I attempt to scale down an imported SVG it seems to be able to scale up but not down. Is there something I'm doing wrong?

I'm creating text in Inkscape then converting it to a path, importing into FreeCAD, and upgrading it to create faces. Problem is it's way too large.

Any help would be appreciated.

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6706 (Git)
Build type: Release
Branch: tag: 0.16.6706
Hash: f86a4e411ff7848dea98d7242f43b7774bee8fa0
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
User avatar
Willem
Posts: 1251
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Scaling Down an imported SVG

Postby Willem » Tue Feb 07, 2017 1:30 pm

Hi, when importing an SVG file made in Inkscape you have to realize that 1 px in Inkscape is imported as 1 mm in FreeCad. Scaling can easiest be done in Inkscape.

Another possibility is that in FreeCad you create clones of your faces or extrusions. Clones can be scaled to the size you want
User avatar
shoogen
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Scaling Down an imported SVG

Postby shoogen » Tue Feb 07, 2017 2:52 pm

Willem wrote:when importing an SVG file made in Inkscape you have to realize that 1 px in Inkscape is imported as 1 mm in FreeCad.
I thought this was only the case for exporting. AFAIK the importer uses 90 dpi per default.
https://github.com/FreeCAD/FreeCAD/blob ... VG.py#L510
User avatar
Chris_G
Posts: 1077
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Scaling Down an imported SVG

Postby Chris_G » Tue Feb 07, 2017 3:08 pm

One thing to note, is that Inkscape 0.92, released last month, now has a 96 dpi scale.
User avatar
comeinandburn
Posts: 12
Joined: Thu Jan 05, 2017 6:03 pm

Re: Scaling Down an imported SVG

Postby comeinandburn » Tue Feb 07, 2017 5:50 pm

Another possibility is that in FreeCad you create clones of your faces or extrusions. Clones can be scaled to the size you want
Thanks Willem, that helps alot... this begs another question though. Is there a way to constrain the scale to all axis at the same time without adding values for each co-ordinate?
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Scaling Down an imported SVG

Postby NormandC » Tue Feb 07, 2017 5:56 pm

Hi,

Are you aware that Image Draft ShapeString allows you to create text directly in FreeCAD?
User avatar
comeinandburn
Posts: 12
Joined: Thu Jan 05, 2017 6:03 pm

Re: Scaling Down an imported SVG

Postby comeinandburn » Fri Feb 10, 2017 12:25 pm

Thanks NormadC :) that's helpful! I've got a lot to learn.. ha ha.