Exemplo n.º 1
0
        private void method_5(IPoint point, IFeature feature)
        {
            IPoint point2;
            IPoint point3;
            double num;

            this.method_6(point, feature, out point2, out point3, out num);
            IPoint           point4          = point2;
            IPoint           point5          = point3;
            object           missing         = Type.Missing;
            IPointCollection pointCollection = new Polyline();

            pointCollection.AddPoint(point4, ref missing, ref missing);
            pointCollection.AddPoint(point5, ref missing, ref missing);
            BaseFun  baseFun     = new BaseFun(pPipeCfg);
            IElement lineElement = baseFun.GetLineElement((IPolyline)pointCollection);

            ((IGraphicsContainer)this.m_iApp.ActiveView).AddElement(lineElement, 0);
            string sNoteText = string.Format("L = {0:f2}m", ((IPolyline)pointCollection).Length);

            baseFun.NoteOrientationCenterText(this.m_iApp.ActiveView, (IPolyline)pointCollection, sNoteText);
        }