private static ValidateFamilyDocument ( Document document ) : void | ||
document | Document | The Revit document being tested |
return | void |
private static void ValidateFamilyDocument(
Document document)
{
if( null == document )
{
throw new ArgumentNullException( "document" );
}
if( !document.IsFamilyDocument )
{
throw new ArgumentOutOfRangeException(
"The document provided is not a Family Document." );
}
}