try
{
//Code
}
catch(Exception ex)
{
if(!(ex is Autodesk.Revit.Exceptions.OperationCanceledException))//用户取消异常,不抛出异常信息
{
throw ex;
}
}
try
{
//Code
}
catch(Exception ex)
{
if(!(ex is Autodesk.Revit.Exceptions.OperationCanceledException))//用户取消异常,不抛出异常信息
{
throw ex;
}
}