修复bug

This commit is contained in:
GG Z
2022-01-21 10:40:46 +08:00
parent 82f1e68485
commit 05d16e23b5
6 changed files with 12 additions and 6 deletions

View File

@@ -161,7 +161,7 @@ namespace RookieStation.Drawing.ExecuteCmd
//throw; //throw;
} }
return Result.Succeeded; return Result.Succeeded;
}); }, "平面标注");
return Result.Succeeded; return Result.Succeeded;
} }

View File

@@ -48,7 +48,7 @@ namespace RookieStation.Drawing.ExecuteCmd
CreateLightAnnotations(doc, visableCol); CreateLightAnnotations(doc, visableCol);
CreateShelvesAnnotations(doc, visableCol); CreateShelvesAnnotations(doc, visableCol);
}, "创建标注"); }, "创建标注");
}); }, "平面标注");
//var cutids = SolidSolidCutUtils.GetCuttingSolids(wall); //var cutids = SolidSolidCutUtils.GetCuttingSolids(wall);
//uidoc.Selection.SetElementIds(insertids); //uidoc.Selection.SetElementIds(insertids);
//uidoc.Selection.SetElementIds(cutids); //uidoc.Selection.SetElementIds(cutids);

View File

@@ -114,7 +114,7 @@ namespace RookieStation.Drawing.ExecuteCmd
} }
} }
}, "再次调整标注"); }, "再次调整标注");
}); }, "立面标注");
} }
catch (Exception ex) catch (Exception ex)
{ {

View File

@@ -248,7 +248,6 @@ namespace RookieStation.Finishes.ExecuteCmd
{ {
JoinGeometryUtils.JoinGeometry(doc, wall, wallCreated); JoinGeometryUtils.JoinGeometry(doc, wall, wallCreated);
} }
//JoinGeometryUtils.JoinGeometry(doc, wall, wallCreated);
} }
catch (Exception ex) catch (Exception ex)
{ {
@@ -291,7 +290,6 @@ namespace RookieStation.Finishes.ExecuteCmd
{ {
JoinGeometryUtils.JoinGeometry(doc, wall, wallCreated); JoinGeometryUtils.JoinGeometry(doc, wall, wallCreated);
} }
//JoinGeometryUtils.JoinGeometry(doc, wall, wallCreated);
} }
catch (Exception ex) catch (Exception ex)
{ {

View File

@@ -883,6 +883,10 @@ namespace RookieStation.Utils
} }
tag.LeaderEndCondition = LeaderEndCondition.Attached; tag.LeaderEndCondition = LeaderEndCondition.Attached;
} }
if (baseTag.LeaderEndCondition == LeaderEndCondition.Free)
{
baseTag.LeaderEndCondition = LeaderEndCondition.Attached;
}
} }
/// <summary> /// <summary>
@@ -985,6 +989,11 @@ namespace RookieStation.Utils
tag.LeaderEndCondition = LeaderEndCondition.Attached; tag.LeaderEndCondition = LeaderEndCondition.Attached;
} }
} }
if (baseTag.LeaderEndCondition == LeaderEndCondition.Free)
{
baseTag.LeaderEndCondition = LeaderEndCondition.Attached;
}
} }
private static List<List<IndependentTag>> groups = new List<List<IndependentTag>>(); private static List<List<IndependentTag>> groups = new List<List<IndependentTag>>();

View File

@@ -59,7 +59,6 @@
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TestCmd.cs" /> <Compile Include="TestCmd.cs" />
</ItemGroup> </ItemGroup>