Добавлен функционал генератора спецификаций
This commit is contained in:
parent
b5c5ec0bd6
commit
29cad491f5
12 changed files with 998 additions and 18 deletions
17
cg/freecad/Frames/newLabel.py
Normal file
17
cg/freecad/Frames/newLabel.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
import FreeCAD as App
|
||||
|
||||
|
||||
def is_object_solid(obj):
|
||||
"""If obj is solid return True"""
|
||||
if not isinstance(obj, FreeCAD.DocumentObject):
|
||||
return False
|
||||
|
||||
if not hasattr(obj, 'Shape'):
|
||||
return False
|
||||
|
||||
return obj.Shape.isClosed()
|
||||
|
||||
def addProperty():
|
||||
for obj in App.ActiveDocument().Objects:
|
||||
if is_object_solid(obj):
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue