declare a (helper) construction line in python

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Leatherman
Posts: 155
Joined: Thu Feb 02, 2017 2:49 pm

declare a (helper) construction line in python

Post by Leatherman »

Hello,
sorry for this noob question, but I couldn't find an answer anywhere: How do I declare a (helper) construction line (or other primitive) with python?
Could somebody give me pls an idea?
Regards
Andre
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: declare a (helper) construction line in python

Post by Chris_G »

Hi,
I'm not sure this is what you're looking for ( I don't use it myself ) :
Construction property (here on a Part.Line) :

Code: Select all

print(Part.Line.Construction.__doc__)

Code: Select all

Defines this geometry as a construction one which
means that it is not part of a later built shape.
Leatherman
Posts: 155
Joined: Thu Feb 02, 2017 2:49 pm

Re: declare a (helper) construction line in python

Post by Leatherman »

Hi,
thank you this is it! Now I assume it's the same with circle or box, just add the .construction? Guess it should be like that.
Great Thread closed, thank you Chris,
regards
Andre
Post Reply