The shape (fusion) in the source file is checked as OK. But after instantiation in the parent the checker returns "Out Of Enum Range: 35" ... see attached screenshot.
screenshot:
'35' is obviously an error as the range of the check in TaskCheckGeometry.cpp returns a fail if outside 0...33.
Whatever the enum means ... maybe its related to the insertion?
I tried ... https://forum.freecadweb.org/viewtopic. ... 82#p464882
and the copy of the shape with fix(...) seems to solve the issue.
Code: Select all
>>> Gui.Selection.getSelection()[0]
<Part::PartFeature>
>>> Gui.Selection.getSelection()[0].Shape
<Solid object at 00000000242B3FF0>
>>> s=Gui.Selection.getSelection()[0].Shape.copy()
>>> s.fix(0.01,0.01,0.01)
True
>>> s.fix(0.001,0.001,0.001)
True
>>> s.fix(0.0001,0.0001,0.0001)
True
>>> Part.show(s)
>>> help(Part.show)
Help on built-in function show:
show(...) method of builtins.tuple instance
show(shape,[string]) -- Add the shape to the active document or create one if no document exists.
>>> # Gui.Selection.clearSelection()
>>> # Gui.Selection.addSelection('rasenbot','Shape')
>>> Gui.runCommand('Part_CheckGeometry',0)
OS: Windows 7 SP 1 (6.1)
Word size of FreeCAD: 64-bit
Version: 0.20.25645 (Git)
Build type: Release
Branch: master
Hash: 37d9757399b4c2ec30318eb88d7cd7c508246345
Python version: 3.8.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: German/Germany (de_DE)