예제 #1
0
 internal static void SetOwner(this IDxfObject parent, IDxfObject child)
 {
     if (child is DxfObject)
     {
         (child as DxfObject).Owner = parent.Handle;
     }
 }
예제 #2
0
 internal static List <IDxfObject> SetHandle(this List <IDxfObject> l, IDxfObject o)
 {
     if (o is DxfObject)
     {
         (o as DxfObject).Handle = (l.Count + 1).ToString();
     }
     return(l);
 }
예제 #3
0
 internal static void SetOwner(this IDxfObject parent, IDxfObject child, long handle)
 {
     parent.SetOwner(child);
     if (child is DxfObject)
     {
         (child as DxfObject).Handle = handle.ToString();
     }
 }
예제 #4
0
 public void AssignHandle(IDxfDocument document, IDxfObject o)
 {
     AddDocument(document).SetHandle(o).Add(o);
 }