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

RE: [Connect c# NET API] Iterate through CellHeaderElement

$
0
0

[quote user="Nenad Poljcic"]If I have to create new cell, is there a way of coping original cell properties, like origin/orientation to a new cell and just add a new IList<Elemet> to create new cell?[/quote]

Take a look at the CellQuery class, which has method ReplaceInModel().  That is, you don't need to clone the cell.  The constructor takes an Element

Element oCell;
// read cell from DGN model
CellQuery oCellQuery (null, oCell);  // Should there be an ICellQuery in place of null?
oCellQuery.ExposeChildren (ExposeChildrenReason::Edit);
ChildElementCollection oComponents = oCellQuery.GetChildren ();
// Do something with oComponents?
oCellQuery.ReplaceInModel (oCell);

There is no example with the SDK, so you're exploring the wilderness.  Let us know how you get on!


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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