API Reference > imodeljs-backend > Elements > Element > collectPredecessorIds collectPredecessorIds MethodProtected Beta Collect the Ids of this element's predecessors at this level of the class hierarchy. A predecessor is an element that had to be inserted before this element could have been inserted. This is important for cloning operations but can be useful in other situations as well. collectPredecessorIds(predecessorIds: Id64Set): void note In order to clone/transform an element, all predecessor elements must have been previously cloned and remapped within the IModelCloneContext. note This should be overridden (with super called) at each level the class hierarchy that introduces predecessors. see Element.getPredecessorIds Parameter Type Description predecessorIds Id64Set The Id64Set to populate with predecessor Ids. Returns - void Defined in core/backend/src/Element.ts Line 408 Last Updated: 11 June, 2024