forked from tazjel/declaracad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
draw.enaml
36 lines (33 loc) · 795 Bytes
/
draw.enaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from declaracad.occ.api import (
Part, Wire, Circle, Ellipse, Line, Point, Polygon
)
enamldef Assembly(Part):
name = "Draw Example"
Wire:
Circle:
radius = 10
Wire:
Ellipse:
position = (-10,0,0)
major_radius = 10
minor_radius = 4
Wire:
#Circle:
# radius = 4
Line:
Point:
position = (4,0,0)
Point:
position = (10,10,0)
Wire:
Polygon:
Point:
position = (0,5,0)
Point:
position = (2,6,0)
Point:
position = (5,4,0)
Point:
position = (1,2,0)
Point:
position = (0,5,0)