get an empty shape

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

get an empty shape

Post by bernd »

Setting the Shape attribute of some geomety to None gives an error.

Is it possible to set it to an empty Shape and if yes how is this done?
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: get an empty shape

Post by Chris_G »

Maybe :

Code: Select all

s = Part.Shape()
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: get an empty shape

Post by bernd »

exactly what I need, :D
Post Reply