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

2024-04-28 20:44

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

这篇关于C# Solidworks二次开发:枚举应用实战(第九讲)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/944221

相关文章

C#中读取XML文件的四种常用方法

《C#中读取XML文件的四种常用方法》Xml是Internet环境中跨平台的,依赖于内容的技术,是当前处理结构化文档信息的有力工具,下面我们就来看看C#中读取XML文件的方法都有哪些吧... 目录XML简介格式C#读取XML文件方法使用XmlDocument使用XmlTextReader/XmlTextWr

使用 sql-research-assistant进行 SQL 数据库研究的实战指南(代码实现演示)

《使用sql-research-assistant进行SQL数据库研究的实战指南(代码实现演示)》本文介绍了sql-research-assistant工具,该工具基于LangChain框架,集... 目录技术背景介绍核心原理解析代码实现演示安装和配置项目集成LangSmith 配置(可选)启动服务应用场景

如何通过海康威视设备网络SDK进行Java二次开发摄像头车牌识别详解

《如何通过海康威视设备网络SDK进行Java二次开发摄像头车牌识别详解》:本文主要介绍如何通过海康威视设备网络SDK进行Java二次开发摄像头车牌识别的相关资料,描述了如何使用海康威视设备网络SD... 目录前言开发流程问题和解决方案dll库加载不到的问题老旧版本sdk不兼容的问题关键实现流程总结前言作为

在Java中使用ModelMapper简化Shapefile属性转JavaBean实战过程

《在Java中使用ModelMapper简化Shapefile属性转JavaBean实战过程》本文介绍了在Java中使用ModelMapper库简化Shapefile属性转JavaBean的过程,对比... 目录前言一、原始的处理办法1、使用Set方法来转换2、使用构造方法转换二、基于ModelMapper

Java实战之自助进行多张图片合成拼接

《Java实战之自助进行多张图片合成拼接》在当今数字化时代,图像处理技术在各个领域都发挥着至关重要的作用,本文为大家详细介绍了如何使用Java实现多张图片合成拼接,需要的可以了解下... 目录前言一、图片合成需求描述二、图片合成设计与实现1、编程语言2、基础数据准备3、图片合成流程4、图片合成实现三、总结前

C#比较两个List集合内容是否相同的几种方法

《C#比较两个List集合内容是否相同的几种方法》本文详细介绍了在C#中比较两个List集合内容是否相同的方法,包括非自定义类和自定义类的元素比较,对于非自定义类,可以使用SequenceEqual、... 目录 一、非自定义类的元素比较1. 使用 SequenceEqual 方法(顺序和内容都相等)2.

C#使用DeepSeek API实现自然语言处理,文本分类和情感分析

《C#使用DeepSeekAPI实现自然语言处理,文本分类和情感分析》在C#中使用DeepSeekAPI可以实现多种功能,例如自然语言处理、文本分类、情感分析等,本文主要为大家介绍了具体实现步骤,... 目录准备工作文本生成文本分类问答系统代码生成翻译功能文本摘要文本校对图像描述生成总结在C#中使用Deep

C#从XmlDocument提取完整字符串的方法

《C#从XmlDocument提取完整字符串的方法》文章介绍了两种生成格式化XML字符串的方法,方法一使用`XmlDocument`的`OuterXml`属性,但输出的XML字符串不带格式,可读性差,... 方法1:通过XMLDocument的OuterXml属性,见XmlDocument类该方法获得的xm

C#多线程编程中导致死锁的常见陷阱和避免方法

《C#多线程编程中导致死锁的常见陷阱和避免方法》在C#多线程编程中,死锁(Deadlock)是一种常见的、令人头疼的错误,死锁通常发生在多个线程试图获取多个资源的锁时,导致相互等待对方释放资源,最终形... 目录引言1. 什么是死锁?死锁的典型条件:2. 导致死锁的常见原因2.1 锁的顺序问题错误示例:不同

nginx-rtmp-module构建流媒体直播服务器实战指南

《nginx-rtmp-module构建流媒体直播服务器实战指南》本文主要介绍了nginx-rtmp-module构建流媒体直播服务器实战指南,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有... 目录1. RTMP协议介绍与应用RTMP协议的原理RTMP协议的应用RTMP与现代流媒体技术的关系2