示例#1
0
 public override string WhereRule()
 {
     if (_curveWidth != null)
     {
         if (
             !(_curveWidth.GetType() == typeof(IfcPositiveLengthMeasure) ||
               (typeof(IfcDescriptiveMeasure) == _curveWidth.GetType() &&
                ((string)((IfcDescriptiveMeasure)_curveWidth)) == "by layer")))
         {
             return
                 ("WR11 CurveStyle : The curve width, if provided, shall be given by an IfcPositiveLengthMeasure representing the curve width in the default measure unit, or by an IfcDescriptiveMeasure with the value 'by layer' representing the curve width by the default curve width at the associated layer.\n");
         }
     }
     return("");
 }
 public override string WhereRule()
 {
     if (_fontSize == null || typeof(IfcLengthMeasure) != _fontSize.GetType() ||
         ((IfcLengthMeasure)_fontSize) <= 0)
     {
         return("WR31 TextStyleFontModel : The size should be given by a positive length measure\n");
     }
     else
     {
         return("");
     }
 }