public void DrawGroup(CurveArray curves, string name) { ModelCurveArray roomShape = MakeModelCurve(curves); Autodesk.Revit.DB.Group group = _doc.Create.NewGroup(roomShape.Cast <ModelCurve>().Select(x => x.Id).ToList()); group.GroupType.Name = name; }
void SetModelCurvesColor( ModelCurveArray modelCurves, View view, Color color) { foreach (var curve in modelCurves .Cast <ModelCurve>()) { var overrides = view.GetElementOverrides( curve.Id); overrides.SetProjectionLineColor(color); view.SetElementOverrides(curve.Id, overrides); } }
void SetModelCurvesColor( ModelCurveArray modelCurves, View view, Color color) { foreach( var curve in modelCurves .Cast<ModelCurve>() ) { var overrides = view.GetElementOverrides( curve.Id ); overrides.SetProjectionLineColor( color ); view.SetElementOverrides( curve.Id, overrides ); } }