Example #1
0
        internal static void NxSetInteger(UIBlock block, string propertyName, int value)
        {
            PropertyList properties = block.GetProperties();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            double[] doubleVector = properties.GetDoubleVector(propertyName);
            properties.Dispose();
            return(doubleVector);
        }
Example #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();
        }
Example #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();
        }
Example #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);
        }
Example #22
0
        internal static void NxSetLogical(UIBlock block, string propertyName, bool value)
        {
            PropertyList properties = block.GetProperties();

            properties.GetPropertyNames();
            properties.SetLogical(propertyName, value);
            properties.Dispose();
        }
Example #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();
     }
 }
Example #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();
        }
Example #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);
        }
Example #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();
     }
 }
Example #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();
        }
Example #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();
        }
Example #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();
        }
Example #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();
        }