Exemple #1
0
        public void PresentationDocument__IsNotReturned()
        {
            var doc = tests.TestUtilities.CreatePresentationDocument();

            var doc2 = doc.ReturnSpecificDocumentObject();

            //only exists in DrawingDocuments
            PresentationScenes test = null;

            try
            {
                //test = doc2.Scenes;
            }
            catch { }

            try
            {
                Assert.IsNull(test);
            }
            finally { doc.Close(true); }
        }
        public void PresentationDocument__IsNotReturned()
        {
            Inventor.Application app = ApplicationShim.Instance();
            var      path            = app.DesignProjectManager.ActiveDesignProject.TemplatesPath;
            Document doc             = app.Documents.Add(DocumentTypeEnum.kPresentationDocumentObject, path + "Standard.ipn", true);

            var doc2 = doc.ReturnSpecificDocumentObject();

            //only exists in DrawingDocuments
            PresentationScenes test = null;

            try
            {
                //test = doc2.Scenes;
            }
            catch { }

            try
            {
                Assert.IsNull(test);
            }
            finally { doc.Close(true); }
        }