Grasshopper API
GH_IReaderFindChunk Method (String, Int32) |
Finds the first chunk in the list that matches the given name and index.
Only chunks with index qualifiers are considered.
Namespace: GH_IO.Serialization
Assembly: GH_IO (in GH_IO.dll)

GH_IReader FindChunk( string name, int index )
Function FindChunk ( name As String, index As Integer ) As GH_IReader
Parameters
- name
- Type: SystemString
Name of chunk to search for. - index
- Type: SystemInt32
Index of chunk to search for. If less than zero, FindChunk(string chunk_name) is called instead.
Return Value
Type: GH_IReaderThe child chunk that matches the given name and index, or null of no matching chunk could be found.
