Revit.SDK.Samples.NewRebar.CS.RebarShapeDefByArc.AllowedConstraintTypes C# (CSharp) Method

AllowedConstraintTypes() public method

Get all the constraint types supported by RebarShapeDefinitionByArc.
public AllowedConstraintTypes ( ) : List
return List
        public override List<Type> AllowedConstraintTypes()
        {
            RebarShapeDefinitionByArc definitionByArc = RebarshapeDefinition as RebarShapeDefinitionByArc;

            List<Type> allowedTypes = base.AllowedConstraintTypes();

            allowedTypes.Add(typeof(ConstraintRadius));
            allowedTypes.Add(typeof(ConstraintDiameter));
            allowedTypes.Add(typeof(ConstraintArcLength));
            allowedTypes.Add(typeof(ConstraintCircumference));
            allowedTypes.Add(typeof(ConstraintChordLength));
            allowedTypes.Add(typeof(ConstraintSagittaLength));

            return allowedTypes;
        }