def
func:swizzleRefs
swizzleRefs(grid)
Given a grid of records, assign new ids and swizzle all internal ref tags. Each row of the grid must have an id
tag. A new id is generated for each row, and any Ref tags which used one of the old ids is replaced with the new id. This function is handy for copying graphs of recs such as site/equip/point trees.