| | |
| | | using DevExpress.Utils.Extensions;
|
| | | using HStation.RevitDev.Model.ModelEnum;
|
| | | using HStation.RevitDev.RevitDataExport.Common;
|
| | | using HStation.RevitDev.RevitDataExport.Entity;
|
| | | using HStation.RevitDev.RevitDataExport.Service;
|
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Collections.ObjectModel;
|
| | | using System.Linq;
|
| | |
|
| | | namespace HStation.RevitDev.RevitDataExport.Utility
|
| | |
| | | bool isPumpSystemElement = false;
|
| | | foreach (var id in addedIds)
|
| | | {
|
| | | //手动布置的构件如消火栓、热换器等基本不能自动加入到系统中,能自动布置并连接
|
| | | //系统的基本都是三通、四通、弯头、过渡件、管帽这些
|
| | | if (IsConnectedWithPumpSystem(doc, id))
|
| | | {
|
| | | isPumpSystemElement = true;
|
| | |
| | |
|
| | | private static void AddAutoCreated(FamilyInstance fi)
|
| | | {
|
| | | if (fi.IsWanTou())
|
| | | if (fi.IsPipeHat())
|
| | | {
|
| | | GlobalResource.RevitModels.Add(fi, RevitType.RFT_Blocker);
|
| | | }
|
| | | else if (fi.IsWanTou())
|
| | | {
|
| | | GlobalResource.RevitModels.Add(fi, RevitType.RFT_Elbow);
|
| | | }
|
| | |
| | | if (!GlobalResource.CurrentDocument.IsValidObject || doc.GetHashCode() != GlobalResource.CurrentDocument.GetHashCode())
|
| | | {
|
| | | GlobalResource.CurrentDocument = doc;
|
| | | GlobalResource.RevitModels = new Dictionary<RevitType, List<string>>();
|
| | | //GlobalResource.RevitModels = new List<Tuple<string, Dictionary<RevitType, List<string>>>>();
|
| | | }
|
| | | AddUnhandledElements();
|
| | | }
|