Esempio n. 1
0
 public static DwgDrawing RoundTrip(DwgDrawing drawing)
 {
     using (var ms = new MemoryStream())
     {
         drawing.Save(ms);
         ms.Seek(0, SeekOrigin.Begin);
         return(DwgDrawing.Load(ms));
     }
 }
Esempio n. 2
0
        public void NextAvailableHandle()
        {
            var drawing = new DwgDrawing();

            Assert.True(drawing.Variables.NextAvailableHandle.IsEmpty);
            using (var ms = new MemoryStream())
            {
                drawing.Save(ms);
            }

            Assert.False(drawing.Variables.NextAvailableHandle.IsEmpty);
        }