private void Initialize() { FileEGI fileEGI = new FileEGI(this.CurrentAppli); this.CurrentFileEGI = fileEGI.Initialize(); if (this.CurrentFileEGI != null) { this.SetSceneDimensions(); if (manageCatalog == null) { manageCatalog = new ManageCatalog(this.CurrentAppli); } if (globalSegment == null) { globalSegment = new GlobalSegment(this.CurrentFileEGI); } string version = globalSegment.GetVersion(); SetSceneReference(version); this.ClearAllSectionsList(); this.SetAllSectionsList(); } }
private void MoveArticlePerRepere(string shape) { GlobalSegment globalSegment = new GlobalSegment(this._currentFileEGI); string version = globalSegment.GetVersion(); _plugin.CurrentAppli.SceneComponent.SetReferenceFromObject(this.Article, false); if (shape == ItemValue.Shape_27_AngleWithFiler && this.Article.Handing == _plugin.CurrentAppli.GetTranslatedText("G")) { _article.PositionY -= this.Measure_B; _article.AngleOXY += 180; } else if (shape == ItemValue.Shape_20_CornerOrFiler) { _article.AngleOXY += 270; } else { switch (version) { case ItemValue.V1_50: //DISCAC _article.PositionX += this.Measure_B; _article.AngleOXY += 180; break; case ItemValue.V1_51: //FBD et Bauformat _article.PositionX += this.Measure_B; _article.AngleOXY += 180; break; default: _article.PositionX += this.Measure_B; _article.AngleOXY += 180; break; } } }