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

news/2024/9/24 1:20:57/

大家好,今天是我们枚举应用的第五讲。

下面是今天要介绍的枚举:

(1)第一个枚举为swConStraintType_e,这个枚举为草图约束,下面是官方的具体枚举值:

MemberDescription
swConstraintType_ALONGX48
swConstraintType_ALONGX3D64
swConstraintType_ALONGXPOINTS51
swConstraintType_ALONGXPOINTS3D66
swConstraintType_ALONGY49
swConstraintType_ALONGY3D65
swConstraintType_ALONGYPOINTS52
swConstraintType_ALONGYPOINTS3D67
swConstraintType_ALONGZ50
swConstraintType_ALONGZPOINTS53
swConstraintType_ANGLE2
swConstraintType_ANGLE3P43
swConstraintType_ARCANG18019
swConstraintType_ARCANG27020
swConstraintType_ARCANG9018
swConstraintType_ARCANGBOTTOM22
swConstraintType_ARCANGLEFT23
swConstraintType_ARCANGRIGHT24
swConstraintType_ARCANGTOP21
swConstraintType_ARCLENGTH44
swConstraintType_ATINTERSECT13
swConstraintType_ATMIDDLE12
swConstraintType_ATPIERCE40
swConstraintType_BELTTRACTION69
swConstraintType_BLOCKFIXEDLOCK70 = Lock two blocks together
swConstraintType_BLOCKNORMALLOCK71 = Lock blocks to be normal to one another (3D sketch)
swConstraintType_BLOCKROTATELOCK72 = Lock blocks to rotate around each other (3D sketch)
swConstraintType_C3TOUCH83
swConstraintType_CIRCULARPATTCNT77
swConstraintType_COINCIDENT9
swConstraintType_COLINEAR27
swConstraintType_CONCENTRIC10
swConstraintType_CONICRHO82
swConstraintType_CORADIAL28
swConstraintType_DIAMETER15
swConstraintType_DISTANCE1
swConstraintType_DOUBLEANGLE84 = Double angle display
swConstraintType_DOUBLEDISTANCE41
swConstraintType_ELLIPSEANG18034
swConstraintType_ELLIPSEANG27035
swConstraintType_ELLIPSEANG9033
swConstraintType_ELLIPSEANGBOTTOM37
swConstraintType_ELLIPSEANGLEFT38
swConstraintType_ELLIPSEANGRIGHT39
swConstraintType_ELLIPSEANGTOP36
swConstraintType_EQUALCURV3DALIGN80 =  Aligned equal curvature between 3D splines
swConstraintType_EQUALCURVATURE61
swConstraintType_EQUALTANGENT62
swConstraintType_FAKESLOTCONSTRAINT73 = Not actually a constraint; for display purposes only
swConstraintType_FITSPLINE60
swConstraintType_FIXED17
swConstraintType_FIXEDSLOT74 = Fix a slot
swConstraintType_FLANGEFACEDIST81 = Distance from virtual point to the relevant flange face
swConstraintType_HORIZONTAL4
swConstraintType_HORIZPOINTS25
swConstraintType_INTERSECTION56
swConstraintType_INVALIDCTYPE0
swConstraintType_ISOBYPOINT58 = ISO curve when its constraint parameter is determined by an external point
swConstraintType_LINEARPATTCNT76
swConstraintType_MERGEPOINTS42
swConstraintType_NORMAL45
swConstraintType_NORMALPOINTS46
swConstraintType_OFFSETEDGE16
swConstraintType_PARALLEL7
swConstraintType_PARALLELYZ54
swConstraintType_PARALLELZX55
swConstraintType_PATTERNED57
swConstraintType_PERPENDICULAR8
swConstraintType_PLANAROFFSET79 = For routing pipe offsets
swConstraintType_RADIALOFFSET78 = For routing pipe offsets
swConstraintType_RADIUS3
swConstraintType_SAMECURVELENGTH85 = Equal arc/spline length
swConstraintType_SAMEISOPARAM59 = Common relation for all pieces ( for the face ) of the surface's iso curve
swConstraintType_SAMELENGTH14
swConstraintType_SAMESLOTS75 = Same slot width and length
swConstraintType_SKETCHOFFSET47 = Between entities of the same sketch
swConstraintType_SNAPANGLE31
swConstraintType_SNAPGRID29
swConstraintType_SNAPLENGTH30
swConstraintType_SYMMETRIC11
swConstraintType_TANGENT6
swConstraintType_TANGENTFACE63
swConstraintType_TRACTION68
swConstraintType_USEEDGE32
swConstraintType_VERTICAL5 = Applies only to sketch lines
swConstraintType_VERTPOINTS26 = Applies only to sketch points

(2)第二个为swDesignTableErrors_e,这个枚举值为设计表的错误,下面是官方的具体枚举值:

MemberDescription
swDTbCannotOpen27 
swDTblCfgInvalid1
swDTblCorrupt
swDTblCurrentlyEditing
swDTblDataInvalidComponetState15 
swDTblDataInvalidFeatureState16 
swDTblDisplayStateError18 
swDTblExiting
swDTblFileNotFound
swDTblInvalidColCustomProp10 
swDTblInvalidColumnDimName11 
swDTblInvalidColumnFeatName12 
swDTblInvalidColumnKeyWord13 
swDTblInvalidColumnValue
swDTblInvalidConfigName14
swDTblInvalidRowNameKeyword21 
swDTblInvalidYesNoData17 
swDTblLinkChanged
swDTblModelFeatRequired19 
swDTblNegitiveDimension25 
swDTblNoError0
swDTblNoFileName
swDTblNotSuppressible23 
swDTblParentConfigInvalid20 
swDTblTableIsEmpty24 
swDTblTolTypeInvalid22 
swDTblTooManyColumns
swDTbUnUsedConfiguration26 
swDTConfigCircularDefinition33 
swDTDimAngleValueRangeError31 
swDTDimValueRangeError30 
swDTInvalidComponentName28 
swDTInvalidEquation32 
swDTNeedsComponent29 

(3)第三个为swFaultEntityErrorCode_e,这个枚举为实体故障错误码,下面是官方具体的枚举值:

MemberDescription
swBodyCorrupt1 = Data structure is corrupt
swBodyInsideOut3 = Body is inside out
swBodyInvalidIdentifiers2 = Body has invalid or duplicate identifiers
swBodyRegionsInconsistent4 = Regions of body are inconsistent
swEdgeBadFaceOrder14 = On a non-manifold edge, the face order around the edge does not match the order of the faces' surfaces around the edge
swEdgeBadWire15 = Two wireframe edges intersect at a position other than a vertex
swEdgeNonPeriodicCurve5 = Open or non-periodic curve on ring edge
swEdgeNonPeriodicNomGeom6 = Open or non-periodic nominal geometry on ring edge
swEdgeSpcurveOutOfTol11 = Spcurve not within edge's tolerance
swEdgeSpcurveOutOfTolNomGeom12 = Spcurve not within edge's tolerance of nominal geometry
swEdgeTouchEdge36 = Edges touch
swEdgeVertexNotLie7 = Vertex does not lie on edge's curve
swEdgeVertexNotLieNomGeom8 = Vertex does not lie on nominal geometry
swEdgeVerticesTouch13 = Vertices of edge touch
swEdgeWrongDir9 = Curve in wrong direction for edge
swEdgeWrongDirNomGeom10 = Nominal geometry in wrong direction
swEntityStateInvalid34 = State of entity is invalid
swFaceBadEdge17 = Edge does not lie on face's surface
swFaceBadEdgeOrder18 = Edge order around the face does not match the order of the edges' curves around the face
swFaceBadLoops20 = Loops inconsistent
swFaceBadVertex16 = Vertex does not lie on face's surface
swFaceBadWireframe22 = A wireframe edge intersects a face at a position other than a vertex
swFaceCheckerFailure23 = Checker failure during face/face check
swFaceFaceInconsistency24 = Inconsistent faces
swFaceNoAccomVertex19 = A surface singularity has no accompanying vertex
swFaceSelfIntersecting21 = Face is self intersecting
swGeomDegenerate26 = Geometry degenerated
swGeomStateSelfIntersect25 = Geometry is self intersecting
swRegionBadShells27 = Inconsistent shells
swShellBadTopologyGeometry28 = A topological entity belonging to a shell is not geometrically within the shell
swShellIntersect29 = Shell shell inconsistency
swTopolMissingGeometry35 = Missing geometry
swTopolNotG1Continuous30 = Topology's geometry is not G1 continuous
swTopolSizeBoxViolation31 = Some or all of entity is outside size box
swTopolStateCheckFail32 = Checker failure
swTopolStateNoGeometry33 = Missing geometry

(4)第四个为swKernelErrorCode_e,这个枚举为内核错误码,下面是官方的具体枚举值:

MemberDescription
swErrorBodyDontKnit-101041
swErrorCheckFailed-105061
swErrorCheckFailed2-113812
swErrorCurveDiscontinuous-100131
swErrorCurveShort-101057
swErrorEdgeIncorrectOrder-116406
swErrorEdgeisectInvalid-116404
swErrorError0
swErrorFacecheckFailed-113829
swErrorFaceFaceInconsistent-113816
swErrorFaceRedundant-116402
swErrorFailed-101063
swErrorGeometryDegenerate-113806
swErrorGeometryDiscontinuous-113827
swErrorGeometryMissing-113803
swErrorGeometrySelfx-113805
swErrorHasInvalidentity-101004
swErrorInconsistentDirs-116403
swErrorInvalidEntity-100914
swErrorInvalidGeometry-100999
swErrorInvalidGeometry2-113808
swErrorInvalidKnots-100978
swErrorInvalidLoop-116405
swErrorInvalidParameter-100120
swErrorInvalidPattern-101042
swErrorInvalidSharing-100921
swErrorLoopsInconsistent-113826
swErrorNotEntity-100022
swErrorSuccess1
swErrorSurfaceDiscontinuous-100129
swErrorTopologySelfx-113804
swErrorUnknown-1
swErrorVertexNotOnCurve-113818
swErrorVerticesTouch-113821

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


http://www.ppmy.cn/news/1440998.html

相关文章

mongodb替代品SequoiaDB的安装使用

前言 1、为什么不直接使用mongodb啊? 答:mongodb的使用协议是SSPL,一旦使用需要将你服务器程序都开源处理–或者给钱。非常不好,而SequoiaDB号称能够兼容mongodb协议,这次来安装试试。 mongodb - SSPL,Seq…

web server apache tomcat11-24-Virtual Hosting and Tomcat

前言 整理这个官方翻译的系列,原因是网上大部分的 tomcat 版本比较旧,此版本为 v11 最新的版本。 开源项目 从零手写实现 tomcat minicat 别称【嗅虎】心有猛虎,轻嗅蔷薇。 系列文章 web server apache tomcat11-01-官方文档入门介绍 web…

JSP在页面用<%=调用声明函数时出现HTTP 500错误

JSP在页面用<%调用声明函数时出现HTTP 500错误 错误描述&#xff1a; Eclipse在编写JSP页面时&#xff0c;在其中采用<%&#xff01;%>方式声明了函数&#xff0c;然后在页面中用<%函数名%>方式调用时&#xff0c;出现HTTP状态500错误&#xff0c;提示为&#…

书生·浦语大模型第二期实战营第四节-XTuner 微调 LLM:1.8B、多模态、Agent 笔记

来源&#xff1a; 视频来源&#xff1a;XTuner 微调 LLM&#xff1a;1.8B、多模态、Agent 1. XTuner 微调 LLM&#xff1a;1.8B、多模态、Agent 1.1 为什么要微调 1.2 两种Finetune范式 在LLM的下游应用中&#xff0c;增量预训练和指令跟随是经常会用到的两种微调模式。 增…

图像处理ASIC设计方法 笔记18 轮廓跟踪算法的硬件加速方案

目录 1排除伪孤立点&#xff08;断裂链表&#xff09;方法1 限制链表的长度方法2 增加判断条件排除断裂链表方法3 排除不必要跟踪的轮廓&#xff08;推荐用这个方法&#xff09; P129 轮廓跟踪算法的硬件加速方案 1排除伪孤立点&#xff08;断裂链表&#xff09; 如果图像中某…

debug的基本使用

1.简介   首先看下IDEA中Debug模式下的界面。 如下是在IDEA中启动Debug模式&#xff0c;进入断点后的界面&#xff0c;我这里是Windows&#xff0c;可能和Mac的图标等会有些不一样。就简单说下图中标注的8个地方&#xff1a; ① 以Debug模式启动服务&#xff0c;左边的一个按…

JavaEE——介绍 HTTPServlet 三部分使用与 cookie 和 session 的阐述

文章目录 一、HTTPServlet介绍其中的关键 三个方法 二、HTTPServletRequest(处理请求)1.分块介绍方法作用get 为前缀的方法字段中 含有 getParameter 字段 的方法(前后端交互)&#xff1a;字段中 含有 getHeader 字段 的方法&#xff1a; 2.解释前后端的交互过程3.使用 json 格…

基于微信小程序的土地租赁的设计与实现

基于微信小程序的土地租赁的设计与实现 Design and Implementation of Land Leasing Based on WeChat Mini Program 完整下载链接:基于微信小程序的土地租赁的设计与实现 文章目录 基于微信小程序的土地租赁的设计与实现摘要第一章 绪论1.1 研究背景1.2 研究目的1.3 研究内容…