|
@@ -5,19 +5,12 @@ using System.Linq;
|
|
|
using Autodesk.Revit.Attributes;
|
|
|
using Autodesk.Revit.DB;
|
|
|
using Autodesk.Revit.UI;
|
|
|
-using Newtonsoft.Json;
|
|
|
-using Newtonsoft.Json.Linq;
|
|
|
-using NPOI.SS.UserModel;
|
|
|
-using NPOI.XSSF.UserModel;
|
|
|
-using SAGA.DotNetUtils.Data;
|
|
|
+using SAGA.DotNetUtils.Others;
|
|
|
using SAGA.GplotDrawData;
|
|
|
using SAGA.GplotDrawData.View;
|
|
|
using SAGA.GplotManage.RelationManager;
|
|
|
-using SAGA.GplotManage.TopologyApplication;
|
|
|
using SAGA.GplotRelationComputerManage;
|
|
|
-using SAGA.MBI.RequestData;
|
|
|
using SAGA.Models;
|
|
|
-using SAGA.RevitUtils;
|
|
|
using SAGA.RevitUtils.Extends;
|
|
|
|
|
|
namespace SAGA.GplotManage
|
|
@@ -31,8 +24,10 @@ namespace SAGA.GplotManage
|
|
|
{
|
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
|
{
|
|
|
- //var space = GplotFactory.Create(GraphTypeEnum.ElementSpNeighborhood);
|
|
|
- //space.Show(GplotShowType.ViewPlan);
|
|
|
+ if (!MessageShowBase.Confirm("确定要执行拓扑计算命令吗"))
|
|
|
+ {
|
|
|
+ return Result.Succeeded;
|
|
|
+ }
|
|
|
SpaceComputerHandler.ComputerAllRelations();
|
|
|
var win = new WinDrawSpace_Web(GplotShowType.ViewPlan);//
|
|
|
win.Show();
|
|
@@ -53,8 +48,10 @@ namespace SAGA.GplotManage
|
|
|
{
|
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
|
{
|
|
|
- //var space = GplotFactory.Create(GraphTypeEnum.ElementSpNeighborhood);
|
|
|
- //space.Show(GplotShowType.VerticalPlan);
|
|
|
+ if (!MessageShowBase.Confirm("确定要执行拓扑计算命令吗"))
|
|
|
+ {
|
|
|
+ return Result.Succeeded;
|
|
|
+ }
|
|
|
SpaceComputerHandler.ComputerAllRelations();
|
|
|
var win = new WinDrawSpace_Web(GplotShowType.VerticalPlan);
|
|
|
win.Show();
|
|
@@ -76,6 +73,10 @@ namespace SAGA.GplotManage
|
|
|
{
|
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
|
{
|
|
|
+ if (!MessageShowBase.Confirm("确定要执行拓扑计算命令吗"))
|
|
|
+ {
|
|
|
+ return Result.Succeeded;
|
|
|
+ }
|
|
|
SystemComputerHandler.ComputerAllRelations();
|
|
|
WinSystem floorWin = new WinSystem(GplotShowType.ViewPlan);
|
|
|
floorWin.Show();
|
|
@@ -97,6 +98,10 @@ namespace SAGA.GplotManage
|
|
|
{
|
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
|
{
|
|
|
+ if (!MessageShowBase.Confirm("确定要执行拓扑计算命令吗"))
|
|
|
+ {
|
|
|
+ return Result.Succeeded;
|
|
|
+ }
|
|
|
SystemComputerHandler.ComputerAllRelations();
|
|
|
WinSystem floorWin = new WinSystem(GplotShowType.ViewPlan);
|
|
|
floorWin.Show();
|
|
@@ -118,6 +123,10 @@ namespace SAGA.GplotManage
|
|
|
{
|
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
|
{
|
|
|
+ if (!MessageShowBase.Confirm("确定要执行拓扑计算命令吗"))
|
|
|
+ {
|
|
|
+ return Result.Succeeded;
|
|
|
+ }
|
|
|
SystemComputerHandler.ComputerAllRelations();
|
|
|
WinSystem verticalWin = new WinSystem(GplotShowType.VerticalPlan);
|
|
|
verticalWin.Show();
|
|
@@ -140,6 +149,10 @@ namespace SAGA.GplotManage
|
|
|
{
|
|
|
public override Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
|
|
|
{
|
|
|
+ if (!MessageShowBase.Confirm("确定要执行拓扑计算命令吗"))
|
|
|
+ {
|
|
|
+ return Result.Succeeded;
|
|
|
+ }
|
|
|
SystemComputerHandler.ComputerAllRelations();
|
|
|
WinMachineRoom room = new WinMachineRoom();
|
|
|
room.Show();
|