-
0
1
1
- 633863662611470000
-
0
6
18
- true
- true
- Shaded
- theEngine-18.ghx
- 633798834903370000
- 0
-
46
31
- 1
- 0
- 14
- ad483f40-dc72-40dc-844d-c9e462c7d19f
- Boolean Toggle
- false
- Key
- ffe370d7-6ce8-422e-9d0a-70cc0eee1661
- true
- true
- 0
-
31
166
72
20
-
31
166
72
20
-
31
166
- true
- true
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 478a33ca-4d35-4025-a8e1-84dddadb858c
- true
- true
- 1
- b2f91f6e-188e-4681-b387-9725b25a078d
- Double click to edit panel content…
- true
- true
- true
- 0
- false
-
0
0
0
255
-
255
174
40
255
-
471
179
175
87
-
471
179
175
87
-
471
179
- false
- true
- Trebuchet MS
- 24
- false
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- TheEngine - v18 compatibility release
- 31644436-1808-4827-81eb-50379b2881d0
- true
- true
- 0
-
The engine is a component that brings Grasshopper to new animating lands. Now it is quite stable, but please always save. Also consider that it might bring Rhino and your system to their limits in terms of computational demands, so it would be good to keep the refreshing speed not too fast (in this case, the speed is expressed as a period of milliseconds). Each engine recomputes the whole canvas at the requested time interval on a best-effort basis.
- true
- true
- true
- 0
- false
-
0
0
0
255
-
255
172
45
255
-
26
18
274
100
-
26
18
274
100
-
26
18
- false
- true
- Microsoft Sans Serif
- 10
- false
- false
- 2e3ab970-8545-46bb-836c-1c11e5610bce
- Integer
- Int
- ae27d506-e2c7-4e98-9c58-cafbde9bcb9a
- true
- true
- 0
- 1
-
135
187
60
24
-
135
187
60
24
-
165
199
- false
- true
- 1500
- 2e3ab970-8545-46bb-836c-1c11e5610bce
- Integer
- Int
- 9522d7ca-82af-49fc-8d14-e67700b5146d
- true
- true
- 0
- 1
-
135
211
60
24
-
135
211
60
24
-
165
223
- false
- true
- 10
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
-
//TheGHEngine
//Written by Giulio Piacentino
//Version 2009 06 06
//more tools at www.giuliopiacentino.com/grasshopper-tools/
//Note: a static constructor is defined in the additional section below
//Set interval
if(Script_Runtime_Instance.timer.Interval
//"Script_Runtime_Instance" is the real name of "Grasshopper_Custom_Script"
!= speed){
Script_Runtime_Instance.timer.Interval = (speed == 0 ? 1000 : speed);
}
//Set static variables
Script_Runtime_Instance.eventOn = isOn;
//Start timer
if(isOn){
Script_Runtime_Instance.timer.Start();
} else {
Script_Runtime_Instance.timer.Stop();
}
//Reset
if(resetAt != 0 && resetAge != resetAt){
resetAge = resetAt;
}
//Return value
C = Script_Runtime_Instance.frameCount;
-
static public System.Windows.Forms.Timer timer;
static public int frameCount = 0;
static public bool eventOn = true;
static public int resetAge = int.MaxValue;
//Static constructor
static Script_Runtime_Instance(){
//Create the timer on this static thread (other types of timers won't work)
timer = new System.Windows.Forms.Timer();
//Assign the delegate only once
timer.Tick += new EventHandler(CheckTime);
}
static private void CheckTime(Object myObject, EventArgs myEventArgs){
if(IsSolutionRunning()){
if(eventOn){
//System.Windows.Forms.MessageBox.Show("Not updated in time");
} else {
System.Windows.Forms.MessageBox.Show("Checktime has been disposed even if the solution was running");
timer.Stop();
}
} else {
if(eventOn){
//System.Windows.Forms.MessageBox.Show("Checktime's doing great");
if(resetAge == frameCount)
frameCount = -1;
frameCount++;
RedefineSolution();
} else {
//System.Windows.Forms.MessageBox.Show("Checktime will be stopped because it's bedtime");
timer.Stop();
}
}
}
static public bool IsSolutionRunning(){
return Grasshopper.Plugin.EH_InstanceServer.ActiveDefinition.SolutionState
== Grasshopper.Kernel.EH_ProcessStep.Process;
}
static public void RedefineSolution(){
Grasshopper.Plugin.EH_InstanceServer.ActiveDefinition.NewSolution(true, false);
}
//
- 1
- C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll
- theEngine
- b85e1e72-ab32-4115-966f-fa86b6ed5b2b
- 1
- true
- true
- longest_list
-
273
294
90
82
-
320
296
23
78
-
331.75
335
- false
- true
- 3
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable x
- Script Variable x
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable y
- Script Variable y
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 2
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- Output
- Print, Reflect and Error streams
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result A
- Output parameter A
- true
- false
- isOn
- 81b5e547-dfb8-4b57-b1a7-180bf8605b7f
- true
- true
- 1
- 604d0eef-28f1-4424-8e45-891ac20c2d04
- d60527f5-b5af-4ef6-8970-5f96fe412559
- true
-
275
296
45
26
-
275
296
45
26
-
297.5
309
- false
- true
- speed
- 88bad4ee-ecb7-45f7-ae55-2c5ae318355b
- true
- true
- 0
- 48d01794-d3d8-4aef-990e-127168822244
- true
-
275
322
45
26
-
275
322
45
26
-
297.5
335
- false
- true
- resetAt
- 3993c707-ea15-47e5-ad84-6141c7a841c3
- true
- true
- 1
- b44cd126-1d9f-406b-ba73-fd0db594c737
- 48d01794-d3d8-4aef-990e-127168822244
- true
-
275
348
45
26
-
275
348
45
26
-
297.5
361
- false
- true
- d27cf049-7f9e-4893-91ef-b68c3557cbed
- true
- true
- 0
- 0
-
343
296
18
39
-
343
296
18
39
-
352
315.5
- false
- true
- C
- f7727d3c-22fe-4f1f-bb02-2cb28db28345
- true
- true
- 0
-
343
335
18
39
-
343
335
18
39
-
352
354.5
- false
- true
- 2e3ab970-8545-46bb-836c-1c11e5610bce
- Integer
- Int
- b44cd126-1d9f-406b-ba73-fd0db594c737
- true
- true
- 0
- 1
-
135
374
60
24
-
135
374
60
24
-
165
386
- false
- true
- 5
- ad483f40-dc72-40dc-844d-c9e462c7d19f
- Boolean Toggle
- false
- Key
- 604d0eef-28f1-4424-8e45-891ac20c2d04
- true
- true
- 0
-
35
325
72
20
-
35
325
72
20
-
35
325
- false
- true
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
- //your code here…
app.Print("Now is " + x + ".\n");
- 0
- printer
- d88b0eeb-e5a0-4c31-be11-7ec49a2e9ef0
- 1
- true
- true
- longest_list
-
726
152
67
58
-
744
154
22
54
-
755
181
- false
- true
- 1
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable x
- Script Variable x
- true
- true
- 2
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- Output
- Print, Reflect and Error streams
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result A
- Output parameter A
- true
- false
- x
- 76319960-e058-4992-9045-c74747ebca1f
- true
- true
- 1
- 478a33ca-4d35-4025-a8e1-84dddadb858c
- 9e93878a-f9c5-4f0a-8a70-584bf09f24bb
- true
-
728
154
16
54
-
728
154
16
54
-
736
181
- false
- true
- out
- f3b253c8-110d-4d4e-bdd4-7207443264d0
- true
- true
- 0
- 0
-
766
154
25
27
-
766
154
25
27
-
778.5
167.5
- false
- true
- A
- b4daf8ff-0ef6-472b-9867-15c4a0f6fdb0
- true
- true
- 0
-
766
181
25
27
-
766
181
25
27
-
778.5
194.5
- false
- true
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- String
- Str
- 6160e403-7e22-4b95-b8f5-485d60784e87
- true
- true
- 0
- 1
-
466
463
60
24
-
466
463
60
24
-
496
475
- false
- true
- false
- If this component is red, you need to specify the root to your .Net framework in the component "Referenced Assemblies".
- 2844fec5-142d-4381-bd5d-4cbcef6d6fed
- Sketch
- Sketch
- 05e6f25a-5a56-4487-8d98-4cbe63bc8b0b
- 3
-
352
389
86
76
-
352
389
86
76
-
352
389
- false
- true
- 3
-
0
0
0
255
- 0
- 10
-
358
391
-
358
392
-
362
400
-
374
419
-
388
436
-
406
449
-
429
462
-
437
465
-
438
465
-
438
463
- 6
-
357
389
-
357
390
-
354
395
-
352
400
-
352
401
-
352
399
- 2
-
359
391
-
373
391
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
- //your code here…
string s = System.Environment.GetEnvironmentVariable("windir") + @"\Microsoft.NET\Framework\v2.0.50727\System.dll";
if(String.Compare(s, @"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll", true) == 0)
A = ("Everything running smoothly. This is a compatibility release.");
else
A = (x + "\nThe file to link should be located at:\n" + s + "\nRight click on the theEngine component to find the referenced assemblies. It is possible that future releases of GH will not suffer of this.");
- 0
- Trblshtr
- 3920106b-9f9f-42e3-adb0-3f96d6b63f16
- true
- true
- longest_list
-
495
450
69
44
-
513
452
24
40
-
525
472
- false
- true
- 1
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable x
- Script Variable x
- true
- true
- 2
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- Output
- Print, Reflect and Error streams
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result A
- Output parameter A
- true
- false
- x
- d8ca4723-757a-41a7-8f1a-457829aa2457
- true
- true
- 1
- 6160e403-7e22-4b95-b8f5-485d60784e87
- 9e93878a-f9c5-4f0a-8a70-584bf09f24bb
- true
-
497
452
16
40
-
497
452
16
40
-
505
472
- false
- true
- out
- 28b0652d-e3a8-4819-ad9a-d5d1fb40a17f
- true
- true
- 0
- 0
-
537
452
25
20
-
537
452
25
20
-
549.5
462
- false
- true
- A
- 80df64d9-8d67-4973-9992-ea8a9d74bf68
- true
- true
- 0
-
537
472
25
20
-
537
472
25
20
-
549.5
482
- false
- true
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 066a9f62-65bd-4557-a02f-d6c54abb64bd
- true
- true
- 1
- 80df64d9-8d67-4973-9992-ea8a9d74bf68
- Double click to edit panel content…
- true
- true
- true
- 0
- false
-
0
0
0
255
-
255
255
255
255
-
451
430
353
81
-
451
430
353
81
-
451
430
- false
- true
- Microsoft Sans Serif
- 8.25
- false
- false
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
-
//TheGHEngine
//Written by Giulio Piacentino
//Version 2009 06 06
//more tools at www.giuliopiacentino.com/grasshopper-tools/
//Note: a static constructor is defined in the additional section below
//Set interval
if(Script_Runtime_Instance.timer.Interval
//"Script_Runtime_Instance" is the real name of "Grasshopper_Custom_Script"
!= speed){
Script_Runtime_Instance.timer.Interval = (speed == 0 ? 1000 : speed);
}
//Set static variables
Script_Runtime_Instance.eventOn = isOn;
Script_Runtime_Instance.stopAge = (stopAt == 0 ? Int32.MaxValue : stopAt);
//Start timer
if(isOn && Script_Runtime_Instance.frameCount < Script_Runtime_Instance.stopAge){
Script_Runtime_Instance.timer.Start();
} else {
Script_Runtime_Instance.timer.Stop();
}
//Reset
if(reset != null){
Script_Runtime_Instance.frameCount = 0;
}
//Return value
C = Script_Runtime_Instance.frameCount;
-
//Static fields
static public System.Windows.Forms.Timer timer;
static public bool eventOn = true;
static public int stopAge = Int32.MaxValue;
//Framecount is initialized at 0. Change it for another behaviour
static public int frameCount = 0;
//Static constructor
static Script_Runtime_Instance(){
//Create the timer on this static thread (other types of timers won't work)
timer = new System.Windows.Forms.Timer();
//Assign the delegate only once
timer.Tick += new EventHandler(CheckTime);
}
static private void CheckTime(Object myObject, EventArgs myEventArgs){
if(IsSolutionRunning()){
if(eventOn && frameCount < stopAge){
//System.Windows.Forms.MessageBox.Show("Not updated in time");
//Wait once again...
} else {
System.Windows.Forms.MessageBox.Show("TheEngine has been stopped even if the solution was running");
timer.Stop();
}
} else {
if(eventOn && frameCount < stopAge){
//System.Windows.Forms.MessageBox.Show("Checktime's doing great");
frameCount++;
RedefineSolution();
} else {
//System.Windows.Forms.MessageBox.Show("Checktime will be disposed because it's bedtime");
timer.Stop();
}
}
}
static public bool IsSolutionRunning(){
return Grasshopper.Plugin.EH_InstanceServer.ActiveDefinition.SolutionState
== Grasshopper.Kernel.EH_ProcessStep.Process;
}
static public void RedefineSolution(){
Grasshopper.Plugin.EH_InstanceServer.ActiveDefinition.NewSolution(true, false);
}
//
- 1
- C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll
- theEngine
- ab5a71e7-20f5-4b9f-bda2-cb41f9594d93
- 1
- true
- true
- longest_list
-
273
142
86
84
-
316
144
23
80
-
327.75
184
- false
- true
- 4
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable x
- Script Variable x
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable y
- Script Variable y
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 2
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- Output
- Print, Reflect and Error streams
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result A
- Output parameter A
- true
- false
- isOn
- abd51ee3-dfff-47e8-a021-245a682e5c01
- true
- true
- 1
- ffe370d7-6ce8-422e-9d0a-70cc0eee1661
- d60527f5-b5af-4ef6-8970-5f96fe412559
- true
-
275
144
41
20
-
275
144
41
20
-
295.5
154
- false
- true
- speed
- 5b2e7c6c-1315-4fa9-8725-1946f1f60f53
- true
- true
- 1
- ae27d506-e2c7-4e98-9c58-cafbde9bcb9a
- 48d01794-d3d8-4aef-990e-127168822244
- true
-
275
164
41
20
-
275
164
41
20
-
295.5
174
- false
- true
- stopAt
- 44850cf9-7e59-4c69-9e30-dfac38d44fe2
- true
- true
- 1
- 9522d7ca-82af-49fc-8d14-e67700b5146d
- 48d01794-d3d8-4aef-990e-127168822244
- true
-
275
184
41
20
-
275
184
41
20
-
295.5
194
- false
- true
- reset
- 50897edc-cfd0-48b1-be48-3823bd948f8d
- true
- true
- 0
- true
-
275
204
41
20
-
275
204
41
20
-
295.5
214
- false
- true
- 83e2a8cd-8ccf-4c1b-ad1b-2b92a3679e68
- true
- true
- 0
- 0
-
339
144
18
40
-
339
144
18
40
-
348
164
- false
- true
- C
- b2f91f6e-188e-4681-b387-9725b25a078d
- true
- true
- 0
-
339
184
18
40
-
339
184
18
40
-
348
204
- false
- true