C# Class Revit.SDK.Samples.WindowWizard.CS.ValidateWindowParameter

class is used to validate window parameters
Show file Open project: AMEE/revit

Public Properties

Property Type Description
IsMetric bool

Public Methods

Method Description
IsDouble ( string value, double &result ) : string

This method is used to check whether a value string is double type

IsHeightInRange ( double value ) : string

This method is used to check whether the height value is out of range

IsInsetInRange ( double value ) : string

This method is used to check whether the inset value is out of range

IsSillHeightInRange ( double value ) : string

This method is used to check whether the sillheight value is out of range

IsWidthInRange ( double value ) : string

This method is used to check whether the width value is out of range

ValidateWindowParameter ( double wallHeight, double wallWidth ) : System

constructor of ValidateWindowParameter

Method Details

IsDouble() public method

This method is used to check whether a value string is double type
public IsDouble ( string value, double &result ) : string
value string >the string value
result double the double result
return string

IsHeightInRange() public method

This method is used to check whether the height value is out of range
public IsHeightInRange ( double value ) : string
value double the string value
return string

IsInsetInRange() public method

This method is used to check whether the inset value is out of range
public IsInsetInRange ( double value ) : string
value double the string value
return string

IsSillHeightInRange() public method

This method is used to check whether the sillheight value is out of range
public IsSillHeightInRange ( double value ) : string
value double the string value
return string

IsWidthInRange() public method

This method is used to check whether the width value is out of range
public IsWidthInRange ( double value ) : string
value double the string value
return string

ValidateWindowParameter() public method

constructor of ValidateWindowParameter
public ValidateWindowParameter ( double wallHeight, double wallWidth ) : System
wallHeight double wall height parameter
wallWidth double wall width parameter
return System

Property Details

IsMetric public property

indicate the template file is metric or not
public bool IsMetric
return bool