该类别包含了用于维护Revit中的跨度方向符号(Span Direction Symbol)的错误消息。
以下are failure message identifiers(错误消息标识符):
以下are resolution options(解决方案选项):
以下示例展示如何捕获跨度方向符号(Span Direction Symbols)的重叠:
try
{
// some code that may cause a span direction symbol overlap failure
}
catch (Autodesk.Revit.Exceptions.InvalidOperationException ex)
{
if (ex.Message.Equals(Autodesk.Revit.DB.BuiltInFailures.SpanDirectionSymbolFailures.Conduit_SpanDirectionSymbolOverlapFailures))
{
// handle the conduit span direction symbol overlap failure
}
else if (ex.Message.Equals(Autodesk.Revit.DB.BuiltInFailures.SpanDirectionSymbolFailures.Duct_SpanDirectionSymbolOverlapFailures))
{
// handle the duct span direction symbol overlap failure
}
else if (ex.Message.Equals(Autodesk.Revit.DB.BuiltInFailures.SpanDirectionSymbolFailures.FlexDuct_SpanDirectionSymbolOverlapFailures))
{
// handle the flex duct span direction symbol overlap failure
}
else if (ex.Message.Equals(Autodesk.Revit.DB.BuiltInFailures.SpanDirectionSymbolFailures.FlexPipe_SpanDirectionSymbolOverlapFailures))
{
// handle the flex pipe span direction symbol overlap failure
}
else if (ex.Message.Equals(Autodesk.Revit.DB.BuiltInFailures.SpanDirectionSymbolFailures.Pipe_SpanDirectionSymbolOverlapFailures))
{
// handle the pipe span direction symbol overlap failure
}
else
{
// handle any other failure
}
}