Пример #1
0
        internal void getDimSetPoints()
        {
            TSD.DrawingObjectEnumerator dima = _set.GetObjects();

            while (dima.MoveNext())
            {
                TSD.StraightDimension line = dima.Current as TSD.StraightDimension;

                if (_first == null)
                {
                    _first = line;
                }

                addUniquePoints(line.StartPoint);
                addUniquePoints(line.EndPoint);
            }
        }
Пример #2
0
        public static double getHighestScale(TSD.Drawing currentDrawing)
        {
            double highestScale = 0;

            TSD.DrawingObjectEnumerator ViewEnum = currentDrawing.GetSheet().GetViews();

            while (ViewEnum.MoveNext())
            {
                if (ViewEnum.Current is TSD.View)
                {
                    TSD.View currentView = ViewEnum.Current as TSD.View;

                    if (isView2D(currentView))
                    {
                        double currentScale = currentView.Attributes.Scale;
                        highestScale = Math.Max(currentScale, highestScale);
                    }
                }
            }

            MainWindow._form.consoleOutput("EXPORT - Scale: " + highestScale.ToString(), "L2");

            return(highestScale);
        }