// RECRUSIVE SET ALL PO FLAGS
    public static void setFlagOfPO_toUpstream(AXParametricObject po, AXStaticEditorFlags flag)
    {
        po.axStaticEditorFlags = po.axStaticEditorFlags | flag;

        foreach (AXParameter input in po.getAllInputMeshParameters())
        {
            if (input.DependsOn != null && input.DependsOn.parametricObject.is3D())
            {
                setFlagOfPO_toUpstream(input.DependsOn.parametricObject, flag);
            }
        }
    }