Use model.component(<ctag>).geom(<tag>).create(<ftag>,"ParameterCheck") to check parameter values and issue an error if the check condition is fulfilled (being nonzero); for example, the condition 
r>30[mm] results in an error is the value of parameter 
r is larger than 30 mm. The following properties are available: