Code: Select all
OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15379 (Git)
Build type: Release
Branch: master
Hash: 3290c36d28551875f02333c2e01af80e38b8ad02
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
I just copy/pasted the lines from the second part of the tutorial, so I literally have just this at the moment:
Code: Select all
V1 = FreeCAD.Vector(0,10,0)
V2 = FreeCAD.Vector(30,10,0)
V3 = FreeCAD.Vector(30,-10,0)
V4 = FreeCAD.Vector(0,-10,0)
L1 = Part.Line(V1,V2)
L2 = Part.Line(V4,V3)
VC1 = FreeCAD.Vector(-10,0,0)
C1 = Part.Arc(V1,VC1,V4)
VC2 = FreeCAD.Vector(40,0,0)
C2 = Part.Arc(V2,VC2,V3)
E1 = Part.Edge(L1)
E2 = Part.Edge(L2)
E3 = Part.Edge(C1)
E4 = Part.Edge(C2)
W = Part.Wire([E1,E4,E2,E3])
Code: Select all
>>> execfile("/path/to/testUnion.FCMacro")
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/path/to/testUnion.FCMacro", line 52, in <module>
W = Part.Wire([E1,E4,E2,E3])
Part.OCCError: BRep_API: command not done
Then again, I'm not trying to be creative here - I'm just copy pasting from a tutorial ?! So what am doing wrong - why won't this run?