Previous Next


Graph Method (RDKResults Object)

Description

Makes a graph of the simulation result (and optional additional results to overlay). The Destination property controls how the graph is returned.

Syntax

object.Graph(curveType As RDKResultCurveType, ParamArray overlays())

Arguments

curveType (Required RDKResultCurveType) – the type of curve to generate. One of the following values:

overlays (Optional RDKDistribution objects) – up to 5 additional results to overlay on top the primary result being graphed.

Return Value

(Object) – if the Destination property is set to RDKBitmapImage or RDKMetafileImage, the return value is a Picture object, which can be directly assigned to a Visual Basic picture or image control (or other compatible ActiveX container). If Destination is RDKExcel, the object returned is the Excel Chart Object that was created. If Destination is a file, the object returned is Nothing.

Example

'Single Result to graph:
Set Picture1.Picture = ResultObj.Graph(RDKCurveTypeHistogram)
'Distribution with two overlays (o1 and o2)
Set Picture1.Picture = ResultObj.Graph(RDKCurveTypeHistogram, o1, o2)