Пример #1
0
        internal static void NxSetInteger(UIBlock block, string propertyName, int value)
        {
            PropertyList properties = block.GetProperties();

            properties.SetInteger(propertyName, value);
            properties.Dispose();
        }
Пример #2
0
        internal static void NxSetEnumMembers(UIBlock block, string propertyName, string[] value)
        {
            PropertyList properties = block.GetProperties();

            properties.SetEnumMembers(propertyName, value);
            properties.Dispose();
        }
Пример #3
0
        internal static void NxSetDouble(UIBlock block, string propertyName, double value)
        {
            PropertyList properties = block.GetProperties();

            properties.SetDouble(propertyName, value);
            properties.Dispose();
        }
Пример #4
0
        internal static string[] NxGetStringArray(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();

            string[] strings = properties.GetStrings(propertyName);
            properties.Dispose();
            return(strings);
        }
Пример #5
0
        internal static Vector NxGetVector(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();
            Vector       vector     = properties.GetVector(propertyName);

            properties.Dispose();
            return(vector);
        }
Пример #6
0
        internal static double NxGetDouble(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();
            double       num        = properties.GetDouble(propertyName);

            properties.Dispose();
            return(num);
        }
Пример #7
0
        internal static string NxGetString(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();
            string       str        = properties.GetString(propertyName);

            properties.Dispose();
            return(str);
        }
Пример #8
0
        internal static Position NxGetPoint(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();
            Position     point      = properties.GetPoint(propertyName);

            properties.Dispose();
            return(point);
        }
Пример #9
0
        internal static TaggedObject[] NxGetObjectArray(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();

            TaggedObject[] taggedObjectVector = properties.GetTaggedObjectVector(propertyName);
            properties.Dispose();
            return(taggedObjectVector);
        }
Пример #10
0
        internal static TaggedObject NxGetObject(UIBlock block, string propertyName)
        {
            PropertyList properties   = block.GetProperties();
            TaggedObject taggedObject = properties.GetTaggedObject(propertyName);

            properties.Dispose();
            return(taggedObject);
        }
Пример #11
0
        internal static bool NxGetLogical(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();
            bool         logical    = properties.GetLogical(propertyName);

            properties.Dispose();
            return(logical);
        }
Пример #12
0
        internal static int NxGetInteger(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();
            int          integer    = properties.GetInteger(propertyName);

            properties.Dispose();
            return(integer);
        }
Пример #13
0
        internal static int[] NxGetIntegerArray(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();

            int[] integerVector = properties.GetIntegerVector(propertyName);
            properties.Dispose();
            return(integerVector);
        }
Пример #14
0
        internal static string NxGetFile(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();
            string       file       = properties.GetFile(propertyName);

            properties.Dispose();
            return(file);
        }
Пример #15
0
        internal static string[] NxGetEnumMembers(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();

            string[] enumMembers = properties.GetEnumMembers(propertyName);
            properties.Dispose();
            return(enumMembers);
        }
Пример #16
0
        internal static string NxGetEnumAsString(UIBlock block, string propertyName)
        {
            PropertyList properties   = block.GetProperties();
            string       enumAsString = properties.GetEnumAsString(propertyName);

            properties.Dispose();
            return(enumAsString);
        }
Пример #17
0
        internal static int NxGetEnum(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();
            int          num        = properties.GetEnum(propertyName);

            properties.Dispose();
            return(num);
        }
Пример #18
0
        internal static double[] NxGetDoubleArray(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();

            double[] doubleVector = properties.GetDoubleVector(propertyName);
            properties.Dispose();
            return(doubleVector);
        }
Пример #19
0
        internal static void NxSetVector(UIBlock block, string propertyName, Vector value)
        {
            PropertyList properties = block.GetProperties();
            Vector3d     vector     = new Vector3d(value.X, value.Y, value.Z);

            properties.SetVector(propertyName, vector);
            properties.Dispose();
        }
Пример #20
0
        internal static void NxSetPoint(UIBlock block, string propertyName, Position value)
        {
            PropertyList properties = block.GetProperties();
            Point3d      pointSc    = new Point3d(value.X, value.Y, value.Z);

            properties.SetPoint(propertyName, pointSc);
            properties.Dispose();
        }
Пример #21
0
        internal static int NxGetBits(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();
            int          num2       = SnapPointsStateSet.Chop17(properties.GetBits(propertyName));

            properties.Dispose();
            return(num2);
        }
Пример #22
0
        internal static void NxSetLogical(UIBlock block, string propertyName, bool value)
        {
            PropertyList properties = block.GetProperties();

            properties.GetPropertyNames();
            properties.SetLogical(propertyName, value);
            properties.Dispose();
        }
Пример #23
0
 internal static void NxSetString(UIBlock block, string propertyName, string value)
 {
     if (propertyName != "BlockID")
     {
         PropertyList properties = block.GetProperties();
         properties.SetString(propertyName, value);
         properties.Dispose();
     }
 }
Пример #24
0
        internal static void NxSetObject(UIBlock block, string propertyName, TaggedObject value)
        {
            PropertyList properties = block.GetProperties();

            if (Snap.NX.NXObject.IsAlive(value))
            {
                properties.SetTaggedObject(propertyName, value);
            }
            properties.Dispose();
        }
Пример #25
0
        internal static int[,] NxGetIntegerMatrix(UIBlock block, string propertyName)
        {
            int          num;
            int          num2;
            PropertyList properties = block.GetProperties();

            int[,] numArray2 = Snap.Math.MatrixMath.VectorToMatrix(properties.GetIntegerMatrix(propertyName, out num, out num2), num, num2);
            properties.Dispose();
            return(numArray2);
        }
Пример #26
0
 internal static void NxSetFilter(UIBlock block, string propertyName, Selection.MaskTriple[] value)
 {
     if (value != null)
     {
         PropertyList properties = block.GetProperties();
         Selection.SelectionAction clearAndEnableSpecific = Selection.SelectionAction.ClearAndEnableSpecific;
         properties.SetSelectionFilter("SelectionFilter", clearAndEnableSpecific, value);
         properties.Dispose();
     }
 }
Пример #27
0
        internal static void NxSetStringArray(UIBlock block, string propertyName, string[] value)
        {
            PropertyList properties = block.GetProperties();

            if (value == null)
            {
                value = new string[0];
            }
            properties.SetStrings(propertyName, value);
            properties.Dispose();
        }
Пример #28
0
        internal static void NxSetIntegerArray(UIBlock block, string propertyName, int[] value)
        {
            PropertyList properties = block.GetProperties();

            if (value == null)
            {
                value = new int[0];
            }
            properties.SetIntegerVector(propertyName, value);
            properties.Dispose();
        }
Пример #29
0
        internal static void NxSetDoubleArray(UIBlock block, string propertyName, double[] value)
        {
            PropertyList properties = block.GetProperties();

            if (value == null)
            {
                value = new double[0];
            }
            properties.SetDoubleVector(propertyName, value);
            properties.Dispose();
        }
Пример #30
0
        internal static void NxSetBits(UIBlock block, string propertyName, int value)
        {
            PropertyList properties = block.GetProperties();
            int          num2       = SnapPointsStateSet.Chop17(properties.GetBits(propertyName));
            int          bitsSc     = SnapPointsStateSet.Chop17(value);

            if (bitsSc != num2)
            {
                properties.SetBits(propertyName, bitsSc);
            }
            properties.Dispose();
        }