Navigation: Scripting Reference Manual > Functions & Subroutines > SetSurfRayPathNode

 

SetSurfRayPathNode

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the ray path node number assignment for a given surface.  The surface will report itself as the assigned node number for ray path purposes.

 

 

Syntax

SetSurfRayPathNode surfNode, pathNode

 

 

Parameters

surfNode As Long

Node number of the surface whose ray path node number is being assigned.  This node ID must be a surface or the function will halt with error, "A referenced entity is not of the correct type".

 

pathNode As Long

Node number to be reported by the surface for ray path purposes.

 

 

Example

The following example code queries a surface named "Surf 1" for its ray path node number assignment and prints the information to the output window.

 

Dim surfNode As Long, pathNode As Long

 

'surface node whose reported ray path node id is being specified

surfNode = FindFullName( "Geometry.Subassembly 1.Elem 1.Surf 1" )

 

'node number to be reported by surfNode

pathNode = FindFullName( "Geometry.Subassembly 1.Elem 1" )

 

'set and print ray path node number specification

SetSurfRayPathNode surfNode, pathNode

Print Chr(34) & GetFullName( surfNode ) & Chr(34)  & " reports as node " & Chr(34) & GetFullName( pathNode ) & Chr(34) & " for ray path purposes."

 

 

See Also

Ray Path Node Number(s)

GetSurfRayPathNode

SetSurfRayPathNodes

 

 

 

 

 

 

Copyright © Photon Engineering, LLC