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

本文主要是介绍C# Solidworks二次开发:枚举应用实战(第十一讲),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

大家好,今天继续介绍我们的枚举应用系列。

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

(1)第一个为swsPVResultCombinationError_e,这个枚举值的含义为结合压力容器设计研究结果时的错误,下面是官方的具体枚举值:

MemberDescription
swsPVResultCombinationError_AtleastTwoItemsNeeded2 = You need to specify at least two studies and multiplication factors
swsPVResultCombinationError_CombineAnalysisNotDone7 = The analysis was not done
swsPVResultCombinationError_CombineIncompatibleConfiguration10 = Incompatible configurations
swsPVResultCombinationError_CombineIncompatibleConnectors15 = Incompatible connectors
swsPVResultCombinationError_CombineIncompatibleContact14 = Incompatible contacts
swsPVResultCombinationError_CombineIncompatibleMesh9 = Incompatible meshes
swsPVResultCombinationError_CombineIncompatiblePlanarType16 = Incompatible planar types
swsPVResultCombinationError_CombineIncompatibleRestraints11 = Incompatible restraints
swsPVResultCombinationError_CombineIncompatibleResults8 = Incompatible results
swsPVResultCombinationError_CombineIncompatibleShellsMaterials13 = Incompatible shell materials
swsPVResultCombinationError_CombineIncompatibleSolidsMaterials12 = Incompatible solid materials
swsPVResultCombinationError_InvalidFactors5 = One or more multiplication factors are invalid
swsPVResultCombinationError_InvalidStudy6 = One or more studies are invalid
swsPVResultCombinationError_ItemsNotSameInNumber4 = Number of elements in the multiplication factors and study names arrays are not the same
swsPVResultCombinationError_NoError0 = Successful
swsPVResultCombinationError_NotAvailable1 = Result combination is not available for this study
swsPVResultCombinationError_StudyNamesNotProper3 = Study names are not valid

(2)第二个为swsResultPlotErrorCode_e,这个枚举值的含义为结果图错误码,下面是官方的具体枚举值:

MemberDescription
swsResultPlot_CosworksViewNotPresent16 = Cosmos view is not present
swsResultPlot_EquivalentStressNotApplicable15 = Equivalent stress plot is not applicable
swsResultPlot_FailedPlotCreation2 = Plot not created
swsResultPlot_ImproperResultsEquation13 = Invalid results equation
swsResultPlot_InvalidComponentType6 = Invalid result component type
swsResultPlot_InvalidExternalResultsFile17
swsResultPlot_InvalidInputArgInCombiWithTensorVectorFlag4 = Tensor plot cannot be rendered when "Render Shell in 3D" or "Show plot on selected entities" is selected
swsResultPlot_InvalidIsoValueRange18
swsResultPlot_InvalidMeshAppliedToStudy9 = Mesh not compatible with study type
swsResultPlot_InvalidResultType5 = Invalid result type
swsResultPlot_InvalidSelectedEntities3 = Invalid selected entities
swsResultPlot_InvalidSmoothingCycleRange19
swsResultPlot_InvalidStudy1 = Study is missing important internal components
swsResultPlot_InvalidStudyType12 = Step numbers not compatible with study type
swsResultPlot_InvalidUnitType7 = Invalid unit type
swsResultPlot_IsAvailableOnlyForElements8 = Plot is valid only for elements
swsResultPlot_IsAvailableOnlyForNodes11 = Plot is valid only for nodes
swsResultPlot_MeshInformationNotFound20
swsResultPlot_NoError0 = No error
swsResultPlot_PlotDoesNotExist14 = Result plot does not exist
swsResultPlot_TryingToSetInvalidProperty10 = Invalid property

(3)第三个为swsRunAnalysisError_e,这个枚举值的含义为运行分析错误,下面是官方的具体枚举值:

MemberDescription
swsRunAnalysisDefineInitialTemperature3 = Define initial temperatures to perform transient thermal analysis
swsRunAnalysisErrorAnalysisFailed24 = Analysis failed
swsRunAnalysisErrorAuthorizationFailed22 = Authorization failed for this analysis type
swsRunAnalysisErrorDefineRigidVirtualWallContact2 = Rigid virtual wall contact must be defined for grounded bolts
swsRunAnalysisErrorEXMaterialPropertyNotDefined13 = Elastic modulus (EX) material property not defined
swsRunAnalysisErrorEXValue14 = Elastic modulus (EX) should be >  0.0
swsRunAnalysisErrorInvalidLBC30 = Invalid load boundary conditions
swsRunAnalysisErrorMaterialNotDefined19 = Material is not defined
swsRunAnalysisErrorMaterialNotDefinedForComponents20 = Material is not defined for one or more components
swsRunAnalysisErrorMaterialNotDefinedForShells18 = Material is not defined for one or more shells
swsRunAnalysisErrorMeshNotFound23 = Mesh not found; create mesh first
swsRunAnalysisErrorMeshNotIdentical11 = The mesh is not identical for static studies used in different events
swsRunAnalysisErrorMultipleLoadsUseSameTimeCurve4 = Multiple loads on an entity should use the same time curve
swsRunAnalysisErrorNeedOneOrMoreStaticStudies6 = One or more static, nonlinear, or linear dynamic studies needed to perform fatigue analysis; studies containing beams only are excluded
swsRunAnalysisErrorNoFatigueEvent7 = No fatigue event defined
swsRunAnalysisErrorNoSNCurve9 = No SN curve available
swsRunAnalysisErrorNoSolidBody21 = No solid body to process
swsRunAnalysisErrorNoValidShell12 = No valid shell defined
swsRunAnalysisErrorPadaptiveNotSupportCyclicSymmetry27 = Cyclic symmetry is incompatible with p-adaptive method
swsRunAnalysisErrorPadaptiveNotSupportLargeDisplacement26 = Large displacement is incompatible with p-adaptive method
swsRunAnalysisErrorPadaptiveNotSupportNoPenetration28 = No Penetration contact is incompatible with p-adaptive method
swsRunAnalysisErrorPadaptiveNotSupportRemoteLoadMassGapContactConnector

29 = P-adaptive method does not support:

  • remove load/mass
  • gap contact
  • connectors
swsRunAnalysisErrorPoissonsRatio15 = Poisson's Ratio should be less than 0.5
swsRunAnalysisErrorRemoveOrChangeCreep17 = Creep option for material works only with force control method; remove creep or change the control method in the Advanced page of study's properties
swsRunAnalysisErrorSetUpDropTestStudy5 = Drop test study is not set up
swsRunAnalysisErrorStudyNotExist25 = Study does not exist
swsRunAnalysisErrorSuccessful0 = Successful
swsRunAnalysisErrorThermalConductivityNotDefined16 = Thermal conductivity not defined
swsRunAnalysisErrorTimeDependentOrAmplitideOnlyLoads8 = All loads should be either time dependent or amplitude only
swsRunAnalysisErrorUseHighQualityMesh1 = Draft mesh is incompatible with p-adaptive method; use high quality mesh

本篇文章要介绍的就是这么多,我们下篇文章再见。

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



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

相关文章

网页解析 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应用案例

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