Navigation: Scripting Reference Manual > Functions & Subroutines > AddSubassembly

 

AddSubassembly

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds a new subassembly to the associated FRED document.

 

Syntax

n = AddSubassembly ( entity )

 

Parameters

n (Long)

Node number of the new subassembly.

 

entity As T_ENTITY

The generic entity data for the new subassembly.

 

Remarks

This function adds a new subassembly to the associated FRED document and returns the identifier of the new subassembly.  If it fails, it posts an error and returns a value of -1.

 

A subassembly is useful because it can serve as the parent of other subassemblies and elements.  This allows the user to establish a logical hierarchy of relationships.

 

See Also

T_ENTITY

GetSubassembly

SetSubassembly

Examples

Elements

 

 

 

 

 

 

Copyright © Photon Engineering, LLC