[quote user="Bruce Reeves SRNS"]Can a DropGeometryPtr be used instead of mdlSharedCell_dropToNormalCell()?[/quote]
Yes, mdlSharedCell_dropToNormal cell eventually calls the DisplayHandler::Drop method. Something like this:
DropGeometryPtr dropGeometry = DropGeometry::Create(); dropGeometry->SetOptions(DropGeometry::OPTION_SharedCells); dropGeometry->SetSharedCellOptions(DropGeometry::SHAREDCELL_NormalCell); ElementAgenda dropAgenda; if (SUCCESS == eh.GetDisplayHandler()->Drop(eh, dropAgenda, *dropGeometry)) // eh is ElementHandle for a SHARED_CELL_ELM... // Do something with dropAgenda...delete eh and add dropAgenda entries, etc.
// NOTE: dropAgenda should have only 1 entry if dropping a shared cell to a normal cell...
NOTE: It's better to collect a set of elements to modify/delete in your iterator, and then process them outside the iterator...
-B