Verifies that a layer is a parent of another layer.
Rhino.IsLayerParentOf (strLayer, strTest)
strLayer |
Required. String. The name or identifier of the layer to test against. |
strTest |
Required. String. The name or identifier of the layer to test. |
Boolean |
True if strTest is a parent of strLayer. False otherwise. |
Null |
On error. |
Rhino.AddLayer "MyLayer1"
Rhino.AddLayer "MyLayer2",,,,"MyLayer1"
Rhino.AddLayer "MyLayer3",,,,"MyLayer2"
MsgBox Rhino.IsLayerParentOf("MyLayer3", "MyLayer1")