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

server/2024/11/24 8:39:48/

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

下面是要介绍的枚举:

(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

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


http://www.ppmy.cn/server/20860.html

相关文章

Docker数据管理+镜像的创建

Docker容器数据管理方式 数据卷 数据卷是一个供容器使用的特殊目录,位于容器中,可将宿主的目录挂载到数据卷上,对数据卷的修改操作立即可见,并且更新数据不会影响镜像,从而实现数据在宿主机与容器之间的迁移。数据卷…

毕业撒花 流感服务小程序的设计与实现

目录 1.1 总体页面设计 1.1.1 用户首页 1.1.2 新闻页面 1.1.3 我的页面 1.1.5 管理员登陆页面 1.1.6 管理员首页 1.2 用户模块 1.2.1 体检预约功能 1.2.2 体检报告功能 1.2.4 流感数据可视化功能 1.2.5 知识科普功能 1.2.6 疾病判断功能 1.2.7 出示个人就诊码功能 …

数据库变更时,OceanBase如何自动生成回滚 SQL

背景 在开发中,数据的变更与维护工作一般较频繁。当我们执行数据库的DML操作时,必须谨慎考虑变更对数据可能产生的后果,以及变更是否能够顺利执行。若出现意外数据丢失、操作失误或语法错误等情况,我们必须迅速将数据库恢复到变更…

数据结构习题--旋转链表

数据结构习题–旋转链表 给你一个链表的头节点 head ,旋转链表,将链表每个节点向右移动 k 个位置。注意这里的k可能超过链表的长度 方法:双指针 分析 旋转K次,我们其实就是相当于找到倒数第K个结点,让其成为头结点…

Matlab无法使用GBK编码保存文件,改用UTF-8编码(已解决)

系统不让保存GBK格式编码。但是可以通过matlab另存为 的方式保持为UTF-8编码,如下操作。 然后 在弹出的窗口中,选择 UTF-8 可以保持在与源文件相同的文件夹内,将源文件覆盖掉。就可以了。

【Linux】基础指令

文章目录 基础指令1. pwd 指令2. cd 指令3. ls 指令4. touch 指令5. mkdir 指令6. rmdir 和 rm 指令7. man 指令8. cp 指令9. mv 指令10. cat 指令11. more 和 less 指令12. head 和 tail 指令13. date 指令14. cal 指令15. find 指令16. grep 指令18. zip 和 unzip 指令19. ta…

Bayes判别:统计学中的经典分类方法

在统计和机器学习领域,Bayes判别是一个基于概率理论的强大工具,用于解决分类问题。它基于Bayes定理,通过计算和比较后验概率来进行决策。这种方法在处理不确定性和不完整数据时表现尤为出色,因此在医学诊断、邮件过滤、语音识别等…

vite+vue3配置less

在Vite项目中配置LESS,你需要安装相关的插件,并在Vite配置文件中进行配置。以下是步骤和示例代码: 安装LESS和LESS插件: npm install less --save-dev npm install less-loader --save-dev 在Vite配置文件中(通常是v…