Sets the color options for the specified plot.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function SetPlotColorOptions( _
ByVal SPlotName As System.String, _
ByVal NType As System.Integer, _
ByVal NContour As System.Integer, _
ByVal NBaseColor As System.Integer, _
ByVal BFlip As System.Boolean, _
ByVal BSpecifyColorLimit As System.Boolean, _
ByVal 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 NContour As System.Integer
Dim NBaseColor 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.SetPlotColorOptions(SPlotName, NType, NContour, NBaseColor, BFlip, BSpecifyColorLimit, VarColor) |
Parameters
- SPlotName
- Plot name (see Remarks)
- NType
- Color map as defined in swsColorChartOptionLegendTypeValue_e (see Remarks)
- NContour
- 2 <= Number of gradient colors <= 24
- NBaseColor
- Number of base colors for NType; valid only if NType is swsColorChartOptionLegendTypeValue_e.swsColorChartOptionLegendUserDefined (see Remarks)
- 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
Remarks
See Also
Availability
SOLIDWORKS Simulation API 2015 SP0