|
@@ -1,15 +1,10 @@
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
using System.IO;
|
|
|
-using System.Linq;
|
|
|
-using System.Text;
|
|
|
-using System.Threading;
|
|
|
using Autodesk.Revit.Attributes;
|
|
|
using Autodesk.Revit.DB;
|
|
|
-using Autodesk.Revit.DB.Plumbing;
|
|
|
using Autodesk.Revit.UI;
|
|
|
using Newtonsoft.Json;
|
|
|
-using SAGA.GplotDrawData;
|
|
|
using SAGA.GplotDrawData.View;
|
|
|
using SAGA.GplotManage.UploadRelated;
|
|
|
using SAGA.GplotRelationComputerManage;
|
|
@@ -66,9 +61,7 @@ namespace SAGA.GplotManage
|
|
|
{
|
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
|
{
|
|
|
- List<string> useRelations = RelationTypeManager.GetSystemRelationTypeNames();
|
|
|
- SystemComputerHandler handler1 = new SystemComputerHandler();
|
|
|
- handler1.ComputerWidthCache(useRelations);
|
|
|
+ SystemComputerHandler.ComputerAllRelations();
|
|
|
WinSystem floorWin = new WinSystem(GplotShowType.ViewPlan);
|
|
|
floorWin.Show();
|
|
|
return Result.Succeeded;
|
|
@@ -81,7 +74,7 @@ namespace SAGA.GplotManage
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 冷冻水计算--平面回水
|
|
|
+ /// 系统平面信息
|
|
|
/// </summary>
|
|
|
[Transaction(TransactionMode.Manual)]
|
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
@@ -89,9 +82,7 @@ namespace SAGA.GplotManage
|
|
|
{
|
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
|
{
|
|
|
- List<string> useRelations = RelationTypeManager.GetSystemRelationTypeNames();
|
|
|
- SystemComputerHandler handler1 = new SystemComputerHandler();
|
|
|
- handler1.ComputerWidthCache(useRelations);
|
|
|
+ SystemComputerHandler.ComputerAllRelations();
|
|
|
WinSystem floorWin = new WinSystem(GplotShowType.ViewPlan);
|
|
|
floorWin.Show();
|
|
|
return Result.Succeeded;
|
|
@@ -104,7 +95,7 @@ namespace SAGA.GplotManage
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 冷冻水计算--立面
|
|
|
+ /// 系统立面信息
|
|
|
/// </summary>
|
|
|
[Transaction(TransactionMode.Manual)]
|
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
@@ -112,9 +103,7 @@ namespace SAGA.GplotManage
|
|
|
{
|
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
|
{
|
|
|
- List<string> useRelations = RelationTypeManager.GetSystemRelationTypeNames();
|
|
|
- SystemComputerHandler handler1 = new SystemComputerHandler();
|
|
|
- handler1.ComputerWidthCache(useRelations);
|
|
|
+ SystemComputerHandler.ComputerAllRelations();
|
|
|
WinSystem verticalWin = new WinSystem(GplotShowType.VerticalPlan);
|
|
|
verticalWin.Show();
|
|
|
return Result.Succeeded;
|
|
@@ -128,6 +117,26 @@ namespace SAGA.GplotManage
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
+ /// 机房信息
|
|
|
+ /// </summary>
|
|
|
+ [Transaction(TransactionMode.Manual)]
|
|
|
+ [Regeneration(RegenerationOption.Manual)]
|
|
|
+ public class ChillWaterLoopRoom : ExternalCommand
|
|
|
+ {
|
|
|
+ public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
|
+ {
|
|
|
+ SystemComputerHandler.ComputerAllRelations();
|
|
|
+ WinMachineRoom room = new WinMachineRoom();
|
|
|
+ room.Show();
|
|
|
+ return Result.Succeeded;
|
|
|
+ }
|
|
|
+
|
|
|
+ public override bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|
|
+ {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
/// 拓扑图上传测试
|
|
|
/// </summary>
|
|
|
[Transaction(TransactionMode.Manual)]
|
|
@@ -217,27 +226,5 @@ namespace SAGA.GplotManage
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
- /// <summary>
|
|
|
- /// 冷战测试
|
|
|
- /// </summary>
|
|
|
- [Transaction(TransactionMode.Manual)]
|
|
|
- [Regeneration(RegenerationOption.Manual)]
|
|
|
- public class ChillWaterLoopRoom : ExternalCommand
|
|
|
- {
|
|
|
- public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
|
- {
|
|
|
- // List<string> useRelations = new List<string>() { "ChillWaterLoop" };
|
|
|
- List<string> useRelations = RelationTypeManager.GetSystemRelationTypeNames();
|
|
|
- SystemComputerHandler handler1 = new SystemComputerHandler();
|
|
|
- handler1.ComputerWidthCache(useRelations);
|
|
|
- WinMachineRoom room = new WinMachineRoom();
|
|
|
- room.Show();
|
|
|
- return Result.Succeeded;
|
|
|
- }
|
|
|
-
|
|
|
- public override bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|
|
- {
|
|
|
- return true;
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
}
|