internal static void NxSetInteger(UIBlock block, string propertyName, int value) { PropertyList properties = block.GetProperties(); properties.SetInteger(propertyName, value); properties.Dispose(); }
internal static void NxSetEnumMembers(UIBlock block, string propertyName, string[] value) { PropertyList properties = block.GetProperties(); properties.SetEnumMembers(propertyName, value); properties.Dispose(); }
internal static void NxSetDouble(UIBlock block, string propertyName, double value) { PropertyList properties = block.GetProperties(); properties.SetDouble(propertyName, value); properties.Dispose(); }
internal static string[] NxGetStringArray(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); string[] strings = properties.GetStrings(propertyName); properties.Dispose(); return(strings); }
internal static Vector NxGetVector(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); Vector vector = properties.GetVector(propertyName); properties.Dispose(); return(vector); }
internal static double NxGetDouble(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); double num = properties.GetDouble(propertyName); properties.Dispose(); return(num); }
internal static string NxGetString(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); string str = properties.GetString(propertyName); properties.Dispose(); return(str); }
internal static Position NxGetPoint(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); Position point = properties.GetPoint(propertyName); properties.Dispose(); return(point); }
internal static TaggedObject[] NxGetObjectArray(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); TaggedObject[] taggedObjectVector = properties.GetTaggedObjectVector(propertyName); properties.Dispose(); return(taggedObjectVector); }
internal static TaggedObject NxGetObject(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); TaggedObject taggedObject = properties.GetTaggedObject(propertyName); properties.Dispose(); return(taggedObject); }
internal static bool NxGetLogical(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); bool logical = properties.GetLogical(propertyName); properties.Dispose(); return(logical); }
internal static int NxGetInteger(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); int integer = properties.GetInteger(propertyName); properties.Dispose(); return(integer); }
internal static int[] NxGetIntegerArray(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); int[] integerVector = properties.GetIntegerVector(propertyName); properties.Dispose(); return(integerVector); }
internal static string NxGetFile(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); string file = properties.GetFile(propertyName); properties.Dispose(); return(file); }
internal static string[] NxGetEnumMembers(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); string[] enumMembers = properties.GetEnumMembers(propertyName); properties.Dispose(); return(enumMembers); }
internal static string NxGetEnumAsString(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); string enumAsString = properties.GetEnumAsString(propertyName); properties.Dispose(); return(enumAsString); }
internal static int NxGetEnum(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); int num = properties.GetEnum(propertyName); properties.Dispose(); return(num); }
internal static double[] NxGetDoubleArray(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); double[] doubleVector = properties.GetDoubleVector(propertyName); properties.Dispose(); return(doubleVector); }
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(); }
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(); }
internal static int NxGetBits(UIBlock block, string propertyName) { PropertyList properties = block.GetProperties(); int num2 = SnapPointsStateSet.Chop17(properties.GetBits(propertyName)); properties.Dispose(); return(num2); }
internal static void NxSetLogical(UIBlock block, string propertyName, bool value) { PropertyList properties = block.GetProperties(); properties.GetPropertyNames(); properties.SetLogical(propertyName, value); properties.Dispose(); }
internal static void NxSetString(UIBlock block, string propertyName, string value) { if (propertyName != "BlockID") { PropertyList properties = block.GetProperties(); properties.SetString(propertyName, value); properties.Dispose(); } }
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(); }
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); }
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(); } }
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(); }
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(); }
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(); }
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(); }