private string GetDocDirDirectory() { KD.Config.IniFile iniFile = new KD.Config.IniFile(Path.Combine(this.CurrentAppli.SpaceIniFilePath)); string docDir = iniFile.GetStringValue("Remote", "DocDir"); if (string.IsNullOrEmpty(docDir)) { docDir = iniFile.GetStringValue("Local", "DocDir"); if (string.IsNullOrEmpty(docDir)) { docDir = iniFile.GetStringValue("InSitu", "DocDir"); } } return(docDir); }
private void SetMembers() { _manufacturer = this._currentFileEGI.GetStringValue(_section, ItemKey.Manufacturer); _name = this._currentFileEGI.GetStringValue(_section, ItemKey.Name); _commentName = this._currentFileEGI.GetStringValue(_section, SegmentFormat.CommentChar + ItemKey.Name); _constructionType = this._currentFileEGI.GetStringValue(_section, ItemKey.ConstructionType); _hinge = this._currentFileEGI.GetStringValue(_section, ItemKey.Hinge); if (String.IsNullOrEmpty(this.Hinge)) { _hinge = _constructionType; } switch (this.Hinge) { case ItemValue.Left_Hinge: _hingeType = 1; break; case ItemValue.Right_Hinge: _hingeType = 2; break; default: _hingeType = 0; break; } _refNo = this._currentFileEGI.GetStringValue(_section, ItemKey.RefNo); _refPos = this._currentFileEGI.GetStringValue(_section, ItemKey.RefPos); _refPosComment = this._currentFileEGI.GetStringValue(_section, SegmentFormat.CommentChar + ItemKey.RefPos); _refPntX = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.RefPntX)); _refPntY = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.RefPntY)); _refPntZ = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.RefPntZ)); _measure_B = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.Measure_B)); _dimX = _measure_B; _measure_T = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.Measure_T));// + ArticleSegment.FrontDepth; _dimY = _measure_T; _measure_H = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.Measure_H)); _dimZ = _measure_H; _angleZ = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.AngleZ)); _angZ = _angleZ; _measure_B1 = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.Measure_B1)); _measure_B2 = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.Measure_B2)); _measure_B3 = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.Measure_B3)); _measure_T1 = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.Measure_T1));// + ArticleSegment.FrontDepth; _measure_BE = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.Measure_BE)); _measure_TE = KD.StringTools.Convert.ToDouble(this._currentFileEGI.GetStringValue(_section, ItemKey.Measure_TE)); _shape = _currentFileEGI.GetStringValue(_section, ItemKey.Shape); _polyType = _currentFileEGI.GetStringValue(_section, ItemKey.PolyType); _polyCounter = _currentFileEGI.GetStringValue(_section, ItemKey.PolyCounter); }
private void SetMembers() { _refPntX = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntX)); _refPntY = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntY)); _refPntZ = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntZ)); _width = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.Width)); _depth = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.Depth)); _height = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.Height)); _angleZ = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.AngleZ)); _reference = normalRecessRef; _wallRefNo = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.WallRefNo)); _refPntXRel = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntXRel)); _refPntYRel = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntYRel)); _refPntZRel = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntZRel)); }
private void SetMembers() { _refPntX = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntX)); _refPntY = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntY)); _refPntZ = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntZ)); _width = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.Width)); _depth = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.Depth)); _height = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.Height)); _angleZ = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.AngleZ)); _hinge = _currentFileEGI.GetStringValue(_section, ItemKey.Hinge); _hingeType = this.SetHingeType(); _opening = _currentFileEGI.GetStringValue(_section, ItemKey.Opening); _reference = this.SetReference();; _wallRefNo = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.WallRefNo)); _refPntXRel = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntXRel)); _refPntYRel = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntYRel)); _refPntZRel = KD.StringTools.Convert.ToDouble(_currentFileEGI.GetStringValue(_section, ItemKey.RefPntZRel)); }