how to? (Check geometry-->macro-->makeText)

Need help, or want to share a macro? Post here!
Posts: 27
Joined: Wed Feb 07, 2018 11:20 am

how to? (Check geometry-->macro-->makeText)

Postby mrrclb48z » Tue May 15, 2018 1:13 pm

how to? (Check geometry-->macro-->makeText)
Thank you in advance and sorry for the bad english!

Code: Select all

# -*- coding: utf-8 -*-
#how to? (Check geometry-->macro-->makeText) 
import FreeCAD
import Part
import DraftTools
import Draft
def myTxtOut(P5x,P5y,P5z,myStr):
        p5 = FreeCAD.Vector(P5x,P5y,P5z)
        myText = Draft.makeText(myStr,p5) 
        myText.Label = myStr
App.ActiveDocument.ActiveObject.Label = "Sphere"
myTxtOut(0,0,5,"Check Geometry Shape Content"+"Unnamed.Sphere.Face1:" + " VERTEX : 2 " + "WIRE: 1......")
Posts: 27164
Joined: Tue Mar 17, 2015 9:14 am

Re: how to? (Check geometry-->macro-->makeText)

Postby chrisb » Tue May 15, 2018 3:34 pm

mrrclb48z wrote:
Tue May 15, 2018 1:13 pm
how to? (Check geometry-->macro-->makeText)
"how to" is not really bad, but it is not much either. You might use a translation program and tell us a bit more about what you want.

There are several foreign language subforums, perhaps your language is among them.