• C# Solidworks二次开发:枚举应用实战(第四讲)


    大家好,今天还是介绍我们的枚举系列,紧接上一讲。

    下面是要介绍的枚举:

    (1)第一个为swAutodimstatus,这个枚举的含义为返回草图和制图自动标准状态,下面是官方的具体枚举值:

    MemberDescription
    swAutodimStatus3DSketchNotSupported5 = Cannot autodimension a 3D sketch
    swAutodimStatusAlgorithmFailed17 = Unspecified algorithm failure
    swAutodimStatusBadOptionValue1 = An option value for an argument is out of range
    swAutodimStatusCenterlineNotAllowed10 = The centerline scheme is not valid for sketches that cannot be revolved to create valid features
    swAutodimStatusDatumLineNotCenterline14 = The datum must be a sketch line and a centerline for the centerline scheme
    swAutodimStatusDatumLineNotHorizontal16 = The sketch line is a datum, it must be horizontal for horizontal dimensions
    swAutodimStatusDatumLineNotVertical15 = If the sketch line is a datum, it must be vertical for vertical dimension
    swAutodimStatusDatumNotSupplied11 = No datum was selected for either the horizontal or vertical dimensioning schemes
    swAutodimStatusDatumNotUnique12 = More than one datum was selected for either the horizontal or vertical dimensioning schemes
    swAutodimStatusDatumNotValidType13 = One of the selected datums is not valid. Valid types are sketch points and sketch lines
    swAutodimStatusDocTypeNotSupported3 = Only part and assemblies documents are supported
    swAutodimStatusEntitiesNotValid9 = The entitiesToDimension argument has the value of swAutodimEntitiesSelected, but the marked entities are not valid
    swAutodimStatusNoActiveDoc2 = No active document
    swAutodimStatusNoActiveSketch4 = Can only autodimension an active sketch
    swAutodimStatusNoEntities8 = The entitiesToDimension argument has the value of  swAutodimEntitiesSelected, but no entities were selected and marked with the value swAutodimMarkEntities
    swAutodimStatusSketchIsEmpty6 = Cannot autodimension an empty sketch
    swAutodimStatusSketchIsOverDefined7 = Cannot autodimension an over defined sketch
    swAutodimStatusSketchNoSolutionFound18 = Cannot autodimension a sketch for which there is no solution
    swAutodimStatusSuccess0 = Sketch successfully dimensioned

    (2)第二个为swBalloonstyle,这个枚举为气球样式,下面是官方具体的枚举值:

    MemberDescription
    swBS_ArcBracket14
    swBS_ArclenSym16
    swBS_Box4
    swBS_Circular1
    swBS_Diamond5
    swBS_DoubleArrow18
    swBS_FixedSym17
    swBS_FlagPentagon8
    swBS_FlagTriangle9
    swBS_Hexagon3
    swBS_Inspection13
    swBS_None0
    swBS_Pentagon6; Can be used for label location selection Circular Spit Line
    swBS_RectBracket15
    swBS_SCircle12
    swBS_SplitCirc7; Not valid for notes; only valid for balloons
    swBS_SplitSquare19; Can be used for label location selection Square Spit Line
    swBS_Square11
    swBS_Triangle2
    swBS_Underline10
    swBS_Verbose20

    (3)第三个为swBodyoperationError,这个枚举为主题操作错误,下面是官方的具体枚举值:

    MemberDescription
    swBodyOperationBooleanFail1058 = Boolean fail error
    swBodyOperationDisjointBodies5 = Disjoint bodies error
    swBodyOperationEmptyBody6 = Empty body error
    swBodyOperationEmptyInputBody7 = Empty input body error
    swBodyOperationFailGeomCondition3 = Failed geometry condition
    swBodyOperationFailToCutBody4 = Failed to cut body error
    swBodyOperationIntersectSolidWithSheets972 = Intersect solid with sheets error
    swBodyOperationInvalidInputBody8 = Invalid input body
    swBodyOperationMissingGeom96 = Missing geometry error
    swBodyOperationNoError0 = No error
    swBodyOperationNoIntersect1067 = No intersect error
    swBodyOperationNonApiBody1 = Non API body error
    swBodyOperationNonManifold547 = Nonmanifold error
    swBodyOperationOpposedSheets951 = Boolean fail error; invalid orientation for operation
    swBodyOperationPartialCoincidence1040 = Partial coincidence error
    swBodyOperationSameToolAndTarget545 = Same tool and target error
    swBodyOperationUniteSolidSheet543 = Unite solid sheet error
    swBodyOperationUnknownError-1 = Unknown error
    swBodyOperationWrongType2 = Wrong type error

    (4)第四个为swCalloutVariable,这个枚举值的含义为特定孔标注变量的类型,下面是官方具体的枚举值:

    MemberDescription
    swCalloutVariable_AH_Blind_Msg86
    swCalloutVariable_AH_Counterbore_Depth52
    swCalloutVariable_AH_Counterbore_Diameter51
    swCalloutVariable_AH_Counterbore_Farside_Msg53
    swCalloutVariable_AH_Counterbore_Nearside_Msg54
    swCalloutVariable_AH_Counterbore_Side55
    swCalloutVariable_AH_Countersink_Angle57
    swCalloutVariable_AH_Countersink_Depth58
    swCalloutVariable_AH_Countersink_Diameter56
    swCalloutVariable_AH_Countersink_Farside_Msg60
    swCalloutVariable_AH_Countersink_Nearside_Msg59
    swCalloutVariable_AH_Countersink_Side61
    swCalloutVariable_AH_Dowel_HoleFit78
    swCalloutVariable_AH_Dowel_ShaftFit79
    swCalloutVariable_AH_DrillPoint_Angle83
    swCalloutVariable_AH_DrillPoint_Msg84
    swCalloutVariable_AH_FlatBottom_Msg85
    swCalloutVariable_AH_OffsetFromSurface_Msg90
    swCalloutVariable_AH_Straight_Depth77
    swCalloutVariable_AH_Straight_Diameter76
    swCalloutVariable_AH_Straight_Farside_Msg81
    swCalloutVariable_AH_Straight_Nearside_Msg80
    swCalloutVariable_AH_Straight_Side82
    swCalloutVariable_AH_StraightThread_Depth65
    swCalloutVariable_AH_StraightThread_Farside_Msg67
    swCalloutVariable_AH_StraightThread_Major_Diameter63
    swCalloutVariable_AH_StraightThread_Nearside_Msg66
    swCalloutVariable_AH_StraightThread_Side68
    swCalloutVariable_AH_StraightThread_Size64
    swCalloutVariable_AH_StraightThread_Tap_Drill_Diameter62
    swCalloutVariable_AH_TaperedThread_Depth71
    swCalloutVariable_AH_TaperedThread_Farside_Msg74
    swCalloutVariable_AH_TaperedThread_Major_Diameter70
    swCalloutVariable_AH_TaperedThread_Nearside_Msg73
    swCalloutVariable_AH_TaperedThread_Side75
    swCalloutVariable_AH_TaperedThread_Size72
    swCalloutVariable_AH_TaperedThread_Tap_Drill_Diameter69
    swCalloutVariable_AH_Thread_Description92
    swCalloutVariable_AH_ThreadAdvance93
    swCalloutVariable_AH_ThroughAll_Msg91
    swCalloutVariable_AH_UptoNext_Msg87
    swCalloutVariable_AH_UptoNextElement_Msg88
    swCalloutVariable_AH_UptoSelection_Msg89
    swCalloutVariable_Counterbore47
    swCalloutVariable_Counterbore_Depth7
    swCalloutVariable_Counterbore_Diameter8
    swCalloutVariable_Counterdrill_Angle9
    swCalloutVariable_Counterdrill_Depth10
    swCalloutVariable_Counterdrill_Diameter11
    swCalloutVariable_Countersink_Angle12
    swCalloutVariable_Countersink_Diameter13
    swCalloutVariable_Depth14
    swCalloutVariable_Description37
    swCalloutVariable_Diameter15
    swCalloutVariable_Drill_Angle16
    swCalloutVariable_Far_Side_Countersink_Angle17
    swCalloutVariable_Far_Side_Countersink_Diameter18
    swCalloutVariable_Fastener_Size6
    swCalloutVariable_Fastener_Type5
    swCalloutVariable_Head_Clearance19
    swCalloutVariable_Hole_Depth21
    swCalloutVariable_Hole_Diameter20
    swCalloutVariable_Major_Diameter22
    swCalloutVariable_Middle_Countersink_Angle23
    swCalloutVariable_Middle_Countersink_Diameter24
    swCalloutVariable_Minor_Diameter25
    swCalloutVariable_Msg_Far_Side40
    swCalloutVariable_Msg_Mid_Side39
    swCalloutVariable_Msg_Near_Side38
    swCalloutVariable_Near_Side_Countersink_Angle26
    swCalloutVariable_Near_Side_Countersink_Diameter27
    swCalloutVariable_NUM_INST45
    swCalloutVariable_Slot_Length49
    swCalloutVariable_Slot_Width50
    swCalloutVariable_Standard4
    swCalloutVariable_Tap_Drill_Depth28
    swCalloutVariable_Tap_Drill_Diameter29
    swCalloutVariable_Thread_Angle30
    swCalloutVariable_Thread_Class46
    swCalloutVariable_Thread_Depth32
    swCalloutVariable_Thread_Description41
    swCalloutVariable_Thread_Diameter31
    swCalloutVariable_Thread_Diameter_Only48
    swCalloutVariable_Thread_Series43
    swCalloutVariable_Thread_Size42
    swCalloutVariable_Thru44
    swCalloutVariable_Thru_Hole_Depth33
    swCalloutVariable_Thru_Hole_Diameter34
    swCalloutVariable_Thru_Tap_Depth35
    swCalloutVariable_Thru_Tap_Drill_Diameter36

    本篇文章要介绍的就是这些,我们下篇文章再见。

  • 相关阅读:
    什么是独立服务器,它与VPS有何不同?
    PC调试手机微信浏览器
    Leetcode 399. 除法求值
    关于2023年的裸辞对话
    好心情精神心理科医生:轻度抑郁症需要治疗吗?
    Unity zip解压和压缩
    基于字节码的统一异常上报实践
    FPGA之手把手教你做多路信号发生器(STM32与FPGA数据互传控制波形生成)
    揭晓:一条SQL语句的执行过程是怎么样的?
    JavaIO流02:IO流概述和流的分类
  • 原文地址:https://blog.csdn.net/m0_53104033/article/details/138167847