Hide Table of Contents
GetPlotColorOptions Method (ICWResults)

Gets the color options for the specified plot.

.NET Syntax

Visual Basic (Declaration) 
Function GetPlotColorOptions( _
   ByVal SPlotName As System.String, _
   ByRef NType As System.Integer, _
   ByRef NBaseColor As System.Integer, _
   ByRef NContour As System.Integer, _
   ByRef BFlip As System.Boolean, _
   ByRef BSpecifyColorLimit As System.Boolean, _
   ByRef VarColor As System.Object _
) As System.Integer
Visual Basic (Usage) 
Dim instance As ICWResults
Dim SPlotName As System.String
Dim NType As System.Integer
Dim NBaseColor As System.Integer
Dim NContour As System.Integer
Dim BFlip As System.Boolean
Dim BSpecifyColorLimit As System.Boolean
Dim VarColor As System.Object
Dim value As System.Integer
 
value = instance.GetPlotColorOptions(SPlotName, NType, NBaseColor, NContour, BFlip, BSpecifyColorLimit, VarColor)
C# 
System.int GetPlotColorOptions( 
   System.string SPlotName,
   out System.int NType,
   out System.int NBaseColor,
   out System.int NContour,
   out System.bool BFlip,
   out System.bool BSpecifyColorLimit,
   out System.object VarColor
)
C++/CLI 
System.int GetPlotColorOptions( 
&   System.String^ SPlotName,
&   [Out] System.int NType,
&   [Out] System.int NBaseColor,
&   [Out] System.int NContour,
&   [Out] System.bool BFlip,
&   [Out] System.bool BSpecifyColorLimit,
&   [Out] System.Object^ VarColor
) 

Parameters

SPlotName
Plot name (see Remarks)
NType
Color map as defined in swsColorChartOptionLegendTypeValue_e (see Remarks)
NBaseColor
Number of base colors in color map specified by NType (see Remarks)
NContour
Number of gradient colors
BFlip
True to reverse the color mapping, false to not
BSpecifyColorLimit
True to specify a color for values above the yield limit, false to not; valid only for von Mises stress plots of single body parts where the yield strength is defined
VarColor

Array of RGB triplets:

  • RGB color for values above the yield limit; valid only if BSpecifyColorLimit is true
  • One or more RGB triplets of user-defined colors

Return Value

Error as defined in swsResultsError_e

Example

Remarks

Call ICWResults::GetPlotNames to populate SPlotName.

If NType is swsColorChartOptionLegendTypeValue_e... Then NBaseColor is...
swsColorChartOptionLegendDefault 5
swsColorChartOptionLegendRainbow 7
swsColorChartOptionLegendGrayScale 2
swsColorChartOptionLegendUserDefined 2 - 9
 

See Also

Availability

SOLIDWORKS Simulation API 2015 SP0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetPlotColorOptions Method (ICWResults)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2017 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.