Navigation: Scripting Reference Manual > Functions & Subroutines > AddCustomElement

 

AddCustomElement

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds a new Custom Element to the associated FRED document.

 

Syntax

n = AddCustomElement ( entity )

 

Parameters

n (Long)

Node number of the new Custom Element.

 

entity As T_ENTITY

The generic entity data for the new Custom Element.

 

 

Remarks

The Custom Element is the entity that serves as the parent for surfaces.  As such, custom elements are used extensively in FRED documents as "holders" for surfaces.

 

This function adds a new Custom Element specified by the values in Entity and returns the identifier for the new Custom Element.  The function returns the value -1 if the element could not be created or added to the document.

 

See Also

T_ENTITY

SetCustomElement

GetCustomElement

Examples

Elements

 

 

 

 

 

 

Copyright © Photon Engineering, LLC