"PositionBySupport: No planar face in AttachEngine3D::calculateAttachedPlacement()!"
I would think a flat feature with a circle cut in it would be planar, any thought on how to check this face?
Here is the code:
Code: Select all
if hasattr(ob1,'Shape') and str(ob1) != "<body object>": #obj.TypeId != "Sketcher::SketchObject":
if hasattr(ob1.Shape,'Faces'):
for i,fac in enumerate(ob1.Shape.Faces):
self.face_name = 'Face{:d}'.format(i+1 )
if ob1.Shape.Faces[i].Surface.isPlanar() ==True:
App.getDocument(self.local_doc).getObject(obj.Label).Support = [(FreeCAD.getDocument(self.local_doc).getObject(self.local_support),self.face_name) ]