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

相关文章

网页解析 lxml 库--实战

lxml库使用流程 lxml 是 Python 的第三方解析库,完全使用 Python 语言编写,它对 XPath表达式提供了良好的支 持,因此能够了高效地解析 HTML/XML 文档。本节讲解如何通过 lxml 库解析 HTML 文档。 pip install lxml lxm| 库提供了一个 etree 模块,该模块专门用来解析 HTML/XML 文档,下面来介绍一下 lxml 库

中文分词jieba库的使用与实景应用(一)

知识星球:https://articles.zsxq.com/id_fxvgc803qmr2.html 目录 一.定义: 精确模式(默认模式): 全模式: 搜索引擎模式: paddle 模式(基于深度学习的分词模式): 二 自定义词典 三.文本解析   调整词出现的频率 四. 关键词提取 A. 基于TF-IDF算法的关键词提取 B. 基于TextRank算法的关键词提取

水位雨量在线监测系统概述及应用介绍

在当今社会,随着科技的飞速发展,各种智能监测系统已成为保障公共安全、促进资源管理和环境保护的重要工具。其中,水位雨量在线监测系统作为自然灾害预警、水资源管理及水利工程运行的关键技术,其重要性不言而喻。 一、水位雨量在线监测系统的基本原理 水位雨量在线监测系统主要由数据采集单元、数据传输网络、数据处理中心及用户终端四大部分构成,形成了一个完整的闭环系统。 数据采集单元:这是系统的“眼睛”,

性能分析之MySQL索引实战案例

文章目录 一、前言二、准备三、MySQL索引优化四、MySQL 索引知识回顾五、总结 一、前言 在上一讲性能工具之 JProfiler 简单登录案例分析实战中已经发现SQL没有建立索引问题,本文将一起从代码层去分析为什么没有建立索引? 开源ERP项目地址:https://gitee.com/jishenghua/JSH_ERP 二、准备 打开IDEA找到登录请求资源路径位置

csu 1446 Problem J Modified LCS (扩展欧几里得算法的简单应用)

这是一道扩展欧几里得算法的简单应用题,这题是在湖南多校训练赛中队友ac的一道题,在比赛之后请教了队友,然后自己把它a掉 这也是自己独自做扩展欧几里得算法的题目 题意:把题意转变下就变成了:求d1*x - d2*y = f2 - f1的解,很明显用exgcd来解 下面介绍一下exgcd的一些知识点:求ax + by = c的解 一、首先求ax + by = gcd(a,b)的解 这个

2. c#从不同cs的文件调用函数

1.文件目录如下: 2. Program.cs文件的主函数如下 using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;using System.Windows.Forms;namespace datasAnalysis{internal static

hdu1394(线段树点更新的应用)

题意:求一个序列经过一定的操作得到的序列的最小逆序数 这题会用到逆序数的一个性质,在0到n-1这些数字组成的乱序排列,将第一个数字A移到最后一位,得到的逆序数为res-a+(n-a-1) 知道上面的知识点后,可以用暴力来解 代码如下: #include<iostream>#include<algorithm>#include<cstring>#include<stack>#in

zoj3820(树的直径的应用)

题意:在一颗树上找两个点,使得所有点到选择与其更近的一个点的距离的最大值最小。 思路:如果是选择一个点的话,那么点就是直径的中点。现在考虑两个点的情况,先求树的直径,再把直径最中间的边去掉,再求剩下的两个子树中直径的中点。 代码如下: #include <stdio.h>#include <string.h>#include <algorithm>#include <map>#

C#实战|大乐透选号器[6]:实现实时显示已选择的红蓝球数量

哈喽,你好啊,我是雷工。 关于大乐透选号器在前面已经记录了5篇笔记,这是第6篇; 接下来实现实时显示当前选中红球数量,蓝球数量; 以下为练习笔记。 01 效果演示 当选择和取消选择红球或蓝球时,在对应的位置显示实时已选择的红球、蓝球的数量; 02 标签名称 分别设置Label标签名称为:lblRedCount、lblBlueCount

【区块链 + 人才服务】可信教育区块链治理系统 | FISCO BCOS应用案例

伴随着区块链技术的不断完善,其在教育信息化中的应用也在持续发展。利用区块链数据共识、不可篡改的特性, 将与教育相关的数据要素在区块链上进行存证确权,在确保数据可信的前提下,促进教育的公平、透明、开放,为教育教学质量提升赋能,实现教育数据的安全共享、高等教育体系的智慧治理。 可信教育区块链治理系统的顶层治理架构由教育部、高校、企业、学生等多方角色共同参与建设、维护,支撑教育资源共享、教学质量评估、