Example #1
0
        public static void GetOneFloor()
        {
            var entityId = Interaction.GetEntity("选择一个机房");
            var entity   = entityId.QOpenForRead <Entity>();

            GetCADOtherCommands.GetOneFloorWithRoot(entity.Layer, "");
            return;
        }
Example #2
0
        public static void GetParkInfo()
        {
            string parkName = Interaction.GetString("输入厂区名称(默认:厂区A)");

            if (string.IsNullOrEmpty(parkName))
            {
                parkName = "厂区A";
            }
            GetCADOtherCommands.GetParkInfoEx(parkName, 0);
        }
Example #3
0
        public static void GetParkInfoEx()
        {
            string parkName = Interaction.GetString("输入厂区名称(默认:厂区A)");

            if (string.IsNullOrEmpty(parkName))
            {
                parkName = "厂区A";
            }
            int count = (int)Interaction.GetValue("输入最大大楼楼层(默认:10)", 10);

            GetCADOtherCommands.GetParkInfoEx(parkName, count);
        }
Example #4
0
        public static void GetAllFloors()
        {
            string buildingName = Interaction.GetString("输入大楼名称(默认:大楼X)");

            if (string.IsNullOrEmpty(buildingName))
            {
                buildingName = "大楼X";
            }
            int count = (int)Interaction.GetValue("输入大楼楼层(默认:5)", 5);

            GetCADOtherCommands.GetAllFloors(buildingName, count, "");
        }
Example #5
0
        public static void GetOneFloorWithRoot()
        {
            string txt = Interaction.GetString("输入厂区名称(默认:厂区A)");

            if (string.IsNullOrEmpty(txt))
            {
                txt = "厂区A";
            }
            var entityId = Interaction.GetEntity("选择一个机房(用来获取楼层的Layer)");
            var entity   = entityId.QOpenForRead <Entity>();

            GetCADOtherCommands.GetOneFloorWithRoot(entity.Layer, txt);
            return;
        }
Example #6
0
        public static void GetBuildInfo()
        {
            //string txt = Interaction.GetString("输入当前图层名称");
            //if (string.IsNullOrEmpty(txt))
            //{
            //    txt = "厂区";
            //}
            var entityId = Interaction.GetEntity("选择一个大楼");
            var entity   = entityId.QOpenForRead <Entity>();

            GetCADOtherCommands.GetParkBuild(entity.Layer);

            return;
        }
Example #7
0
 public static void GetLayerInfo()
 {
     GetCADOtherCommands.GetAllShapeByLayer();
     return;
 }
Example #8
0
 public static void GetShapeInfos()
 {
     GetCADOtherCommands.GetAllShapeByManual();
 }
Example #9
0
 public static void GetParkInfoEx()
 {
     GetCADOtherCommands.GetParkInfoEx();
 }
Example #10
0
        public static void GetBuildInfo()
        {
            GetCADOtherCommands.GetParkBuild("厂区");

            return;
        }