Can not excute complex openscad code.

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!
eexpss
Posts: 56
Joined: Wed Dec 28, 2016 6:17 am

Can not excute complex openscad code.

Post by eexpss »

My text_on_cylinder function in openscad format.

Maybe freecad can not deal with the ttf font name. anyone help to test? Just need modify first line and last line in the file.

If can do it, it's a easy way to make text on cylinder surface, horizon or vertical.

The function has 3 parameters.

Code: Select all

text_on_cylinder("御风而行",5.5,true);
Attachments
text_on_cylinder.scad
(1.49 KiB) Downloaded 61 times
选区_002.png
选区_002.png (122.16 KiB) Viewed 2148 times
选区_001.png
选区_001.png (87.09 KiB) Viewed 2148 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Can not excute complex openscad code.

Post by Kunda1 »

What version of OCC are you running ?
Help > About FreeCAD > Copy to clipboard
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Willem
Veteran
Posts: 1852
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Can not excute complex openscad code.

Post by Willem »

Freecad has also the possibility to upload a macro called "Circular text"
The wiki page: https://www.freecadweb.org/wiki/Macro_Circular_Text
The download page: https://gist.github.com/mario52a/a25e802498bae6959335
eexpss
Posts: 56
Joined: Wed Dec 28, 2016 6:17 am

Re: Can not excute complex openscad code.

Post by eexpss »

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
eexpss
Posts: 56
Joined: Wed Dec 28, 2016 6:17 am

Re: Can not excute complex openscad code.

Post by eexpss »

Willem wrote:Freecad has also the possibility to upload a macro called "Circular text"
The wiki page: https://www.freecadweb.org/wiki/Macro_Circular_Text
The download page: https://gist.github.com/mario52a/a25e802498bae6959335
I had read it before. seems complex.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Can not excute complex openscad code.

Post by Kunda1 »

eexpss wrote:OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
You're using an inferior version of FreeCAD. Current stable is 0.16
If you want the latest OCC goodies you need to use the FreeCAD PPA that some diligent folks of this community recently updated. See https://www.freecadweb.org/wiki/CompileOnUnix#Ubuntu
Note: 0.17 is still experimental and not recommended officially for production (although some use it anyway).
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Can not excute complex openscad code.

Post by NormandC »

eexpss wrote:OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4671 (Git)
It is obvious that you didn't bother reading the "IMPORTANT: Please click here and read this first, before asking for help" topic. :roll:
eexpss
Posts: 56
Joined: Wed Dec 28, 2016 6:17 am

Re: Can not excute complex openscad code.

Post by eexpss »

Can you sure the new version can run this code right?

I usually only use the software inside the repo.

I am not like daily version.
User avatar
Willem
Veteran
Posts: 1852
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Can not excute complex openscad code.

Post by Willem »

My advice is to Install the stable version not the daily.

Type :
sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
sudo apt-get update

This will install this version, since you have the same OS as I have :

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

You can check on this forum and you will see that most people use this version. If you want you can also install the daily version so that you have two versions of Freecad on your computer, but I would not do this because for a beginner this is confusing because there are severe changes/improvements between version 0.16 and 0.17.
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Can not excute complex openscad code.

Post by DeepSOIC »

eexpss wrote:Can you sure the new version can run this code right?
We most likely can't, since most of us don't have that font installed.
OpenSCAD importer did get some changes since 0.15, but I didn't ever use it so I have no idea. But there is some chance. Updating to 0.16 definitely won't hurt anyway ;)
Post Reply