Git Product home page Git Product logo

Comments (10)

mnesarco avatar mnesarco commented on June 5, 2024

Yes the documentation is in the wiki: https://github.com/mnesarco/MarzWorkbench/wiki/Custom-Shapes

Any shape (including text) must be convertetd to path before importing to freecad.

from marzworkbench.

Cysign avatar Cysign commented on June 5, 2024

Nice Wiki. But I'm still not surehow to use it.
Can I name the IDs using Inkscape or do I have to modify the file using an text editor?

from marzworkbench.

Cysign avatar Cysign commented on June 5, 2024

https://www.file-upload.net/download-14788003/screenshot_IDs.png.html

I can see some IDs that look familiar... but all those #pathXXX files?

from marzworkbench.

mnesarco avatar mnesarco commented on June 5, 2024

You can set the id of objects directly in inkscape. I am from my phone now so no snapshot to show you how. But a quick google search can help.

from marzworkbench.

mnesarco avatar mnesarco commented on June 5, 2024

Inkscape / menu / Object / Object Properties

screenshot_46

from marzworkbench.

Cysign avatar Cysign commented on June 5, 2024

Can I use IDs multiple times or does every shape have to use it'S own ID?

I created a text using the text tool in Inkscape.
Then I transformed this text to path.
Now I gave every object it's own ID, but the result doesn't look what I wanted it to look like:
https://www.file-upload.net/download-14788027/screenshot_headstock.png.html

from marzworkbench.

mnesarco avatar mnesarco commented on June 5, 2024

Once you transformed text to path, there will be many paths, but you can merge all of them into one big path and then assign the id.

There are many Inkscape tutorials: https://inkscape.org/learn/tutorials/ once you know the basic operations it will be very straightforward.

from marzworkbench.

Cysign avatar Cysign commented on June 5, 2024

I merged the whole path into a single opject. But a single part of it still won't be displayed properly.
Here's my testfile: https://www.file-upload.net/download-14789618/example_custom_headstock.svg.html

I labeled it "lesson 01" - but the 1 won't display proberly.

from marzworkbench.

mnesarco avatar mnesarco commented on June 5, 2024

FreeCAD's svg importer is quite basic. If the paths are not connected, you must set an id to each part.
example_custom_headstock_fixed.svg.zip
screenshot_47

from marzworkbench.

mnesarco avatar mnesarco commented on June 5, 2024

The C++ version (WIP) does not use FreeCAD's svg importer. I wrote an svg importer from scratch highly tuned for this usage. I was trying to release it before xmas, but it was impossible due to time constraints.

from marzworkbench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.