大量更新

This commit is contained in:
GG Z
2025-12-23 21:35:54 +08:00
parent cd4733ee01
commit ceccab9abb
211 changed files with 9439 additions and 6578 deletions

View File

@@ -232,7 +232,6 @@ public static class RoomExtensions
BuiltInCategory.OST_GenericModel,
new List<GeometryObject> { solid });
directShape.get_Parameter(BuiltInParameter.DOOR_NUMBER).Set(room.Name);
var ds = DirectShape.CreateElement(doc, new ElementId(BuiltInCategory.OST_GenericModel));
//ds.SetName(room.Name);
//var option = ds.GetOptions();
//option.ReferencingOption = DirectShapeReferencingOption.NotReferenceable;
@@ -256,7 +255,7 @@ public static class RoomExtensions
ogs.SetCutFillColor(color);
ogs.SetCutFillPatternId(solidFillPattern.Id);
doc.ActiveView.SetElementOverrides(ds.Id, ogs);
doc.ActiveView.SetElementOverrides(directShape.Id, ogs);
#else
ogs.SetSurfaceBackgroundPatternColor(color);
ogs.SetSurfaceForegroundPatternId(solidFillPattern.Id);
@@ -266,7 +265,7 @@ public static class RoomExtensions
ogs.SetCutForegroundPatternColor(color);
ogs.SetCutForegroundPatternId(solidFillPattern.Id);
ogs.SetSurfaceTransparency(50);
doc.ActiveView.SetElementOverrides(ds.Id, ogs);
doc.ActiveView.SetElementOverrides(directShape.Id, ogs);
#endif
//foreach (Face face in solid.Faces)
//{
@@ -279,6 +278,6 @@ public static class RoomExtensions
// //}
//}
return ds;
return directShape;
}
}