|
@@ -1,22 +1,14 @@
|
|
|
|
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.IO;
|
|
-using System.Linq;
|
|
|
|
-using System.Text;
|
|
|
|
-using System.Threading;
|
|
|
|
using Autodesk.Revit.Attributes;
|
|
using Autodesk.Revit.Attributes;
|
|
using Autodesk.Revit.DB;
|
|
using Autodesk.Revit.DB;
|
|
-using Autodesk.Revit.DB.Plumbing;
|
|
|
|
using Autodesk.Revit.UI;
|
|
using Autodesk.Revit.UI;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json;
|
|
-using SAGA.GplotDrawData;
|
|
|
|
using SAGA.GplotDrawData.View;
|
|
using SAGA.GplotDrawData.View;
|
|
using SAGA.GplotManage.UploadRelated;
|
|
using SAGA.GplotManage.UploadRelated;
|
|
using SAGA.GplotRelationComputerManage;
|
|
using SAGA.GplotRelationComputerManage;
|
|
-using SAGA.MBI.Common;
|
|
|
|
using SAGA.Models;
|
|
using SAGA.Models;
|
|
-using SAGA.RevitUtils;
|
|
|
|
-using SAGA.RevitUtils.Extends;
|
|
|
|
using SAGA.RevitUtils.Extends;
|
|
using SAGA.RevitUtils.Extends;
|
|
|
|
|
|
namespace SAGA.GplotManage
|
|
namespace SAGA.GplotManage
|
|
@@ -69,14 +61,9 @@ namespace SAGA.GplotManage
|
|
{
|
|
{
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
{
|
|
{
|
|
- //RelationTypeManager.GetSystemRelationTypeNames()
|
|
|
|
- List<string> useRelations = RelationTypeManager.GetSystemRelationTypeNames();//new List<string>() { "ChillWaterLoop" };
|
|
|
|
- SystemComputerHandler handler1 = new SystemComputerHandler();
|
|
|
|
- handler1.ComputerWidthCache(useRelations);
|
|
|
|
|
|
+ SystemComputerHandler.ComputerAllRelations();
|
|
WinSystem floorWin = new WinSystem(GplotShowType.ViewPlan);
|
|
WinSystem floorWin = new WinSystem(GplotShowType.ViewPlan);
|
|
floorWin.Show();
|
|
floorWin.Show();
|
|
- //var space = GplotFactory.Create(GraphTypeEnum.ChillWaterLoop);
|
|
|
|
- //space.Show(GplotShowType.Default);
|
|
|
|
return Result.Succeeded;
|
|
return Result.Succeeded;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -87,7 +74,7 @@ namespace SAGA.GplotManage
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
- /// 冷冻水计算--平面回水
|
|
|
|
|
|
+ /// 系统平面信息
|
|
/// </summary>
|
|
/// </summary>
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
@@ -95,13 +82,9 @@ namespace SAGA.GplotManage
|
|
{
|
|
{
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
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);
|
|
WinSystem floorWin = new WinSystem(GplotShowType.ViewPlan);
|
|
floorWin.Show();
|
|
floorWin.Show();
|
|
- //var space = GplotFactory.Create(GraphTypeEnum.ChillWaterLoop);
|
|
|
|
- //space.Show(GplotShowType.ViewPlan);
|
|
|
|
return Result.Succeeded;
|
|
return Result.Succeeded;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -112,7 +95,7 @@ namespace SAGA.GplotManage
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
- /// 冷冻水计算--立面
|
|
|
|
|
|
+ /// 系统立面信息
|
|
/// </summary>
|
|
/// </summary>
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
[Regeneration(RegenerationOption.Manual)]
|
|
@@ -120,13 +103,9 @@ namespace SAGA.GplotManage
|
|
{
|
|
{
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
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);
|
|
WinSystem verticalWin = new WinSystem(GplotShowType.VerticalPlan);
|
|
verticalWin.Show();
|
|
verticalWin.Show();
|
|
- //var space = GplotFactory.Create(GraphTypeEnum.ChillWaterLoop);
|
|
|
|
- //space.Show(GplotShowType.VerticalPlan);
|
|
|
|
return Result.Succeeded;
|
|
return Result.Succeeded;
|
|
|
|
|
|
}
|
|
}
|
|
@@ -138,6 +117,26 @@ namespace SAGA.GplotManage
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <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>
|
|
/// </summary>
|
|
[Transaction(TransactionMode.Manual)]
|
|
[Transaction(TransactionMode.Manual)]
|
|
@@ -227,31 +226,5 @@ namespace SAGA.GplotManage
|
|
return true;
|
|
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)
|
|
|
|
- {
|
|
|
|
- //var relationType = RelationTypeManager.GetRelationTypeItem("ChillWaterLoop");
|
|
|
|
- List<string> useRelations = new List<string>() { "ChillWaterLoop" };
|
|
|
|
- SystemComputerHandler handler1 = new SystemComputerHandler();
|
|
|
|
- handler1.ComputerWidthCache(useRelations);
|
|
|
|
- WinMachineRoom room = new WinMachineRoom();
|
|
|
|
- room.Show();
|
|
|
|
- return Result.Succeeded;
|
|
|
|
- RoomShowHandler handler = new RoomShowHandler("ChillWaterLoop");
|
|
|
|
- handler.Show();
|
|
|
|
- ;
|
|
|
|
- return Result.Succeeded;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public override bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|
|
|
- {
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
}
|
|
}
|