-
0
2
1
- 634588577629371097
-
0
8
61
- cba836b5-1bcd-4543-bda0-cbd1a820bdeb
-
150;150;0;0
-
150;0;150;0
- Shaded
- txtLine-0.8.61.ghx
- 633803426863192000
- 0
-
26
9
- 1
- 0
- 14
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script (LEGACY)
-
//TxtLines
//written by Giulio Piacentino
//version 2009 06 11
//Other tools and updates at www.giuliopiacentino.com/grasshopper-tools/
if(content != null && content != String.Empty
&& face != null && face != String.Empty && pl != null){
if(size == 0)
size = 5;
//--From http://en.wiki.mcneel.com/default.aspx/McNeel/AddTextItem
OnTextEntity2 text_entity = new OnTextEntity2();
MRhinoAnnotationText text_object = new MRhinoAnnotationText();
text_object.SetAnnotation(text_entity);
text_object.SetTextHeight(size);
text_object.SetString(content);
text_object.SetPlane(pl);
int idx = doc.m_font_table.FindOrCreateFont(ref face, bold, italics);
text_object.SetFontIndex(idx);
//--End from
//Now, this is a hack, but otherwise I dont get it to work!
doc.AddObject(text_object, true, false);
doc.DeleteObject(new MRhinoObjRef(text_object));
OnCurve[] crvs;
text_object.Explode(out crvs);
A = crvs;
} else {
Print("Some content is required.");
}
- 0
- DotNET C# Script (LEGACY)
- txtLines
- A C#.NET scriptable component
- abe04b46-2e2e-4d20-aa76-f41486e2917d
- true
-
322
185
-
261
123
95
124
- 6
- 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
- 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
- Variable x
- face
- Script Variable x
- 34429b33-c30f-4783-a3d8-6ac73f23c5b0
- true
- 1
- 409d95e1-9efc-4f3b-8fd9-8971b497d561
- 9e93878a-f9c5-4f0a-8a70-584bf09f24bb
- true
- false
-
286.5
135
-
263
125
44
20
- Variable y
- bold
- Script Variable y
- 613c25dc-f0db-4fc6-8289-2dbe764895e8
- true
- 1
- b6193737-2d86-469d-bb96-177dc24f2b72
- d60527f5-b5af-4ef6-8970-5f96fe412559
- true
- false
-
286.5
155
-
263
145
44
20
- Variable var
- italics
- Script Variable var
- ddae7c3d-61b9-4acb-809c-e792e3c924d1
- true
- 0
- d60527f5-b5af-4ef6-8970-5f96fe412559
- true
- false
-
286.5
175
-
263
165
44
20
- Variable var
- size
- Script Variable var
- c7ce8bab-e3a9-4f69-a124-5e0b36b820af
- true
- 1
- 0fef913c-d623-48f8-8c54-ee20a030899c
- 19ff81a2-dc4f-4035-8de9-26224c561321
- true
- false
-
286.5
195
-
263
185
44
20
- Variable var
- content
- Script Variable var
- 371db174-c7e0-4e77-9afb-8fd72f63d050
- true
- 1
- 463d746c-a320-4c28-8ae5-0f4110329bc7
- 9e93878a-f9c5-4f0a-8a70-584bf09f24bb
- true
- false
-
286.5
215
-
263
205
44
20
- Variable var
- pl
- Script Variable var
- 572c2709-d3c1-425f-9b61-7961956eac5c
- true
- 1
- 1e6972bc-6bdd-414c-9abf-a8e2d1878d2c
- 271b12ad-e843-4248-8c41-4ad688b07ff3
- true
- false
-
286.5
235
-
263
225
44
20
- Output
- Print, Reflect and Error streams
- e20eae24-0d15-47c8-9eae-db95285008b2
- false
- 0
-
345.5
155
-
337
125
17
60
- Result A
- A
- Output parameter A
- 34546378-642c-4c7e-ae1a-a86ad507cb9b
- false
- 0
-
345.5
215
-
337
185
17
60
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- Panel
- A panel for custom notes and String values
- 463d746c-a320-4c28-8ae5-0f4110329bc7
- false
- 0
- How are you?
- true
- true
- true
- 1
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
48
210
150
20
- Microsoft Sans Serif
- 10
- false
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- Panel
- A panel for custom notes and String values
- 409d95e1-9efc-4f3b-8fd9-8971b497d561
- false
- 0
- Verdana
- true
- true
- true
- 1
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
77
102
150
20
- Microsoft Sans Serif
- 10
- false
- false
- fbac3e32-f100-4292-8692-77240a42fd1a
- Point
- Point
- Pt
- Represents a collection of 3D Points
- 1e6972bc-6bdd-414c-9abf-a8e2d1878d2c
- false
- 0
- 1
-
150.05
262.5
-
125
250
50
24
-
-22.5649463488825
0.0378041095087363
0
- d51e9b65-aa4e-4fd6-976c-cef35d421d05
- Planar Srf
- Planar Srf
- Planar
- Create planar surfaces from a collection of edge curves.
- 299d0d40-9958-4c12-a0c8-c46284f75813
-
431
222
-
401
208
63
28
- Edges
- E
- Edge curves
- e5a16b9e-2b8e-45b7-9838-6fb3b92cdd1f
- 1
- false
- 1
- 34546378-642c-4c7e-ae1a-a86ad507cb9b
-
411
222
-
403
210
13
24
- Surfaces
- S
- Resulting planar surfaces
- d024aee3-460b-46cf-9035-57b02d417ec3
- false
- 0
-
454
222
-
446
210
16
24
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- Panel
- txtLines
- A panel for custom notes and String values
- 38a2f79c-fad9-4b58-9327-976e9a2bd5b5
- false
- 0
-
TxtLines allows to extract fonts from your computer's font library, similarly to Rhino's text command. Simply write your text... done!
- true
- true
- true
- 1
- 0
- false
-
255;0;0;0
-
255;255;161;0
-
22
11
294
85
- Microsoft Sans Serif
- 10
- false
- false
- cb95db89-6165-43b6-9c41-5702bc5bf137
- Boolean
- Boolean
- Bool
- Represents a collection of Boolean values
- b6193737-2d86-469d-bb96-177dc24f2b72
- false
- 0
- 1
- false
-
193
150
-
168
138
50
24
- true
- 57da07bd-ecab-415d-9d86-af36d7073abc
- Number Slider
- Number Slider
- Slider
- Numeric slider for single values
- 0fef913c-d623-48f8-8c54-ee20a030899c
- false
- 0
-
0
176
160
20
- 5.136
- 0
- 11
- 3
- 0
- 1
- a9a8ebd2-fff5-4c44-a8f5-739736d129ba
- C# Script
-
if(size == 0)
size = 1;
if(!string.IsNullOrEmpty(face) && size > 0 && !string.IsNullOrEmpty(content) &&
pl.IsValid)
{
var te = RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics);
Rhino.DocObjects.TextObject txt = RhinoDoc.ActiveDoc.Objects.Find(te) as Rhino.DocObjects.TextObject;
if(txt != null)
{
var tt = txt.Geometry as Rhino.Geometry.TextEntity;
A = tt.Explode();
}
RhinoDoc.ActiveDoc.Objects.Delete(te, true);
}
- 0
- C# Script
- C#
- A C#.NET scriptable component
- d9c73117-e5ef-4363-b3c9-3da0d050bcf1
-
348
371
-
287
309
104
124
- 6
- 2
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Variable face
- face
- Script Variable face
- 0a5df2eb-54b9-48d8-9f5d-02e78a3f2b6e
- true
- 1
- d5abc612-406d-4a79-8d1e-99e08fa98b58
- 9e93878a-f9c5-4f0a-8a70-584bf09f24bb
- true
- true
-
312.5
321
-
289
311
44
20
- Variable bold
- bold
- Script Variable bold
- e65c7e72-c977-4b72-9bd2-d8c87cdec8fc
- true
- 1
- e39bd0eb-a9d3-472f-82f1-92a60e28e470
- d60527f5-b5af-4ef6-8970-5f96fe412559
- true
- true
-
312.5
341
-
289
331
44
20
- Variable italics
- italics
- Script Variable italics
- b27c597e-7017-4a71-80e5-76295a625224
- true
- 0
- d60527f5-b5af-4ef6-8970-5f96fe412559
- true
- true
-
312.5
361
-
289
351
44
20
- Variable size
- size
- Script Variable size
- 7fd5f124-713e-4c7a-b244-bd3137767ccd
- true
- 1
- 91646ad8-e12c-418d-87df-c091a8ceed63
- 19ff81a2-dc4f-4035-8de9-26224c561321
- true
- true
-
312.5
381
-
289
371
44
20
- Variable content
- content
- Script Variable content
- 5c14c64e-eee2-4d7d-bdd3-0280a15934a4
- true
- 1
- 992fe83a-9af9-46e9-871f-36873f68ce08
- 9e93878a-f9c5-4f0a-8a70-584bf09f24bb
- true
- true
-
312.5
401
-
289
391
44
20
- Variable x
- pl
- Script Variable x
- bca66f56-006a-49d9-b993-25922b5f9f58
- true
- 1
- 0883c650-5958-42b0-8197-ea6936f14e28
- 3897522d-58e9-4d60-b38c-978ddacfedd8
- true
- true
-
312.5
421
-
289
411
44
20
- Output
- out
- Print, Reflect and Error streams
- 276f6393-767d-4742-b1b4-aa1f21e5625f
- false
- 0
-
376
341
-
363
311
26
60
- Result A
- A
- Output parameter A
- 6ec6b165-6d5e-4fc4-840d-020ebfb86e55
- false
- 0
-
376
401
-
363
371
26
60
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- Panel
- A panel for custom notes and String values
- 992fe83a-9af9-46e9-871f-36873f68ce08
- false
- 0
- How are you?
- true
- true
- true
- 1
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
46.8
406.4
150
20
- Microsoft Sans Serif
- 10
- false
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- Panel
- A panel for custom notes and String values
- d5abc612-406d-4a79-8d1e-99e08fa98b58
- false
- 0
- Verdana
- true
- true
- true
- 1
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
75.8
298.4
150
20
- Microsoft Sans Serif
- 10
- false
- false
- fbac3e32-f100-4292-8692-77240a42fd1a
- Point
- Point
- Pt
- Represents a collection of 3D Points
- 0883c650-5958-42b0-8197-ea6936f14e28
- false
- 0
- 1
-
148.85
458.9
-
123
446
50
24
-
-1.69045622998999
-15.2949483026228
0
- cb95db89-6165-43b6-9c41-5702bc5bf137
- Boolean
- Boolean
- Bool
- Represents a collection of Boolean values
- e39bd0eb-a9d3-472f-82f1-92a60e28e470
- false
- 0
- 1
- false
-
191.8
346.4
-
166
334
50
24
- true
- 57da07bd-ecab-415d-9d86-af36d7073abc
- Number Slider
- Number Slider
- Slider
- Numeric slider for single values
- 91646ad8-e12c-418d-87df-c091a8ceed63
- false
- 0
-
-1.199997
372.4
-
-2
372
160
20
- 4.52
- 0
- 11
- 3
- 0
- 1