大量更新
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user