Test another path to see if it is an ancestor of this path.
For a path to be considered an ancestor, it must share the initial dimensions.
Namespace:
Grasshopper.Kernel.Data
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public bool IsAncestor(
GH_Path potential_ancestor,
ref int additional_generations
)
Public Function IsAncestor (
potential_ancestor As GH_Path,
ByRef additional_generations As Integer
) As Boolean
Parameters
- potential_ancestor
- Type: Grasshopper.Kernel.DataGH_Path
Parental path to test. - additional_generations
- Type: SystemInt32
This value will hold
the number of generations between parent and child path.
Return Value
Type:
BooleanTrue if other overlaps completely with this path while
being at least one element shorter.
See Also