Navigation: Scripting Reference Manual > Functions & Subroutines > Delete Material

 

Delete Material

 

Contact Us: fredsupport@photonengr.com

 

Description

Deletes the given material entry from the Material Folder.

 

Syntax

DeleteMaterial id

 

Parameters

id As Long

Integer identifier of material to be deleted.

 

Remarks

Default Materials Air (node 0), Vacuum (node 1), Simple Glass (node 2), Standard Glass (node 3) & Optical Cement (node 4) cannot be deleted from a FRED document. If the operation is unsuccessful, an error message occurs and execution is halted.

 

See Also

DeleteScatter

DeleteCoating

DeleteEmbeddedScript

DeleteRaytraceCtrl

DeleteEntity

 

 

 

 

 

Copyright © Photon Engineering, LLC