python 人工智能 C# Solidworks二次开发:枚举应用实战(第十三讲) - Color Chart >
大家好,今天继续介绍我们的枚举应用系列。
下面是今天要介绍的枚举:
(1)第一个为swsUserPreferenceIntegerValue_e,这个枚举的含义为用户偏好整数值,下面是官方的具体枚举值:
MemberDescriptionswsColorChartColorOptionBaseChartColorNumber23 = 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 colorsswsColorChartColorOptionChartColorNumber22 = 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 definedswsColorChartColorOptionLegendType24 = 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 plotswsColorChartNumberFormatLegendPrecision25 = 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 > WidthswsDefaultResultFolder1 = 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) swsEMailType30swsPlotBoundaryOptionMeshColor9 = Get or set the mesh color for boundaries (see Remarks); corresponds to Simulation > Options > Default Options > Plot > Settings options > Boundary options > Mesh > color select boxswsPlotBoundaryOptionModelColor29 = Get or set the model color for boundaries (see Remarks); corresponds to Simulation > Options > Default Options > Plot > Settings options > Boundary options > ModelswsPlotBoundaryOptionTranslucentSingleColorSetting8 = 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 boxswsPlotDeformedShapeOptionSetSuperImposeOption16 = 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 shapeswsPlotDeformedShapeOptionTranslucentColor28 = 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 boxswsPlotDeformedShapeResultOther15 = 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 optionsswsPlotSettingsFringeOption4 = Get or set the fringe option as defined in swsPlotFringeSettingsOptionValue_e; corresponds to Simulation > Options > Default Options > Plot > Settings options > Fringe optionsswsPlotShowExcludedBodiesOption6 = 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 boxswsPlotShowHiddenBodiesOption7 = 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 boxswsReportPublishOption2 = Get or set the report folder location as defined in swsReportFolderValue_e; corresponds to Simulation > Options > Default Options > Report > Report publish options > Report folderswsReportPublishOptionReportFolderUserDefinedPath17
(2)第二个为swsUserPreferenceToggle_e,这个枚举的含义为用户首选项切换值,下面是官方的具体枚举值:
MemberDescriptionswsAverageStressesAtMidnodes17 = 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 > FlipswsColorChartColorSpecifyColorForvonMisesPlot14 = 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 plotswsColorChartDetails11 = 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 authenticationswsLoadAllStudies_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 annotationswsPlotAnnotationShowMinValue4 = 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 annotationswsPlotAnnotationShowRangeBasedOnShowCompOnly6 = 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 onlyswsPlotDeformedShapeOptionSuperImposeModelOnDeformedShape9 = 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 shapeswsPlotShowExcludedBodies7 = Get or set whether to show excluded bodies in plots; corresponds to Simulation > Options > Default Options > Plot > Settings options > Show excluded bodiesswsPlotShowHiddenBodies8 = Get or set whether to show hidden bodies in plots; corresponds to Simulation > Options > Default Options > Plot > Settings options > Show hidden bodiesswsResultFolderKeepTempDataBase1 = Get or set whether to keep temporary database files in results folder; corresponds to Simulation > Options > Default Options > Results > Results folder > Keep temporary database filesswsResultFolderUnderSubFolder0 = 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 folderswsShowReportOnPublish3 = 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 publishswsTrendTrackerBackUpModelsRestoreIteration2 = 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基本色,下面是官方的具体枚举值: 拼多多帮助力入口
MemberDescriptionswsAqua16776960swsBlack0swsBlue16711680swsCoral4227327swsCyan16777088swsDarkBlue4194304swsDarkGreen4210688swsDarkOliveGreen16384swsDarkPurple4194368swsDarkRed4194432swsDeepGray64swsDeepSkyBlue12645680swsDodgerBlue16744448swsGray8421504swsGreen32768swsGreenYellow65408swsIndigo8388672swsKhaki4227200swsLawnGreen4259584swsLightRed8421631swsLightSalmon4210816swsLightSeaGreen8421440swsLightYellow8454143swsLime65280swsMagenta16711935swsMaroon128swsMediumPurple12615808swsMidnightBlue10485760swsNavy8388608swsOlive32896swsOrange33023swsPaleGreen8454016swsPlum12615935swsPurple8388736swsRed255swsRoyalBlue8404992swsSapGreen4227072swsSgiBeet16711808swsSgiSalmon8388863swsSgiSlateBlue16744576swsSilver12632256swsSpringGreen8453888swsTan16512swsTeal8421376swsViolet16744703swsWhite16777215swsYellow65535
本篇文章要介绍的就是这么多,我们下篇文章再见。
推荐链接