Navigation: Scripting Reference Manual > Functions & Subroutines > SetTraceable

 

SetTraceable

 

Contact Us: fredsupport@photonengr.com

 

Description

Modifies the traceability of a FRED element.  The traceability of the target node's children is not affected by this subroutine.  If the traceability of the target node's children is intended to be affected, please use the SetEntity command.

 

Syntax

SetTraceable n, traceable

 

Parameters

n As Long

Node number of the FRED entity.

 

traceable As Boolean

Set to True to make an element traceable, False to make it not traceable.

 

Remarks

This subroutine modifies the traceability of a FRED entity.  Any entity marked as not traceable will not be intersected during a raytrace, and it will not be drawn in the 3D visualization. In effect it has been "turned off".  You can "turn on" the entity by calling SetTraceable and setting its flag to True.  Note that if a subassembly or element entity is marked as not traceable, then all of the entity's descendants will not be raytraced if the search algorithm is set to hierarchical (see advanced raytrace dialog). If there is a problem the subroutine sets an error and returns without modifying the element.

 

See Also

GetEntity

SetEntity

GetTraceable

GetNeverTraceable

 

Examples

Entity Info Functions

 

 

 

 

 

Copyright © Photon Engineering, LLC