private void Load() { var nod = new DictNOD("InsertBlocksBeside", true); Orient = (BesideOrientation)nod.Load("Orient", (int)BesideOrientation.Столбик); Filter = nod.Load("Filter", ""); }
private void loadStartLevels() { try { DictNOD nod = new DictNOD("GP-HosizontalElevations"); curElev = nod.Load("StartElevation", HorizontalElevationOptions.Instance.StartElevation); stepElev = nod.Load("StepElevation", HorizontalElevationOptions.Instance.StepElevation); using (var reg = new AcadLib.Registry.RegExt("HosizontalElevations")) { var colorString = reg.Load("Color", ""); try { color = GetColor(colorString); } catch (System.Exception ex) { Logger.Log.Error(ex, "HorizontalElevationService.loadStartLevels()"); color = Color.FromColorIndex(ColorMethod.ByAci, 3); } } } catch (System.Exception ex) { Logger.Log.Error(ex, "HorizontalElevationService.loadStartLevels()"); } }
void LoadFromNOD() { var nod = new DictNOD(DictName, true); NormAreaPerPerson = nod.Load(KeyNormAreaPepPerson, 30); NormSchoolPlace = nod.Load(KeyNormSchoolPlace, 124); NormKinderPlace = nod.Load(KeyNormKinderPlace, 54); NormParking = nod.Load(KeyNormParking, 350); NormAreaBKFNPerPerson = nod.Load(KeyNormParkingAreaPerPerson, 20); NormParkingPlaceFor100 = nod.Load(KeyNormParkingPlaceFor100, 5); TextStyleItalic = nod.Load(KeyTextStyleItalic, false); }