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

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

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

(1)第一个枚举为swsMaterialErrorWarning_e,这个API的含义为材料错误,下面是官方的具体枚举值:

Member Description
swsMaterialErrorWarningCreepWithForceControl 24 = Creep option for material works only with force control method; error
swsMaterialErrorWarningDefineCurveForEx 10 = Define curve for EX; error
swsMaterialErrorWarningDefinePointForStressStrainCurve 16 = Define point (0,0) for this stress-strain curve; error
swsMaterialErrorWarningDefineProperty 6 = Define at least one property; error
swsMaterialErrorWarningDefineStressStrainCurve 15 = Define stress-strain curve for material; error
swsMaterialErrorWarningDensityNotDefined 13 = Material density not defined; error
swsMaterialErrorWarningEXNotDefined 8 = EX (modulus of elasticity) not defined; error
swsMaterialErrorWarningEXValue 9 =EX should be > 0; error
swsMaterialErrorWarningFatigueSNCurvesCycles 3 = Cycle values of fatigue S-N curves should be monotonically increasing; error
swsMaterialErrorWarningInvalidLinearElasticAnisotropicMaterialModel 1 = The linear elastic anisotropic material model is invalid for this study; error
swsMaterialErrorWarningInvalidMaterialModel 2 = Invalid material model for this study; error
swsMaterialErrorWarningMaterialPropertyValue 7 = Material property value should be > 0; error
swsMaterialErrorWarningMaterialTemperatureCurveForNitinol 11 = Material temperature curve is not allowed for Nitinol; error
swsMaterialErrorWarningMaterialTemperatureDependencyIgnored 30 = Material temperature dependency is ignored for drop test analysis; warning
swsMaterialErrorWarningNUXYNotDefined 32 = Poisson's Ratio (NUXY) is not defined; program will use a default value of 0.0; warning
swsMaterialErrorWarningNUXYValue 12 = NUXY (Poissons Ratio) should be < 0.5; error
swsMaterialErrorWarningOnlyBilinearPlasticityForDropTestStudies 31 = Only bilinear plasticity is supported for drop test studies; stress-strain curves are ignored; warning
swsMaterialErrorWarningrKXNotDefined 14 = KX (thermal conductivity) not defined; error
swsMaterialErrorWarningSIGC_F2LessThanSIGC_S2 23 = Property SIGC_F2 should be less than SIGC_S2; error
swsMaterialErrorWarningSIGC_S1LessThanSIGC_F1 21 = Property SIGC_S1 should be less than SIGC_F1; error
swsMaterialErrorWarningSIGC_S2LessThanSIGC_F1 22 = Property SIGC_S2 should be less than SIGC_F1; error
swsMaterialErrorWarningSIGT_F2LessThanSIGT_S2 20 = Property SIGT_F2 should be less than SIGT_S2; error
swsMaterialErrorWarningSIGT_S1_F1_S2_F2Values 17 = Properties SIGT_S1, SIGT_F1, SIGT_S2 and SIGT_F2 should be > 0; error
swsMaterialErrorWarningSIGT_S1LessThanSIGT_F1 18 = Property SIGT_S1 should be less than SIGT_F1; error
swsMaterialErrorWarningSIGT_S2LessThanSIGT_F1 19 = Property SIGT_S2 should be less than SIGT_F1; error
swsMaterialErrorWarningSuccessful 0 = Successful
swsMaterialErrorWarningTooManyPointsSNCurve 5 = S-N curves should not have more than 200 data points; error
swsMaterialErrorWarningUniqueStressRatioForEachSNCurve 4 = Stress ratio should be unique for each S-N curve; error

(2)第二个为swsNonLinearStudyOptionsError_e,这个枚举的含义为非线性学习选项错误,下面是官方具体的枚举值:

Member Description
swsNonLinearStudyInvalidArcLengthMaximumDisplacementValue 17 = Invalid arc-length displacement value
swsNonLinearStudyInvalidArcLengthMaximumLoadValue 18 = Invalid arc-length load value
swsNonLinearStudyInvalidArcLengthMultiplierValue 16 = Value for maximum displacement (for translation DOF) is either <0.1 or >1
swsNonLinearStudyInvalidArcLengthStepsValue 19 = Invalid arc-length steps value
swsNonLinearStudyInvalidDisplaceComponentUnitValue 15 = Unit value for displacement component unit is <0 or >4
swsNonLinearStudyInvalidDisplaceComponentValue 14 = Displacement component value is <0 or >5
swsNonLinearStudyInvalidSingularityEliminationfactorValue 20 = Invalid singularity elimination factor value
swsNonLinearStudyOptionsErrorAutoSteppingParameters 2 = All auto-stepping parameters should be less than end time
swsNonLinearStudyOptionsErrorEmptyDispatch 12 = Empty Dispatch parameter
swsNonLinearStudyOptionsErrorSelectArcLengthControlType 7 = Select the arc-length control type
swsNonLinearStudyOptionsErrorSelectDirectSolver 9 = Select direct solver
swsNonLinearStudyOptionsErrorSelectDisplacementControlType 6 = Select the displacement control type
swsNonLinearStudyOptionsErrorSelectForceControl 10 = Select force control type
swsNonLinearStudyOptionsErrorSelectTimeCurve 8 = Select a time curve
swsNonLinearStudyOptionsErrorSelectVerticesOrDatumPoint 5 = Select a vertex or datum point
swsNonLinearStudyOptionsErrorSolutionSteps 4 = Nonlinear analysis can have up to 15,000 solution steps
swsNonLinearStudyOptionsErrorStartEndStepsAndIncrement 1 = Start time step, end time step, and increment should all be > 0
swsNonLinearStudyOptionsErrorStartTimeLessThanEndTime 3 = Start time should be < end time
swsNonLinearStudyOptionsErrorSuccessful 0 = Successful
swsNonLinearStudyOptionsErrorWrongArcLengthUnit 11 = Incorrect unit input; must be between 0 and 4
swsNonLinearStudyTimeCurveErrorInvalidStudyType 13 = Invalid study type

(3)第三个为swsPinConnectorEndEditError_e,这个枚举的含义为引脚连接器编辑错误,下面是官方的具体枚举值:

Member Description
swsPinConnectorEndEditErrorBodyExcludedFromAnalysis 23 = Selected entity is on a body excluded from analysis
swsPinConnectorEndEditErrorEntityAlreadyAdded 2 = Entity already added
swsPinConnectorEndEditErrorHasBeamBody 11 = Connector has a beam body
swsPinConnectorEndEditErrorHasMassElement 12 = Connection has a mass element
swsPinConnectorEndEditErrorIncludeStrengthData 25 = Select to include strength data
swsPinConnectorEndEditErrorIndexTooBig 10 = Specified index > number of entities
swsPinConnectorEndEditErrorInvalidConnectionType 27
swsPinConnectorEndEditErrorInvalidForAnalysis 26
swsPinConnectorEndEditErrorNoEntityAtIndex 1 = No entity at specified index
swsPinConnectorEndEditErrorNullEntity 24 = Entity is null
swsPinConnectorEndEditErrorPinBoltStrength 20 = Specify a positive value for the pin or bolt yield
swsPinConnectorEndEditErrorPinMass 17 = Specify a positive value for the pin mass
swsPinConnectorEndEditErrorRadiiNotEqual 7 = Radii of cylindrical faces of components are not equal
swsPinConnectorEndEditErrorSafetyFactor 21 = Specify a positive value for safety factor
swsPinConnectorEndEditErrorSelectAssemblyDocument 8 = Select assembly document
swsPinConnectorEndEditErrorSelectCircularEdge 22 = Select a circular edge
swsPinConnectorEndEditErrorSelectCircularEdges 13 = Select circular edges on shells
swsPinConnectorEndEditErrorSelectConcentricCylindricalFacesConnection 9 = Select two concentric cylindrical faces from two bodies for pin connector
swsPinConnectorEndEditErrorSelectConcentricCylindricalFacesConnector 6 = Select two concentric cylindrical faces from two bodies for pin connector
swsPinConnectorEndEditErrorSelectDifferentBody 14 = Select a different body for either entity
swsPinConnectorEndEditErrorSelectEntity 3 = Select an entity
swsPinConnectorEndEditErrorSelectFace 4 = Select a face
swsPinConnectorEndEditErrorSelectFaceCylindricalSurface 5 = Select a face with cylindrical surface
swsPinConnectorEndEditErrorSelectFacesFromSameHole 15 = Select the faces that belong to the same hole for the source
swsPinConnectorEndEditErrorSpecifyPositiveValue 16 = Specify a positive value
swsPinConnectorEndEditErrorSuccessful 0 = Successful
swsPinConnectorEndEditErrorTensileStressArea 18 = Specify a positive value for tensile stress area
swsPinConnectorEndEditErrorTesileStressAreaLarge 19 = Tensile stress area is too large

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

相关推荐
m0_613856298 分钟前
mysql如何利用事务隔离级别解决特定业务冲突_mysql隔离方案选型
jvm·数据库·python
Adios79418 分钟前
VPR:Pitts50K和Norland数据集下载
数据库
东风破13722 分钟前
DM用户权限、表、约束等对象的基本操作,SQL日志的开启介绍
数据库·sql·dm达梦数据库
叶小鸡28 分钟前
Java 篇-项目实战-苍穹外卖-笔记汇总
java·开发语言·笔记
收获不止数据库32 分钟前
达梦9发布会归来:AI 时代,我们需要一款什么样的数据库?
数据库·人工智能·ai·语言模型·数据分析
AI人工智能+电脑小能手44 分钟前
【大白话说Java面试题】【Java基础篇】第22题:HashMap 和 HashSet 有哪些区别
java·开发语言·哈希算法·散列表·hash
小宇的天下1 小时前
Virtuoso GUI 界面中的关键模块定义
数据库
bqq198610261 小时前
MySQL 5.7 与 MySQL 8.0 的主要区别
数据库·mysql
时空系1 小时前
第10篇:继承扩展——面向对象编程进阶 python中文编程
开发语言·python·ai编程
Elastic 中国社区官方博客2 小时前
Elastic-caveman : 在不损失 Elastic 最佳效果的情况下,将 AI 响应 tokens 减少64%
大数据·运维·数据库·人工智能·elasticsearch·搜索引擎·全文检索