Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C++] Dropping Shared Cells to Normal Cells

$
0
0

[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


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>