修复bug

This commit is contained in:
GG Z
2022-01-13 17:47:14 +08:00
parent 4ed403be52
commit 82f1e68485
3 changed files with 3 additions and 15 deletions

View File

@@ -142,13 +142,13 @@ namespace RookieStation.Drawing.ExecuteCmd
doc.Invoke(ts =>
{
var independentTags = new FilteredElementCollector(doc, doc.ActiveView.Id).OfClass(typeof(IndependentTag)).Cast<IndependentTag>().Where(tag => tag.TagText == "").ToList();
var independentTags = new FilteredElementCollector(doc, doc.ActiveView.Id).OfClass(typeof(IndependentTag)).Cast<IndependentTag>().Where(tag => tag.TagText == "" || tag.TagText == null).ToList();
foreach (var item in independentTags)
{
doc.Delete(item.Id);
}
doc.Delete(room.Id);
doc.Regenerate();
foreach (ModelCurve curve in modelCurveArray)
{
doc.Delete(curve.Id);

View File

@@ -51,7 +51,7 @@ namespace RookieStation.Finishes.Views
if (WallType != null && b && c)
{
WallHeight = wallheight;
WallHeight = wallheight;
WallBaseOffest = wallbase;
DialogResult = true;
}
}

View File

@@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestTools
{
public class Class1
{
}
}