Click or drag to resize

GH_PathIsAncestor Method

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
)

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: Boolean
True if other overlaps completely with this path while being at least one element shorter.
See Also