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

news/2024/9/25 5:52:34/

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

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

(1)第一个为swsUserPreferenceIntegerValue_e,这个枚举的含义为用户偏好整数值,下面是官方的具体枚举值:

MemberDescription
swsColorChartColorOptionBaseChartColorNumber23 = Get or set the number of colors in the color chart; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Color Options > No of chart colors
swsColorChartColorOptionChartColorNumber22 = Get or set the user-defined number of colors in the color chart; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Color Options > User defined
swsColorChartColorOptionLegendType24 = Get or set the color legend type as defined in swsColorChartOptionLegendTypeValue_e; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Color Options > (Default, Rainbow, Gray scale, User Defined)
swsColorChartColorOptionvonMisesColorValue27 = Get or set the color for values above yield for vonMises plots; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Color Options > Specify color for values above yield for vonMises plot
swsColorChartNumberFormatLegendPrecision25 = Get or set the number of decimal places for precision of number formats; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Number format > No. of decimal places:
swsColorChartNumberFormatOption21 = Get or set the number format as defined in swsColorChartNumberFormatOptionValue_e; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Number format > (Scientific, Floating, or General)
swsColorChartNumberFormatUseDiffNoFormatOption26 = Get or set which notation other than scientific to use for small numbers as defined in swsColorNumberFormatUseDiffNumberFormatOptionValue_e; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Number format > Scientific > Use different number format for small numbers (0.001 < |x| < 1000) > (Floating or General)
swsColorChartPosition3 = Get or set the position of the color bar as defined in swsColorChartPositionValue_e; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Position > (Predefined positions or user defined)
swsColorChartPositionUserDefinedXValue18 = Get or set the color bar's horizontal distance from the left of the graphics area as a percentage of the width of the window; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Position > User defined > Horizontal from left:
swsColorChartPositionUserDefinedYValue19 = Get or set the color bar's vertical distance from the top of the graphics area as a percentage of the height of the window; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Position > User defined > Vertical from top:
swsColorChartWidthOption20 = Get or set the color chart width as defined in swsColorChartWidthOptionValue_e; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Width
swsDefaultResultFolder1 = Get or set the results folder option as defined in swsResultFolderValue_e; corresponds to Simulation > Options > Default Options > Results > Results folder > (SOLIDWORKS document folder or User defined)
swsDefaultSolverValue0 = Get or set the default solver as defined in swsSolverType_e; corresponds to Simulation > Options > Default Options > Results > Default Solver > (Automatic, Direct sparse, or FFEPlus) 
swsEMailType30
swsPlotBoundaryOptionMeshColor9 = Get or set the mesh color for boundaries (see Remarks); corresponds to Simulation > Options > Default Options > Plot > Settings options > Boundary options > Mesh > color select box
swsPlotBoundaryOptionModelColor29 = Get or set the model color for boundaries (see Remarks); corresponds to Simulation > Options > Default Options > Plot > Settings options > Boundary options > Model
swsPlotBoundaryOptionTranslucentSingleColorSetting8 = Get or set the translucent color for boundaries (see Remarks); corresponds to Simulation > Options > Default Options > Plot > Settings options > Boundary options > Translucent (Single color) > color select box
swsPlotDeformedShapeOptionSetSuperImposeOption16 = Get or set the translucent color option for superimposing the model on deformed shape as defined in swsPlotDeformedShapeOptionSuperImposeValue_e; corresponds to Simulation > Options > Default Options > Plot > Deformed shape options > Show results on deformed shape > Superimpose model on deformed shape > Translucent (part colors or single color)
swsPlotDeformedShapeOptionSetting12 = Get or set how to show deformed shape results as defined in swsPlotDeformedShapeOptionValue_e; corresponds to Simulation > Options > Default Options > Plot > Deformed shape options > Show results on undeformed shape or Show results on deformed shape
swsPlotDeformedShapeOptionTranslucentColor28 = Get or set the translucent color for superimposing the model on deformed shape (see Remarks);  corresponds to Simulation > Options > Default Options > Plot > Deformed shape options > Show results on deformed shape > Superimpose model on deformed shape > Translucent (single color) > color select box
swsPlotDeformedShapeResultOther15 = Get or set the deformation scale factor for all other studies as defined in swsPlotDeformedShapeOptionScaleFactorOtherValue_e; corresponds to Simulation > Options > Default Options > Plot > Deformed shape options > Show results on deformed shape > Deformation scale factor for: > all other studies: > Automatic or True(1.0)
swsPlotDeformedShapeResultScaleContact13 = Get or set the deformation scale factor for all studies with "No penetration" contact as defined in swsPlotDeformedShapeOptionScaleFactorContactValue_e; corresponds to Simulation > Options > Default Options > Plot > Deformed shape options > Show results on deformed shape > Deformation scale factor for: > all studies with "No penetration" contact: > Automatic or True(1.0)
swsPlotDeformedShapeResultScaleLarge14 = Get or set the deformation scale factor for studies with the "Large displacement" option as defined in swsPlotDeformedShapeOptionScaleFactorLargeDispValue_e; corresponds to Simulation > Options > Default Options > Plot > Deformed shape options > Show results on deformed shape > Deformation scale factor for: > studies with the "Large displacement" option: > Automatic or True(1.0)
swsPlotSettingsBoundaryOption5 = Get or set the boundary option as defined in swsPlotBoundarySettingsOptionValue_e; corresponds to Simulation > Options > Default Options > Plot > Settings options > Boundary options
swsPlotSettingsFringeOption4 = Get or set the fringe option as defined in swsPlotFringeSettingsOptionValue_e; corresponds to Simulation > Options > Default Options > Plot > Settings options > Fringe options
swsPlotShowExcludedBodiesOption6 = Get or set the translucent color option for excluded bodies as defined in swsPlotShowExcludedBodiesOptionValue_e; corresponds to Simulation > Options > Default Options > Plot > Settings options > Show excluded bodies > Translucent (Single color or Part colors)
swsPlotShowExcludedBodyTranslucentSingleColor10 = Get or set the translucent color for all excluded bodies (see Remarks);  corresponds to Simulation > Options > Default Options > Plot > Settings options > Show excluded bodies > Translucent (Single color) > color select box
swsPlotShowHiddenBodiesOption7 = Get or set the translucent color option for hidden bodies as defined in swsPlotShowHiddenBodiesOptionValue_e; corresponds to Simulation > Options > Default Options > Plot > Settings options > Show hidden bodies > Translucent (Single color or Part colors)
swsPlotShowHiddenBodyTranslucentSingleColor11 = Get or set the translucent color for all hidden bodies (see Remarks); corresponds to Simulation > Options > Default Options > Plot > Settings options > Show hidden bodies > Translucent (Single color) > color select box
swsReportPublishOption2 = Get or set the report folder location as defined in swsReportFolderValue_e; corresponds to Simulation > Options > Default Options > Report > Report publish options > Report folder
swsReportPublishOptionReportFolderUserDefinedPath17

(2)第二个为swsUserPreferenceToggle_e,这个枚举的含义为用户首选项切换值,下面是官方的具体枚举值:

MemberDescription
swsAverageStressesAtMidnodes17 = Get or set whether to average stresses at mid-nodes; corresponds to Simulation > Options > Default Options > Results > Average stresses at mid-nodes (high-quality solid mesh only)
swsColorChartColorNoOfChartColorFlip13 = Get or set whether to flip the chart colors; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Color options > Flip
swsColorChartColorSpecifyColorForvonMisesPlot14 = Get or set whether to specify color for values above yield for vonMises plot; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Color options > Specify color for values above yield for vonMises plot
swsColorChartDetails11 = Get or set whether to display plot details; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Display plot details 
swsColorChartDisplay10 = Get or set whether to display plot details; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Display color charts 
swsColorChartNumberFormatUseDifferentNumberFormat12 = Get or set whether to use a different number format for small numbers; corresponds to Simulation > Options > Default Options > Plot > Color Chart > Number format > Scientific > Use different number format for small numbers (0.001 < |x| < 1000)
swsEMailAuthentication16 = Get or set whether my server requires authentication; corresponds to Simulation > Options > System Options > Email Notification Settings > My server requires authentication
swsLoadAllStudies_e15 = Get or set whether to load all Simulation studies when opening a model; corresponds to Simulation > Options > System Options > General > Load all Simulation studies when opening a model. (requires more time to open a model)
swsPlotAnnotationShowMaxValue5 = Get or set whether to show the maximum value annotation in plots; corresponds to Simulation > Options > Default Options > Plot > Annotation and range > Show maximum value annotation
swsPlotAnnotationShowMinValue4 = Get or set whether to show the minimum value annotation in plots; corresponds to Simulation > Options > Default Options > Plot > Annotation and range > Show minimum value annotation
swsPlotAnnotationShowRangeBasedOnShowCompOnly6 = Get or set whether to show range based on shown components only in plots; corresponds to Simulation > Options > Default Options > Plot > Annotation and range > Show range based on shown components only
swsPlotDeformedShapeOptionSuperImposeModelOnDeformedShape9 = Get or set whether to superimpose model on deformed shape in plots; corresponds to Simulation > Options > Default Options > Plot > Deformed shape options > Show rsults on deformed shape > Superimpose model on deformed shape
swsPlotShowExcludedBodies7 = Get or set whether to show excluded bodies in plots; corresponds to Simulation > Options > Default Options > Plot > Settings options > Show excluded bodies
swsPlotShowHiddenBodies8 = Get or set whether to show hidden bodies in plots; corresponds to Simulation > Options > Default Options > Plot > Settings options > Show hidden bodies
swsResultFolderKeepTempDataBase1 = Get or set whether to keep temporary database files in results folder; corresponds to Simulation > Options > Default Options > Results > Results folder > Keep temporary database files
swsResultFolderUnderSubFolder0 = Get or set whether to set results folder under a SOLIDWORKS document folder sub folder; corresponds to Simulation > Options > Default Options > Results > Results folder > SOLIDWORKS document folder > Under sub folder
swsShowReportOnPublish3 = Get or set whether to show the report when it's published; corresponds to Simulation > Options > Default Options > Report > Report publish options > Show report on publish
swsTrendTrackerBackUpModelsRestoreIteration2 = Get or set whether to back up models for Restore to Iteration; corresponds to Simulation > Options > Default Options > Results > Trend Tracker > Backup models for Restore to Iteration

(3)第三个为swsWindowsBasicColors_e,这个枚举的含义为windows基本色,下面是官方的具体枚举值:

MemberDescription
swsAqua16776960
swsBlack0
swsBlue16711680
swsCoral4227327
swsCyan16777088
swsDarkBlue4194304
swsDarkGreen4210688
swsDarkOliveGreen16384
swsDarkPurple4194368
swsDarkRed4194432
swsDeepGray64
swsDeepSkyBlue12645680
swsDodgerBlue16744448
swsGray8421504
swsGreen32768
swsGreenYellow65408
swsIndigo8388672
swsKhaki4227200
swsLawnGreen4259584
swsLightRed8421631
swsLightSalmon4210816
swsLightSeaGreen8421440
swsLightYellow8454143
swsLime65280
swsMagenta16711935
swsMaroon128
swsMediumPurple12615808
swsMidnightBlue10485760
swsNavy8388608
swsOlive32896
swsOrange33023
swsPaleGreen8454016
swsPlum12615935
swsPurple8388736
swsRed255
swsRoyalBlue8404992
swsSapGreen4227072
swsSgiBeet16711808
swsSgiSalmon8388863
swsSgiSlateBlue16744576
swsSilver12632256
swsSpringGreen8453888
swsTan16512
swsTeal8421376
swsViolet16744703
swsWhite16777215
swsYellow65535

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


http://www.ppmy.cn/news/1452017.html

相关文章

ARP欺骗使局域网内设备断网

一、实验准备 kali系统&#xff1a;可使用虚拟机软件模拟 kali虚拟机镜像链接&#xff1a;https://www.kali.org/get-kali/#kali-virtual-machines 注意虚拟机网络适配器采用桥接模式 局域网内存在指定断网的设备 二、实验步骤 打开kali系统命令行&#xff1a;ctrlaltt可快…

C#-FTP帮助类相关操作的简单封装

目录 1、Ftp帮助类的框架封装 2、初始化Ftp连接 3、检查Ftp连接 4、Ftp文件上传 5、Ftp文件下载 6、获取Ftp上文件/文件夹列表 7、删除Ftp文件 8、删除Ftp文件夹 9、创建Ftp文件夹 10、更改Ftp文件名 11、获取Ftp文件大小 1、Ftp帮助类的框架封装 public class FtpH…

UNIAPP小程序从入门到精通

第一章> 1、如何创建项目 2、项目的基本结构 3、页面组成&#xff08;wxss可以不用&#xff09; 4、组件的使用 5、协同开发与发布 第二章> 6、WXML页面结构渲染 7、style样式美化 8、a…

【Redis】深入理解 Redis 锁:实现原理、应用场景与最佳实践

引言 在分布式系统中&#xff0c;实现数据的并发访问控制是一项至关重要的任务。在这个任务中&#xff0c;锁&#xff08;Lock&#xff09;起到了关键的作用。Redis 是一个流行的内存数据库&#xff0c;它不仅提供了高性能的键值存储&#xff0c;还能通过其强大的特性实现分布…

Oracle23ai来了,23爱,全能、超级巨兽...

&#x1f4e2;&#x1f4e2;&#x1f4e2;&#x1f4e3;&#x1f4e3;&#x1f4e3; 作者&#xff1a;IT邦德 中国DBA联盟(ACDU)成员&#xff0c;10余年DBA工作经验&#xff0c; Oracle、PostgreSQL ACE CSDN博客专家及B站知名UP主&#xff0c;全网粉丝10万 擅长主流Oracle、My…

非接触式光学检测原理介绍

光学测量分为接触式和非接触式&#xff0c;接触式测量&#xff0c;由于要接触物体被测表面&#xff0c;所以对于物体表面有要求的就不适用&#xff0c;并且测量精度会受表面粗糙度的影响导致测量仪器有磨损且测量不准确。所以非接触式测量得到极大的发展&#xff0c;非接触式测…

循环链表 -- c语言实现

#pragma once // 带头双向循环链表增删查改实现 #include<stdlib.h> #include<stdio.h> #include<assert.h>typedef int LTDataType;typedef struct ListNode {LTDataType data;struct ListNode* next;struct ListNode* prev; }ListNode;//双链表申请一个新节…

使用FastGPT+OneAPI在本地使用Llama3

FastGPT 是一个基于 LLM 大语言模型的知识库问答系统&#xff0c;提供开箱即用的数据处理、模型调用等能力。同时可以通过 Flow 可视化进行工作流编排&#xff0c;从而实现复杂的问答场景&#xff01;他的重要特点就是工作流编排。 工作流编排&#xff1a;基于 Flow 模块的工作…