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

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

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

(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
本篇文章要介绍的就是这么多,我们下篇文章再见。

  • 34
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

喵桑さん

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值