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

[Connect up.4 NET.API] Modify/Delete cell subelement

$
0
0

Hi,

I would like to delete/modify cell subelement.

This is my code so far.

                  CellHeaderElement cell = (CellHeaderElement)element.ParentElement;

                    CellQuery oCellQuery = cell.AsCellQuery();
                    bool res1 = oCellQuery.IsEffectivelyLocked(true,true);

                    bool result= oCellQuery.ExposeChildren(ExposeChildrenReason.Edit);
                    ChildElementCollection oComponents = oCellQuery.GetChildren ();
                    Element child = oComponents.ElementAt(0);
                    bool res2=child.IsValid;
                 
                         ???????????????????????????????? How to remove child from cell?                   
                    oCellQuery.ReplaceInModel (cell);

thanks

Nenad


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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