예제 #1
0
        public void SerializeModelDocumentAndDeserialize()
        {
            FilePath path = "C:/TEMP/SerializeModelDocumentAndDeserializeTest.test";

            var model = new Model.Model();

            model.Add(new LinearElement(0, 0, 0, 10, 0, 0));
            var doc = new ModelDocument(model);

            doc.SaveAs(path);

            var doc2 = ModelDocument.Load(path);

            Assert.AreEqual(1, doc2.Model.Elements.Count);
        }
예제 #2
0
 public override bool Execute(ExecutionInfo exInfo = null)
 {
     Document = ModelDocument.Load(FilePath);
     return(true);
 }