void Library_NodeInserted(Dom.NChildNodeEventArgs args){if (_skipEvents)return;NLibraryDocument doc = args.Node as NLibraryDocument;switch (doc.Tag.ToString()){case "ACTORS":NMaster master = args.Child as NMaster;//This is what I have problems withcustom.Shapes.MasterEx masterEx = (custom.Shapes.MasterEx)master.Clone();if (masterEx != null){int idx = doc.IndexOfChild(args.Child);_skipEvents = true;doc.RemoveChildAt(idx);doc.InsertChild(idx, masterEx);_skipEvents = false;//doc.UpdateAllViews();}//...
Ok, after reading the post http://forum.nevron.com/shwmessage.aspx?forumid=3&messageid=6982#bm6996, the transfer from a master to a drawing document is handled by the NLibraryDataObject which no master information is copied over, just the shape.
I will use the alternative discussed in the thread above which will do perfectly.