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); }
public override bool Execute(ExecutionInfo exInfo = null) { Document = ModelDocument.Load(FilePath); return(true); }