-
0
1
1
- 633810079965450000
-
0
6
12
- true
- true
- Shaded
- findID.ghx
- 633809687378868000
- 0
-
59
44
- 1
- 0
- 5
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
-
//FindID
//Written by Giulio Piacentino
//for other tools, see www.giuliopiacentino.com/grasshopper-tools/
//Let's try to cast to IOnGeometry
IOnGeometry g;
if(x is IOnGeometry){
g = (IOnGeometry) x;
} else {
//If impossible to cast, probably this is not a document object anyways
Print("This object type does not cast to IOnGeometry");
return;
}
//A document interator will go through all objects
MRhinoObjectIterator r = new MRhinoObjectIterator(doc, RMA.Rhino.IRhinoObjectIterator.object_state.normal_objects,
RMA.Rhino.IRhinoObjectIterator.object_category.active_objects);
//Loop inside the document
for(MRhinoObject o = r.First(); o != null; o = r.Next() ){
//Then checks if object types are same
if(o.Geometry().ObjectType() == g.ObjectType()){
//Then check all other internal defining variables, including position
if(o.Geometry().DataCRC(0) == g.DataCRC(0)){
//This is the object!
A = o.ModelObjectId().ToString();
break;
}
}
}
- 0
- findID
- ac8e0cd3-aa98-453b-b385-d197b557bea2
- true
- true
- longest_list
-
158.08
30.35999
64
53
-
178.08
32.35999
23
49
-
178.08
32.35999
- false
- true
- false
- 1
- 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
- Represents a list of generic data
- true
- false
- x
- 80920d15-103c-4949-8a5b-900d6e1eb0e1
- true
- true
- 1
- 0410b09e-9fe8-4cac-979a-25e563c88701
- 0
- true
-
160.08
32.35999
18
49
-
160.08
32.35999
18
49
-
160.08
32.35999
- false
- true
- false
- bada24a9-445f-47b0-a856-64f2feb97151
- true
- true
- 0
- 0
- 0
-
201.08
32.35999
19
24.5
-
201.08
32.35999
19
24.5
-
201.08
32.35999
- false
- true
- false
- A
- 491045c2-a716-4616-b48c-dd1a658f60b0
- true
- true
- 0
- 0
-
201.08
56.85999
19
24.5
-
201.08
56.85999
19
24.5
-
201.08
56.85999
- false
- true
- false
- ac2bc2cb-70fb-4dd5-9c78-7e1ea97fe278
- Geometry
- Geo
- 0410b09e-9fe8-4cac-979a-25e563c88701
- true
- true
- 0
- 0
- 1
-
33.2
46.8
60
20
-
33.2
46.8
60
20
-
33.2
46.8
- true
- true
- false
- Grasshopper.Kernel.Types.EH_Curve, Grasshopper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
- cddb4ae5-f7e4-467b-8ee1-a10ce3c2760e
- f23b5c0d-6dbb-4eab-b9e9-c2ffe8d4212a
- -1
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 3f64a3b5-4664-40b9-9801-09a017bfe9c2
- true
- true
- 1
- 491045c2-a716-4616-b48c-dd1a658f60b0
- 0
- Double click to edit panel content…
- true
- true
- 0
- false
-
0
0
0
255
-
255
250
90
255
-
293
18
171
119
-
293
18
171
119
-
293
18
- false
- true
- false
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
-
//FindRef
//Written by Giulio Piacentino
//for other tools, see www.giuliopiacentino.com/grasshopper-tools/
//Let's try to cast to IOnGeometry
IOnGeometry g;
if(x is IOnGeometry){
g = (IOnGeometry) x;
} else {
//If impossible to cast, probably this is not a document object anyways
Print("This object type does not cast to IOnGeometry");
return;
}
//A document interator will go through all objects
MRhinoObjectIterator r = new MRhinoObjectIterator(doc, RMA.Rhino.IRhinoObjectIterator.object_state.normal_objects,
RMA.Rhino.IRhinoObjectIterator.object_category.active_objects);
//Loop inside the document
for(MRhinoObject o = r.First(); o != null; o = r.Next() ){
//Then checks if object types are same
if(o.Geometry().ObjectType() == g.ObjectType()){
//Then check all other internal defining variables, including position
if(o.Geometry().DataCRC(0) == g.DataCRC(0)){
//This is the object!
A = new MRhinoObjRef(o);
break;
}
}
}
- 0
- findRef
- a6f4ae6a-2bbb-4272-b733-69c089dbba64
- true
- true
- longest_list
-
158.08
195.56
64
62
-
178.08
197.56
23
58
-
178.08
197.56
- false
- true
- false
- 1
- 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
- Represents a list of generic data
- true
- false
- x
- 6dfdbc52-75dd-42af-9c8a-5fc419b4ef4d
- true
- true
- 1
- 0410b09e-9fe8-4cac-979a-25e563c88701
- 0
- true
-
160.08
197.56
18
58
-
160.08
197.56
18
58
-
160.08
197.56
- false
- true
- false
- baf1ff65-2c27-4b1e-8903-0aa6b3dec527
- true
- true
- 0
- 0
- 0
-
201.08
197.56
19
29
-
201.08
197.56
19
29
-
201.08
197.56
- false
- true
- false
- A
- c83df0d6-13ef-4e7f-951d-41472697010c
- true
- true
- 0
- 0
-
201.08
226.56
19
29
-
201.08
226.56
19
29
-
201.08
226.56
- false
- true
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 6ba7f599-bf3e-4de5-8dc9-48d20fa827d7
- true
- true
- 1
- c83df0d6-13ef-4e7f-951d-41472697010c
- 0
- Double click to edit panel content…
- true
- true
- 0
- false
-
0
0
0
255
-
255
250
90
255
-
299
192
172
98
-
299
192
172
98
-
299
192
- false
- true
- false