internal string GetTitle(PAAAnnotationType annotationType) { switch (TargetType) { case PAATargetType.Pipe: switch (annotationType) { case PAAAnnotationType.SPL: return("系统缩写 管道尺寸 离地高度"); case PAAAnnotationType.SL: return("系统缩写 离地高度"); case PAAAnnotationType.PL: return("管道尺寸 离地高度"); case PAAAnnotationType.SP: return("管道无该类型选项"); default: throw new NotImplementedException("未支持该类型的"); } case PAATargetType.Duct: switch (annotationType) { case PAAAnnotationType.SPL: return("系统缩写 截面尺寸 离地高度"); case PAAAnnotationType.SL: return("系统缩写 离地高度"); case PAAAnnotationType.PL: return("截面尺寸 离地高度"); case PAAAnnotationType.SP: return("系统缩写 截面尺寸"); default: throw new NotImplementedException("未支持该类型的"); } case PAATargetType.CableTray: switch (annotationType) { case PAAAnnotationType.SPL: return("类型名称 宽x高 离地高度"); case PAAAnnotationType.SL: return("类型名称 离地高度"); case PAAAnnotationType.PL: return("宽x高 离地高度"); case PAAAnnotationType.SP: return("类型名称 宽x高"); default: throw new NotImplementedException("未支持该类型的"); } case PAATargetType.Conduit: default: throw new NotImplementedException("未支持该类型的"); } }
internal string GetPreview(PAAAnnotationType annotationType) { switch (TargetType) { case PAATargetType.Pipe: switch (annotationType) { case PAAAnnotationType.SPL: return(string.Format("如:ZP DN100 {0}2600", AnnotationPrefix)); case PAAAnnotationType.SL: return(string.Format("如:ZP {0}2600", AnnotationPrefix)); case PAAAnnotationType.PL: return(string.Format("如:DN100 {0}2600", AnnotationPrefix)); case PAAAnnotationType.SP: return("管道无该类型选项"); default: throw new NotImplementedException("未支持该类型的"); } case PAATargetType.Duct: switch (annotationType) { case PAAAnnotationType.SPL: return(string.Format("如:SF 400x400 {0}2600", AnnotationPrefix)); case PAAAnnotationType.SL: return(string.Format("如:SF {0}2600", AnnotationPrefix)); case PAAAnnotationType.PL: return(string.Format("如:400x400 {0}2600", AnnotationPrefix)); case PAAAnnotationType.SP: return(string.Format("如:SF 400x400")); default: throw new NotImplementedException("未支持该类型的"); } case PAATargetType.CableTray: switch (annotationType) { case PAAAnnotationType.SPL: return(string.Format("如:槽式桥架 400x400 {0}2600", AnnotationPrefix)); case PAAAnnotationType.SL: return(string.Format("如:槽式桥架 {0}2600", AnnotationPrefix)); case PAAAnnotationType.PL: return(string.Format("如:400x400 {0}2600", AnnotationPrefix)); case PAAAnnotationType.SP: return(string.Format("如:槽式桥架 400x400")); default: throw new NotImplementedException("未支持该类型的"); } case PAATargetType.Conduit: default: throw new NotImplementedException("未支持该类型的"); } }