本文主要是介绍C# Solidworks二次开发:枚举应用实战(第九讲),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
大家好,今天还是介绍我们的枚举应用实战系列。
下面是今天要介绍的枚举:
(1)第一个为swsBearingLoadEndEditError_e,这个枚举值的含义为轴承载荷编辑错误,下面是官方的具体枚举值:
Member | Description |
---|---|
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,这个枚举的含义为螺栓连接器编辑错误,下面是官方的具体枚举值:
Member | Description |
---|---|
swsBoltConnectorEndEditErrorBodyExcludedFromAnalysis | 40 = Entity is on a body excluded from analysis |
swsBoltConnectorEndEditErrorBodyHasBeamElement | 42 = Body has a beam element |
swsBoltConnectorEndEditErrorBodyHasMassElement | 39 = Body has a mass element |
swsBoltConnectorEndEditErrorBoltDiameterBiggerShankContactFaceDiameter | 25 = Bolt diameter cannot be greater than the minimum shank contact face diameter |
swsBoltConnectorEndEditErrorDefineMaterial | 13 = Define a material |
swsBoltConnectorEndEditErrorDocumentIsPart | 30 = Document type is part |
swsBoltConnectorEndEditErrorEntityAlreadyExits | 27 = Entity already exists |
swsBoltConnectorEndEditErrorEntitySelectionBoxesEmpty | 34 = Both entity selection boxes are empty |
swsBoltConnectorEndEditErrorIncorrectHeadDiameter | 3 = Head diameter is either <= 0 or > the maximum value |
swsBoltConnectorEndEditErrorIncorrectNutDiameter | 29 = Nut diameter is either < 0 or > maximum value |
swsBoltConnectorEndEditErrorIncorrectShankDiameter | 7 = Shank diameter is <= 0 or > the maximum value |
swsBoltConnectorEndEditErrorInvalidConnectionType | 44 |
swsBoltConnectorEndEditErrorInvalidForAnalysis | 43 |
swsBoltConnectorEndEditErrorNoEntity | 28 = No entity specified |
swsBoltConnectorEndEditErrorNoMultiBoltSelected | 38 = Entity cannot be inserted because multi-bolt not selected |
swsBoltConnectorEndEditErrorNoObjectAtIndex | 33 = No object at specified index |
swsBoltConnectorEndEditErrorNoShearEffectSelected | 37 = Entity cannot be inserted because shear effect not selected |
swsBoltConnectorEndEditErrorNullEntity | 41 = Entity is NULL |
swsBoltConnectorEndEditErrorSelectBoltHeadAndNut | 17 = Select a bolt head and bolt nut from different bodies |
swsBoltConnectorEndEditErrorSelectBoltNut | 26 = Select a bolt nut |
swsBoltConnectorEndEditErrorSelectCircularEdge | 5 = Select a circular edge |
swsBoltConnectorEndEditErrorSelectCoaxialCylindricalSurfaces | 23 = Select co-axial cylindrical surfaces from different components |
swsBoltConnectorEndEditErrorSelectConcentricCylindricalFaces | 24 = Select concentric cylindrical faces from two bodies |
swsBoltConnectorEndEditErrorSelectConcentricEntities | 9 = Select concentric entities |
swsBoltConnectorEndEditErrorSelectConicalFaceAndBoltNut | 19 = Select conical face and bolt nut from different bodies |
swsBoltConnectorEndEditErrorSelectConicalFaceAndFaceForThread | 20 = Select conical face and face for thread from different bodies |
swsBoltConnectorEndEditErrorSelectConicalSurface | 2 = Select a conical surface |
swsBoltConnectorEndEditErrorSelectCylindricalThreadFace | 6 = Select cylindrical thread face from a different body |
swsBoltConnectorEndEditErrorSelectEdge | 4 = Select an edge |
swsBoltConnectorEndEditErrorSelectEdgesOnShells | 32 = Select edges on shells |
swsBoltConnectorEndEditErrorSelectFace | 1 = Select a face |
swsBoltConnectorEndEditErrorSelectFaceForHeadNutFaceForThread | 18 = Select face for the head nut and face for the thread from different bodies |
swsBoltConnectorEndEditErrorSelectFacesFromMultilayerBolt | 22 = Select faces from multi-layer bolt |
swsBoltConnectorEndEditErrorSelectMass | 8 = Select a mass > 0 |
swsBoltConnectorEndEditErrorSelectNutOrHead | 31 = Select a nut or head |
swsBoltConnectorEndEditErrorSelectOneEntity | 35 = Can only select one entity per selection box |
swsBoltConnectorEndEditErrorSelectPlanarFace | 16 = Select a planar face |
swsBoltConnectorEndEditErrorSelectReferencePlane | 21 = Sleect a reference plane |
swsBoltConnectorEndEditErrorSpecifyFrictionValue | 15 = Specify a friction value >= 0 and <= 1 |
swsBoltConnectorEndEditErrorSpecifyPoissonsRatio | 12 = Specify a Poissons ratio >= 0 but <= 1 |
swsBoltConnectorEndEditErrorSpecifyPreloadValue | 14 = Specify a preload value >= 0 |
swsBoltConnectorEndEditErrorSpecifyTemperatureCoefficient | 11 = Specify a temperature coefficient >= 0 |
swsBoltConnectorEndEditErrorSpecifyYoungModulus | 10 = Specify a young Modulus > 0 |
swsBoltConnectorEndEditErrorSuccessful | 0 = Successful |
swsBoltConnectorEndEditErrorTooManyEntities | 36 = Number of entities specified is greater than the number of entities in the selection box |
(3)第三个为swsFatigueEventEndEditError_e,这个枚举的含义为疲劳事件编辑错误,下面是官方的具体枚举值:
Member | Description |
---|---|
swsFatigueEventError_AssociatedStudyShouldBeStaticNonlinearOrDynamicModalTimeHistory | 21 = Associated study should be a static, nonlinear, or dynamic modal time history study |
swsFatigueEventError_CannotApplyLoadingRatio | 12 = Loading ratio is invalid |
swsFatigueEventError_CannotApplyRepeats | 13 = Cannot apply the specified number of repeats |
swsFatigueEventError_CannotApplyStartTime | 15 = Cannot apply the specified start time of the fatigue event |
swsFatigueEventError_ImproperEvent | 2 = Improper fatigue event |
swsFatigueEventError_ImproperNoOfCycles | 10 = Number of cycles must be greater than 1 and less than 2000000000 |
swsFatigueEventError_ImproperStudy | 1 = Improper fatigue study |
swsFatigueEventError_ImproperStudyNames | 3 = Improper associated study names |
swsFatigueEventError_ImproperVarNamesOrVarScalesOrVarSteps | 18 = Improper variable names, scales, or steps |
swsFatigueEventError_InvalidLoadingtype | 11 = Loading type must be a number as defined in swsFatigueLoadingType_e |
swsFatigueEventError_InvalidRepeats | 14 = Number of repeats must be greater than 0 and less than 1000000 |
swsFatigueEventError_InvalidStartTime | 16 = Start time must be greater than 0 |
swsFatigueEventError_LoadHistoryCurveTypeImproper | 4 = Load history curve type must be a number as defined in swsFatigueLoadHistoryCurveType_e |
swsFatigueEventError_NoError | 0 = Success |
swsFatigueEventError_NoOfPointsShouldBeMoreThan3 | 8 = Load history curve data must have more than 3 points |
swsFatigueEventError_NumberOfStudiesAssociationShouldbeAtleast1 | 19 = Number of associated studies must be greater than 1 |
swsFatigueEventError_NumberOfStudiesAssociationShouldbeAtleast2 | 20 = Number of associated studies must be greater than 2 |
swsFatigueEventError_StudyNamesScalesAndStepsDifferentInNumber | 17 = Study names, scales, and steps are all different in number |
swsFatigueEventError_XAndYPointsNotSameInNumber | 7 = X and Y values of the load history curve data are not the same in number |
swsFatigueEventError_XCurveDataImproper | 5 = X values of load history curve data are improper |
swsFatigueEventError_XPointsShouldBeInIncreasingOrder | 9 = X coordinate values of the load history curve data must be in order of increasing value |
swsFatigueEventError_YCurveDataImproper | 6 = Y values of load history curve data are improper |
这篇关于C# Solidworks二次开发:枚举应用实战(第九讲)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!