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

server/2024/9/22 14:20:44/

大家好,今天还是介绍我们的枚举应用实战系列。

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

(1)第一个为swsBearingLoadEndEditError_e,这个枚举值的含义为轴承载荷编辑错误,下面是官方的具体枚举值:

MemberDescription
swsBearingLoadEndEditErrorBodyExcludedFromAnalysis

17 = Selected entity is on a body excluded from analysis

swsBearingLoadEndEditErrorCoordinateSystemCylindricalFaces

1 = Coordinate system and set of cylindrical faces must be the same radii and z axis of coordinate system must be coincident with the axis of the cylindrical faces

swsBearingLoadEndEditErrorEntityExists

3 = Entity already exists

swsBearingLoadEndEditErrorHasBeamBody

9 = Bearing load has a beam body

swsBearingLoadEndEditErrorHasMassElement

8 = Bearing load has a mass element

swsBearingLoadEndEditErrorIncorrectOrNullEntity

2 = Incorrect or NULL entity

swsBearingLoadEndEditErrorIndexExceedsNumberOfEntities

10 = Specified index exceeds the number of entities

swsBearingLoadEndEditErrorNoEntity

11 = No entity

swsBearingLoadEndEditErrorNoEntityAtIndex

5 = No entity at specified index

swsBearingLoadEndEditErrorNullEntity

16 = Entity is NULL

swsBearingLoadEndEditErrorSelectFace

4 = Select a face

swsBearingLoadEndEditErrorSelectFaceWithCylindricalSurface

7 = Select a face with cylindrical surface

swsBearingLoadEndEditErrorSelectForceDirection

13 = Select one force direction

swsBearingLoadEndEditErrorSelectOneForceDirection

12 = Select one force direction, not both force directions

swsBearingLoadEndEditErrorSetXDirection

14 = Set X direction to 0 or 1

swsBearingLoadEndEditErrorSetYDirection

15 = Set Y direction to 0 or 1

swsBearingLoadEndEditErrorSpecifyValue

6 = Specify a value > 0           

swsBearingLoadEndEditErrorSuccessful

0 = Successful

(2)第二个为swsBoltConnectorEndEditError_e,这个枚举的含义为螺栓连接器编辑错误,下面是官方的具体枚举值:

MemberDescription
swsBoltConnectorEndEditErrorBodyExcludedFromAnalysis40 = Entity is on a body excluded from analysis
swsBoltConnectorEndEditErrorBodyHasBeamElement42 = Body has a beam element
swsBoltConnectorEndEditErrorBodyHasMassElement39 = Body has a mass element
swsBoltConnectorEndEditErrorBoltDiameterBiggerShankContactFaceDiameter25 = Bolt diameter cannot be greater than the minimum shank contact face diameter
swsBoltConnectorEndEditErrorDefineMaterial13 = Define a material
swsBoltConnectorEndEditErrorDocumentIsPart30 = Document type is part
swsBoltConnectorEndEditErrorEntityAlreadyExits27 = Entity already exists
swsBoltConnectorEndEditErrorEntitySelectionBoxesEmpty34 = Both entity selection boxes are empty
swsBoltConnectorEndEditErrorIncorrectHeadDiameter3 = Head diameter is either <= 0 or > the maximum value
swsBoltConnectorEndEditErrorIncorrectNutDiameter29 = Nut diameter is either < 0 or > maximum value
swsBoltConnectorEndEditErrorIncorrectShankDiameter7 = Shank diameter is <= 0 or > the maximum value
swsBoltConnectorEndEditErrorInvalidConnectionType44
swsBoltConnectorEndEditErrorInvalidForAnalysis43
swsBoltConnectorEndEditErrorNoEntity28 = No entity specified
swsBoltConnectorEndEditErrorNoMultiBoltSelected38 = Entity cannot be inserted because multi-bolt not selected
swsBoltConnectorEndEditErrorNoObjectAtIndex33 = No object at specified index
swsBoltConnectorEndEditErrorNoShearEffectSelected37 = Entity cannot be inserted because shear effect not selected
swsBoltConnectorEndEditErrorNullEntity41 = Entity is NULL
swsBoltConnectorEndEditErrorSelectBoltHeadAndNut17 = Select a bolt head and bolt nut from different bodies
swsBoltConnectorEndEditErrorSelectBoltNut26 = Select a bolt nut
swsBoltConnectorEndEditErrorSelectCircularEdge5 = Select a circular edge
swsBoltConnectorEndEditErrorSelectCoaxialCylindricalSurfaces23 = Select co-axial cylindrical surfaces from different components
swsBoltConnectorEndEditErrorSelectConcentricCylindricalFaces24 = Select concentric cylindrical faces from two bodies
swsBoltConnectorEndEditErrorSelectConcentricEntities9 = Select concentric entities
swsBoltConnectorEndEditErrorSelectConicalFaceAndBoltNut19 = Select conical face and bolt nut from different bodies
swsBoltConnectorEndEditErrorSelectConicalFaceAndFaceForThread20 = Select conical face and face for thread from different bodies
swsBoltConnectorEndEditErrorSelectConicalSurface2 = Select a conical surface
swsBoltConnectorEndEditErrorSelectCylindricalThreadFace6 = Select cylindrical thread face from a different body
swsBoltConnectorEndEditErrorSelectEdge4 = Select an edge
swsBoltConnectorEndEditErrorSelectEdgesOnShells32 = Select edges on shells
swsBoltConnectorEndEditErrorSelectFace1 = Select a face
swsBoltConnectorEndEditErrorSelectFaceForHeadNutFaceForThread18 = Select face for the head nut and face for the thread from different bodies
swsBoltConnectorEndEditErrorSelectFacesFromMultilayerBolt22 = Select faces from multi-layer bolt
swsBoltConnectorEndEditErrorSelectMass8 = Select a mass > 0
swsBoltConnectorEndEditErrorSelectNutOrHead31 = Select a nut or head
swsBoltConnectorEndEditErrorSelectOneEntity35 = Can only select one entity per selection box
swsBoltConnectorEndEditErrorSelectPlanarFace16 = Select a planar face
swsBoltConnectorEndEditErrorSelectReferencePlane21 = Sleect a reference plane
swsBoltConnectorEndEditErrorSpecifyFrictionValue15 = Specify a friction value >= 0 and <= 1
swsBoltConnectorEndEditErrorSpecifyPoissonsRatio12 = Specify a Poissons ratio >= 0 but <= 1
swsBoltConnectorEndEditErrorSpecifyPreloadValue14 = Specify a preload value >= 0
swsBoltConnectorEndEditErrorSpecifyTemperatureCoefficient11 = Specify a temperature coefficient >= 0
swsBoltConnectorEndEditErrorSpecifyYoungModulus10 = Specify a young Modulus > 0
swsBoltConnectorEndEditErrorSuccessful0 = Successful
swsBoltConnectorEndEditErrorTooManyEntities36 = Number of entities specified is greater than the number of entities in the selection box

(3)第三个为swsFatigueEventEndEditError_e,这个枚举的含义为疲劳事件编辑错误,下面是官方的具体枚举值:

MemberDescription
swsFatigueEventError_AssociatedStudyShouldBeStaticNonlinearOrDynamicModalTimeHistory21 = Associated study should be a static, nonlinear, or dynamic modal time history study
swsFatigueEventError_CannotApplyLoadingRatio12 = Loading ratio is invalid
swsFatigueEventError_CannotApplyRepeats13 = Cannot apply the specified number of repeats
swsFatigueEventError_CannotApplyStartTime15 = Cannot apply the specified start time of the fatigue event
swsFatigueEventError_ImproperEvent2 = Improper fatigue event
swsFatigueEventError_ImproperNoOfCycles10 = Number of cycles must be greater than 1 and less than 2000000000
swsFatigueEventError_ImproperStudy1 = Improper fatigue study
swsFatigueEventError_ImproperStudyNames3 = Improper associated study names
swsFatigueEventError_ImproperVarNamesOrVarScalesOrVarSteps18 = Improper variable names, scales, or steps
swsFatigueEventError_InvalidLoadingtype11 = Loading type must be a number as defined in swsFatigueLoadingType_e
swsFatigueEventError_InvalidRepeats14 = Number of repeats must be greater than 0 and less than 1000000
swsFatigueEventError_InvalidStartTime16 = Start time must be greater than 0
swsFatigueEventError_LoadHistoryCurveTypeImproper4 = Load history curve type must be a number as defined in swsFatigueLoadHistoryCurveType_e
swsFatigueEventError_NoError0 = Success
swsFatigueEventError_NoOfPointsShouldBeMoreThan38 = Load history curve data must have more than 3 points 
swsFatigueEventError_NumberOfStudiesAssociationShouldbeAtleast119 = Number of associated studies must be greater than 1
swsFatigueEventError_NumberOfStudiesAssociationShouldbeAtleast220 = Number of associated studies must be greater than 2
swsFatigueEventError_StudyNamesScalesAndStepsDifferentInNumber17 = Study names, scales, and steps are all different in number
swsFatigueEventError_XAndYPointsNotSameInNumber7 = X and Y values of the load history curve data are not the same in number
swsFatigueEventError_XCurveDataImproper5 = X values of load history curve data are improper
swsFatigueEventError_XPointsShouldBeInIncreasingOrder9 = X coordinate values of the load history curve data must be in order of increasing value
swsFatigueEventError_YCurveDataImproper6 = Y values of load history curve data are improper
本篇文章要介绍的就是这么多,我们下篇文章再见。


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

相关文章

2024-4-28

今日流水账&#xff1a; 上午&#xff1a; 打CTF总不能爆零吧&#xff0c;所以看群里师傅说 D3CTF 的那道 qemu 逃逸很简单&#xff0c;所以就把他给做了然后还是在配内核环境&#xff0c;服了&#xff0c;还是不行捏~~~下午继续配&#xff0c;啊啊啊 好好的思考了一下&#xf…

我们不可能永远都在救火 ——Scrum中技术债

一、定义 技术负债&#xff08;英语&#xff1a;Technical debt&#xff09;&#xff0c;又译技术债&#xff0c;也称为设计负债&#xff08;design debt&#xff09;、代码负债&#xff08;code debt&#xff09;&#xff0c;是编程及软件工程中的借鉴了财务债务的系统隐喻。指…

iOS 常用路径

打adhoc包用的描述文件路径&#xff1a;/Users/biyao/Library/MobileDevice/Provisioning Profiles 本地Apache服务器的地址&#xff1a;/Library/WebServer/Documents 本地ApacheURL&#xff1a;http://localhost/ Xcode-DerivedData&#xff1a;/Users/用户名/Library/Dev…

Linux 第十三章

&#x1f436;博主主页&#xff1a;ᰔᩚ. 一怀明月ꦿ ❤️‍&#x1f525;专栏系列&#xff1a;线性代数&#xff0c;C初学者入门训练&#xff0c;题解C&#xff0c;C的使用文章&#xff0c;「初学」C&#xff0c;linux &#x1f525;座右铭&#xff1a;“不要等到什么都没有了…

你不需要总是在 React 中使用 useState

在我审查的一个拉取请求中&#xff0c;我注意到在许多拉取请求中看到的一种模式。React 组件具有多个 UI 状态&#xff0c;例如 loading、error 和 success。 作者使用了多个 useState 钩子来管理这些状态&#xff0c;这导致代码难以阅读且容易出错&#xff0c;例如&#xff1a…

每日一题-贪心算法

目录 前言 买入股票的最佳时机(1) 买入股票的最好时机(2) 前言 当你踏上贪心算法的旅程&#xff0c;仿佛置身于一场智慧的盛宴&#xff0c;每一步都是对问题解决方案的审慎选择&#xff0c;每一次决策都是对最优解的向往。贪心算法以其简洁高效的特性&#xff0c;被广泛运用于…

Java基础--单元测试

JUnit是Java中最流行的开源单元测试框架&#xff0c;用于编写和运行可重复的、自动化的单元测试。JUnit极大地简化了测试用例的编写和组织&#xff0c;提供了丰富的断言方法、测试运行控制、测试结果报告等功能&#xff0c;是遵循测试驱动开发&#xff08;TDD&#xff09;和持续…

Vue 组件单元测试深度探索:细致解析与实战范例大全

Vue.js作为一款广受欢迎的前端框架&#xff0c;以其声明式的数据绑定、组件化开发和灵活的生态系统赢得了广大开发者的心。然而&#xff0c;随着项目规模的增长&#xff0c;确保组件的稳定性和可靠性变得愈发关键。单元测试作为软件质量的守护神&#xff0c;为Vue组件的开发过程…