Пример #1
0
        private static object BuildValueFromGroup(List <object> groupedObjects)
        {
            if (groupedObjects.Count == 1)
            {
                return(groupedObjects[0]);
            }
            object result;

            try
            {
                if (groupedObjects.Count == 2)
                {
                    Point2d point2d = LspUtil.BuildPoint2d(groupedObjects);
                    result = point2d;
                }
                else if (groupedObjects.Count == 3)
                {
                    Point3d point3d = LspUtil.BuildPoint3d(groupedObjects);
                    result = point3d;
                }
                else
                {
                    result = null;
                }
            }
            catch
            {
                result = null;
            }
            return(result);
        }