Description Displays an Analysis Results Node (ARN) in a chart window.
Syntax success = ARNDisplayInChart( arnNode, parmString )
Parameters success (Boolean) True if chart display was successful. False otherwise.
arnNode As Long Node number of the ARN being displayed in the chart view.
parmString As String Current implementation requires at least an empty string argument. All parameter string entries other than those listed in the table below will be ignored and default chart settings used. Future implementations will allow additional display options using this string argument.
Example The following example traces a new rayset and uses an existing analysis surface to compute and display both Irradiance and Color Image results.
Sub Main Dim arnNode As Long, anaNode As Long, count As Long Dim success As Boolean Dim parmString As String
'get the node number of the analysis surface being used anaNode = FindFullName( "Analysis Surface(s).Analysis Surface(s)_Detector Entity" )
'delete current rayset and trace sources DeleteRays TraceCreate
'store the results of the irradiance calculation in an ARN count = IrradianceToARN( anaNode, "IrradARN", arnNode )
'display the ARN in the chart view, empty parameter string parmString = "" success = ARNDisplayInChart( arnNode, parmString)
'calculate a Color Image count = ColorImageToARN( anaNode, "CI", arnNode )
'display the ARN in the chart view, use brightness option parmString = "Brightness=10" success = ARNDisplayInChart( arnNode, parmString )
End Sub
See Also
|
||||||||||||