コード例 #1
0
        public void DrawingDocument__IsNotReturned()
        {
            var doc = tests.TestUtilities.CreateDrawingDocument();

            var doc2 = doc.ReturnSpecificDocumentObject();

            //only exists in DrawingDocuments
            BorderDefinitions test = null;

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

            try
            {
                Assert.IsNull(test);
            }
            finally { doc.Close(true); }
        }
コード例 #2
0
        public void DrawingDocument__IsReturned()
        {
            Inventor.Application app = ApplicationShim.Instance();
            var      path            = app.DesignProjectManager.ActiveDesignProject.TemplatesPath;
            Document doc             = app.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject, path + "Standard.idw", true);

            var doc2 = doc.ReturnSpecificDocumentObject();

            //only exists in DrawingDocuments
            BorderDefinitions test = null;

            try {
                test = doc2.BorderDefinitions;
            }
            catch { }

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