Luthiers using Freecad

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!
raspler
Posts: 6
Joined: Thu Nov 24, 2022 6:40 pm

Re: Luthiers using Freecad

Post by raspler »

Hello to all helpers!
I have solved the problem. In Inkscape there is an option to display side grids to draw vertical and horizontal lines. I have activated these side grids. After redoing the drawing (maybe for the 100th time) and then hiding the side grids, the import worked without any problems. Who expects something like this? Side grids are only background and not part of the drawing. But no matter. Now it works. Again many many thanks for your support. Kind regards from Germany.
User avatar
mnesarco
Posts: 475
Joined: Thu Mar 26, 2020 8:52 pm

Re: Luthiers using Freecad

Post by mnesarco »

raspler wrote: Mon Nov 28, 2022 5:10 pm ...
Hello raspler,

There are some important things to verify when you want to import SVG into Marz Workbench. It used the FreeCAD import svg functionality that is not perfect, so the recommendations are:

1. Be sure that your all objects in Inkscape are no goups, just plain Path objects.
2. Be sure that there are no transformation involved, Inkscape can save the svg file with all transformations pre-applied.
3. Be sure that the midline is a Path (as any object that you want to import in MarzWB).
4. Be sure that contour is a closed path.
5. Be sure that the headstock contour is horizontal with head facing to right.
6. contour path and midline path must intersect at most left edge of contour.
7. transition must instersect contour in excactly two points that are not acute vertexes.

Take into account that Marz Workbench will not generate a good transition between neck and Headstock in the current version.
jeno
Veteran
Posts: 1850
Joined: Sun Jun 29, 2014 10:41 am

Re: Luthiers using Freecad

Post by jeno »

raspler wrote: Mon Nov 28, 2022 5:10 pm Hello to all helpers!
I have solved the problem. In Inkscape there is an option to display side grids to draw vertical and horizontal lines...
Maybe I don't get the point, but it is always possible to draw vertical and horizontal lines.
raspler_inkscape.png
raspler_inkscape.png (29.31 KiB) Viewed 1022 times
Choose Bezier pen and activate "create a sequence of paraxial line segments" mode.
Pick the starting point, then press and hold control key (STRG auf deutscher Tastatur/ on german keyboard). Now move the line until it is vertical or horizontal and place the endpoint.

cheers
raspler
Posts: 6
Joined: Thu Nov 24, 2022 6:40 pm

Re: Luthiers using Freecad

Post by raspler »

Hello mnesarco
Hello jeno
thank you very much for this good tips. I will definitely use them for my next project.
Thanks again to all the users who helped me.
My problem is now solved and I can continue working.
Friendly Greetings
kellander
Posts: 2
Joined: Fri Nov 03, 2023 8:54 am

Re: Luthiers using Freecad

Post by kellander »

Hi!
After reading and testing I still have some issues.
May be related to
osx 13.4.1
incskape 1.2
FreeCAD 0.20.2
Marz guitar Designer 0.0.27 alpha

When using the provided files from wiki everything seems to work and a complete guitar is created i marz workbench.

When I create a new file in Incskape I get "there is no contour path" when trying to import custom shapes. I'm probably missing some obvious task when preparing the file?

Code: Select all

09:43:28  processing element 1: svg
09:43:28  existing group transform: []
09:43:28  name: svg6265
09:43:28  done processing element 1
09:43:28  processing element 2: sodipodi:namedview
09:43:28  existing group transform: [Matrix ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))]
09:43:28  name: namedview6267
09:43:28  done processing element 2
09:43:28  processing element 3: defs
09:43:28  existing group transform: [Matrix ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))]
09:43:28  name: defs6262
09:43:28  done processing element 3
09:43:28  processing element 4: inkscape:path-effect
09:43:28  existing group transform: [Matrix ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))]
09:43:28  name: path-effect6791
09:43:28  done processing element 4
09:43:28  processing element 5: inkscape:path-effect
09:43:28  existing group transform: [Matrix ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))]
09:43:28  name: path-effect6275
09:43:28  done processing element 5
09:43:28  processing element 6: path
09:43:28  existing group transform: [Matrix ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))]
09:43:28  name: rect6269
09:43:28  data: {'id': ['rect6269'], 'style': 'fill:none;stroke:#000000;stroke-width:0.2', 'inkscape:label': ['contour'], 'd': ['m', '59.693657', '112.41014', '82.950923', '12.01626', '25.97062', '34.88591', 'H', '59.693657', 'Z'], 'sodipodi:nodetypes': ['ccccc'], 'fill': 'none', 'stroke': '#000000', 'stroke-width': '0.2'}
09:43:28  move Vector (59.693657, -112.41014, 0.0)
09:43:28  line Vector (59.693657, -112.41014, 0.0) Vector (142.64458000000002, -124.4264, 0.0)
09:43:28  line Vector (142.64458000000002, -124.4264, 0.0) Vector (168.61520000000002, -159.31231, 0.0)
09:43:28  applying group transform: Matrix ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))
09:43:28  done processing element 6
09:43:28  processing element 7: path
09:43:28  existing group transform: [Matrix ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))]
09:43:28  name: path6273
09:43:28  data: {'style': 'fill:none;stroke:#000000;stroke-width:0.2', 'd': ['m', '38.374497', '135.86122', 'c', '13.437798', '0', '26.875332', '0', '40.312601', '0'], 'id': ['path6273'], 'inkscape:path-effect': ['#path-effect6275'], 'inkscape:original-d': ['m', '38.374497', '135.86122', 'c', '13.437798', '2.7e-4', '26.875332', '2.7e-4', '40.312601', '0'], 'inkscape:label': ['midline'], 'fill': 'none', 'stroke': '#000000', 'stroke-width': '0.2'}
09:43:28  move Vector (38.374497, -135.86122, 0.0)
09:43:28  applying group transform: Matrix ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))
09:43:28  done processing element 7
09:43:28  processing element 8: path
09:43:28  existing group transform: [Matrix ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))]
09:43:28  name: path6789
09:43:28  data: {'style': 'fill:none;stroke:#000000;stroke-width:0.2', 'd': ['m', '84.113795', '104.65772', 'c', '0', '21.70705', '0', '43.41383', '0', '65.12035'], 'id': ['path6789'], 'inkscape:path-effect': ['#path-effect6791'], 'inkscape:original-d': ['m', '84.113795', '104.65772', 'c', '2.65e-4', '21.70705', '2.65e-4', '43.41383', '0', '65.12035'], 'inkscape:label': ['transition'], 'fill': 'none', 'stroke': '#000000', 'stroke-width': '0.2'}
09:43:28  move Vector (84.113795, -104.65772, 0.0)
09:43:28  applying group transform: Matrix ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))
09:43:28  done processing element 8
09:43:28  closing group
Regards
Jonas
Attachments
imorting incskape svg
imorting incskape svg
import fail.png (285.32 KiB) Viewed 787 times
preparering svg
preparering svg
incskape.png (354.05 KiB) Viewed 787 times
testhead.svg
incskape file imported
(2.66 KiB) Downloaded 5 times
kellander
Posts: 2
Joined: Fri Nov 03, 2023 8:54 am

Re: Luthiers using Freecad

Post by kellander »

Hi!
Seems I found the problem. I mistook path ID for "label".

This seems to do it:

Set the document properties before sketching: "File" > "Document Properties," set the Scale to 1.0 and the Units to mm. III. Save the file : Click "File" > "Save As..." > Select "Plain SVG (*. svg)" > Check the box to export as SVG 1.1 > "Save".

Object properties - ID and label according to Marz instructions.


Regards
Jonas
User avatar
mnesarco
Posts: 475
Joined: Thu Mar 26, 2020 8:52 pm

Re: Luthiers using Freecad

Post by mnesarco »

kellander wrote: Fri Nov 03, 2023 12:43 pm Hi!
Seems I found the problem. I mistook path ID for "label".

This seems to do it:

Set the document properties before sketching: "File" > "Document Properties," set the Scale to 1.0 and the Units to mm. III. Save the file : Click "File" > "Save As..." > Select "Plain SVG (*. svg)" > Check the box to export as SVG 1.1 > "Save".

Object properties - ID and label according to Marz instructions.


Regards
Jonas
Yes 👍
User avatar
mnesarco
Posts: 475
Joined: Thu Mar 26, 2020 8:52 pm

Re: Luthiers using Freecad

Post by mnesarco »

This is a very basic video of how to import an SVG file from Inkscape:

Example: Import Headstock Shape from svg file
Design source (pdf): https://www.electricherald.com/music-man-jpx/
-New document 1 - Inkscape_001.png
-New document 1 - Inkscape_001.png (149.97 KiB) Viewed 558 times

Video: https://youtu.be/DDGql3_6MrQ
Attachments
Selection_441.png
Selection_441.png (237.47 KiB) Viewed 558 times
Post Reply