Hide last authors
Stella170101 1.1 1 (% class="row" style="display: flex; align-items: center; margin-bottom: 2em" %)
2 (((
3 (% class="col-xs-12 col-sm-8" %)
4 (((
5 (% class="badge warningmessage" %)** MEDIUM **(%%)** In this Tutorial you learn how to fill an object automatically.**
Stella170101 16.1 6
7
8 [[**here you get to the download page of the example programm~>~>**>>https://share.catrob.at/app/project/347dd0fd-ecf8-11ea-9251-005056a36f47]]
Michael Jagoutz 29.1 9
Michael Jagoutz 34.1 10 //Here you can download the description in [[PDF-format>>attach:Fill Areas Automatically.pdf]]!//
Stella170101 1.1 11 )))
12
13 (% class="col-xs-12 col-sm-4" %)
14 (((
Stella170101 16.1 15 [[image:20200902_144629.jpg||queryString="width=150" height="244" style="float:right" width="250"]]
Stella170101 1.1 16 )))
17 )))
18
19 (% class="row" %)
20 (((
21 (% class="col-xs-12 col-sm-6" %)
22 (((
23 (% class="box" %)
24 (((
25 **1.  **First,** c**reate a new Object. This is the object you want to fill. **You must name the object "filledObject".**
26
Michael Jagoutz 32.1 27 You can draw it, or choose one of the media libraries.
Stella170101 1.1 28
29
Stella170101 11.2 30 (% class="box warningmessage" %)
31 (((
32 Mark, that you can only fill simple forms. If your design is too complicated it won't work.
33 [[image:FilledObjects.png||height="auto" width="200"]]
Stella170101 1.1 34 )))
35 )))
Stella170101 11.2 36 )))
Stella170101 1.1 37
38 (% class="col-xs-12 col-sm-6" %)
39 (((
40 (% class="box" %)
41 (((
Michael Jagoutz 32.1 42 **2. **Now start and insert bricks into your script.
Stella170101 1.1 43
44 First set the transparency to 50%.
45
Stella170101 11.2 46 [[image:setTransparency.png||height="78" width="300"]]
Stella170101 1.1 47
Michael Jagoutz 32.1 48 Then set the size of your object using this brick.
Stella170101 1.1 49
Stella170101 11.2 50 [[image:setSize.png||height="60" width="300"]]
Stella170101 1.1 51
Michael Jagoutz 32.1 52 Last but not least place the object in the right position.
Stella170101 1.1 53
Stella170101 11.2 54 [[image:placeat.png||height="78" width="300"]]
Stella170101 1.1 55
56 Hint: After shortly taping onto the brick you can place your object visually.
57
58
59 )))
60 )))
61 )))
62
63 (% class="row" %)
64 (((
65 (% class="col-xs-12 col-sm-6" %)
66 (((
67 (% class="box" %)
68 (((
69 **3. Create a new embroidery object. **
70
Michael Jagoutz 32.1 71 //Have a look at how to create an embroidery object [[here>>doc:Education.Embroidery.Create Embroidery-Objects.WebHome]].//
Stella170101 1.1 72
Stella170101 11.2 73
74
Stella170101 12.1 75
76
77
78 Everywhere you see the text "touches actor or object..." you have to add a property.
79
Michael Jagoutz 32.1 80 Therefore go to the formula editor and follow these steps:
Stella170101 11.2 81
82
Michael Jagoutz 26.1 83 [[image:Properties.png||height="282" width="335"]]
Stella170101 11.2 84
85
Michael Jagoutz 26.1 86 [[image:touches actor or object.png||height="456" width="332"]]
Stella170101 11.2 87
88
Michael Jagoutz 26.1 89 [[image:choose right object.png||height="168" width="331"]]
Stella170101 11.2 90
91
92 Now there should be the same text as in the right pictures.
93
Stella170101 12.1 94
95 (% class="box errormessage" %)
96 (((
97 **Attention! **
98 \\If there is a **"not"** before the property, you have to add that too. You can find it in the **formula editor** under **logic**.
99 )))
100
Stella170101 16.1 101
102
Stella170101 17.1 103
Stella170101 1.1 104 )))
105 )))
106
Stella170101 12.1 107 (% class="col-xs-12 col-sm-3" %)
Stella170101 1.1 108 (((
109 (% class="box" %)
110 (((
Michael Jagoutz 32.1 111 **4. **Now start and insert these bricks into your script.
Stella170101 1.1 112
Stella170101 11.2 113 [[image:FillObjectCode1.0.png]]
Stella170101 1.1 114
115
116 )))
117 )))
Stella170101 12.1 118
119 (% class="col-xs-12 col-sm-3" %)
120 (((
Stella170101 16.2 121 |(% style="height:900px" %)
Stella170101 17.1 122 |(% class="box infomessage" %)(((
Michael Jagoutz 32.1 123 You have to place this position visually on the left side of your object, which you want to fill. The needle is going to move to the right till it touches your object.
Stella170101 1.1 124 )))
125
Stella170101 12.1 126
127 )))
128 )))
129
130
Stella170101 1.1 131 (% class="row" %)
132 (((
133 (% class="col-xs-12 col-sm-6" %)
134 (((
135
136 )))
137
138 (% class="col-xs-12 col-sm-6" %)
139 (((
140 (% class="box" %)
141 (((
Stella170101 13.1 142 **5. **Check the bricks, if it still doesn’t work.
Stella170101 17.1 143
Michael Jagoutz 32.1 144 **Here is a cute example to see what's possible:**
Stella170101 17.1 145
Michael Jagoutz 26.1 146 [[image:20200902_144703.jpg||height="340" width="260"]]
Stella170101 1.1 147 )))
148 )))
149 )))