Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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 );
              }
        }