Extrude from curved surface of cylinder
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Extrude from curved surface of cylinder
I just had a thought...this is what we do in the code to create a helix....we put a line on a surface and rap that surface around a cylinder or something like that.....
Re: Extrude from curved surface of cylinder
Reported as issue #1699.
Re: Extrude from curved surface of cylinder
hi
slowly but surely mario
slowly but surely mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
-
- Posts: 3
- Joined: Mon Aug 18, 2014 3:42 am
Re: Extrude from curved surface of cylinder
Thanks Every body ......
Special thanks to bejant for his help.
mario52 Can you share your design details how you have done it, if you have used python can you please share that.
Special thanks to bejant for his help.
mario52 Can you share your design details how you have done it, if you have used python can you please share that.
Re: Extrude from curved surface of cylinder
hi
the macro Macro_FCCircularText
360 degrees
180 degrees or choice
I have not worked for extrude or boolean operation these procedures take an eternity with me !!
it would be nice, integrated of FreeCAD procedure is not complicated, and jim for the icon ?
mario
the macro Macro_FCCircularText
360 degrees
180 degrees or choice
I have not worked for extrude or boolean operation these procedures take an eternity with me !!
it would be nice, integrated of FreeCAD procedure is not complicated, and jim for the icon ?
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
Re: Extrude from curved surface of cylinder
hi
version with GUI ( the explanation for lather)
the wiki page Macro_FCCircularText
EDIT new version corrected 23/11/2014 (16h17 Paris)
EDIT new version corrected 02/02/2014 (17h30)
suppression 2 str(
EDIT 15/05/2015 20h34 Paris
replace link to github
the macro Macro_FCCircularText.FCMacro
mario
version with GUI ( the explanation for lather)
the wiki page Macro_FCCircularText
EDIT new version corrected 23/11/2014 (16h17 Paris)
Code: Select all
texte = unicode(self.textEdit.toPlainText())
App.Console.PrintMessage(u"texte " + unicode(texte)+"\n")
suppression 2 str(
EDIT 15/05/2015 20h34 Paris
replace link to github
the macro Macro_FCCircularText.FCMacro
mario
Last edited by mario52 on Fri May 15, 2015 6:49 pm, edited 3 times in total.
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
Re: Extrude from curved surface of cylinder
@mario52 - Very nice! Thanks for the tool and work.
John
John
Re: Extrude from curved surface of cylinder
Thanks Mario, but when I ran the macro I got the following error message:
Code: Select all
Exception (Sat Nov 22 16:36:21 2014): type must be str or unicode, not QString
Traceback (most recent call last):
File "/home/myusername/.FreeCAD/Macro_FCCircularText.FCMacro", line 1131, in on_PU_Benchmarks
ff.on_PU_Execute()
File "/home/myusername/.FreeCAD/Macro_FCCircularText.FCMacro", line 1275, in on_PU_Execute
ss=Draft.makeShapeString(String=texte[ii2],FontFile=PolicePath,Size=SizeCaractere,Tracking=0)
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 2311, in makeShapeString
obj.FontFile = FontFile
Base.FreeCADError: FreeCAD exception thrown (type must be str or unicode, not QString)
Re: Extrude from curved surface of cylinder
could you try
Code: Select all
String=unicode(texte[ii2])
Re: Extrude from curved surface of cylinder
Running with Line 1275 changed to:
results in this error message:
Code: Select all
ss=Draft.makeShapeString(String=unicode(texte[ii2]),FontFile=PolicePath,Size=SizeCaractere,Tracking=0)
Code: Select all
Exception (Sat Nov 22 17:14:26 2014): type must be str or unicode, not QString
Traceback (most recent call last):
File "/home/myusername/.FreeCAD/Macro_FCCircularText.FCMacro", line 1275, in on_PU_Execute
ss=Draft.makeShapeString(String=unicode(texte[ii2]),FontFile=PolicePath,Size=SizeCaractere,Tracking=0)
File "/usr/lib/freecad/Mod/Draft/Draft.py", line 2311, in makeShapeString
obj.FontFile = FontFile
Base.FreeCADError: FreeCAD exception thrown (type must be str or unicode, not QString)