Thanks for the insight Jon, That is good to know going forward.
As for the above example,
I see that if no definition is found, it is creating the shared cell definition, but there is no elements being added to it. (cellDefElm.AddChildElement() and AddChildComplete()
Have you tried your code with an existing shared cell created by MicroStation or have you run your code to create the shared cell (thus being empty)?
Evan,
Can you post your DGN file?