Navigation: Scripting Reference Manual > Functions & Subroutines > ARNExportToLMAFile

 

ARNExportToLMAFile

 

Contact Us: fredsupport@photonengr.com

 

Description

Writes the cell data from a 3D Grid Wall analysis results node to the specified file location in LMA format.

 

 

Syntax

bFlag = ARNExportToLMAFile( arnNode, fName )

 

 

Parameters

bFlag (Boolean)

Returned boolean flag indicating successful export (True) or failure (False).

 

arnNode As Long

Node number of the 3D Grid Wall analysis result node whose cell data is being exported.

 

fName As String

Full path name of the output file being created.

 

 

Example

The following example traces a set of rays, retrieves the ARN produced by a 3D Box detector entity and then writes the result to an LMA file.

 

Sub Main

 

    'Delete existing rays and ARNs, trace new rayset

    DeleteRays()

    ARNDeleteAllNodes()

    TraceCreate

 

    'Retrieve the ARN created by 3D Box detector entity

    Dim Box3dDe As Long, arnNode As Long

    Box3dDe = FindFullName( "Analysis Surface(s).Detector Entity - 1x1" )

    arnNode = DEGetMostRecentARNNum( Box3dDe )

 

    'Export result to LVX file format

    Dim success As Boolean

    Dim fName As String

    fName = GetDocDir() & "\3dGridWallResult.lma"

    success = ARNExportToLMAFile( arnNode, fName )

    If success Then

        Print "ARN successfully saved to LMA file."

    Else

        Print "ARN not saved to LMA file."

    End If

 

End Sub

 

 

See Also

All ARN Scripting Commands

 

 

 

 

 

Copyright © Photon Engineering, LLC