.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
DescriptionReturns a handle to the parent container object of the referenced object. If the object does not have a container, a handle to the objects' layer will be returned.
h :HANDLE) : HANDLE;
def vs.GetParent(h): return HANDLE
h HANDLE Handle to object.
Return ValueReturns a HANDLE to the parent object or layer.
RemarksThis is from the SDK documentation for ParentObject():
Returns the "parent" of h, that is, h's immediate owner. For most objects, this is the layer they are in; for an object in a container, it is its enclosing container; for a layer, it is the drawing header. The drawing header and any symbol definitions which are not in any folder have no parent; calling ParentObject on them will return nil.