Was this helpful?
InsertChild Method
The InsertChild method inserts a specified field into the stack at a specified position.
This method has the following syntax:
StackField.InsertChild(fieldtoinsert = FormField, position = integer)
This method has the following parameters:
fieldtoinsert
Identifies the field to be inserted
position
Identifies the inserted field's intended ordinal position in the stack. Stack field component fields are numbered from one, starting at the top or left end of the stack field.
When you insert a new field into a stack field, OpenROAD adjusts the other fields to accommodate the new field.
The InsertChild method returns TRUE if successful, or FALSE if not successful.
The maximum number of children for a StackField is 32,767. If a StackField already contains 32,767 children, the InsertChild method will return FALSE.
Last modified date: 12/20/2023