Are you running python3?easyw-fc wrote: any "print" occurrence will trig the error, not only "print message" I've found
Are you running python3?easyw-fc wrote: any "print" occurrence will trig the error, not only "print message" I've found
No,cox wrote: Are you running python3?
Dear Rentlau_64,rentlau_64 wrote:Hello!
A new release 2017-02-05 is available:
https://github.com/Rentlau/WorkFeature.git
Code: Select all
Unable to check coplanarity :
Select 2 objects
(either 2 Planes or 2 Edges) !
Code: Select all
import Part
s=Gui.Selection.getSelectionEx()[0]
e=s.SubObjects[0]
if issubclass(type(e),Part.Edge):
if issubclass(type(e.Curve),Part.Circle):
print e.Curve.Radius
# print e.Curve.Center
elif issubclass(type(e.Curve),Part.ArcOfCircle):
print e.Curve.Radius
# print e.Curve.Center