예제 #1
0
        public void returnsTrue()
        {
            var doc = tests.TestUtilities.CreatePartDocument();

            var result = AttributeShim.ObjectIsAttributeCapable(doc);

            try
            {
                Assert.IsTrue(result);
            }
            finally { doc.Close(true); }
        }
예제 #2
0
        public void returnsFalse()
        {
            Inventor.Application app = ApplicationShim.Instance();

            //Application object is not attribute capable.
            var result = AttributeShim.ObjectIsAttributeCapable(app);

            try
            {
                Assert.IsFalse(result);
            }
            finally {  }
        }
예제 #3
0
        public void returnsTrue()
        {
            Inventor.Application app = ApplicationShim.Instance();
            var path = app.DesignProjectManager.ActiveDesignProject.TemplatesPath;

            //Document object is attribute capable.
            Document doc = app.Documents.Add(DocumentTypeEnum.kPartDocumentObject, path + "Standard.ipt", true);

            var result = AttributeShim.ObjectIsAttributeCapable(doc);

            try
            {
                Assert.IsTrue(result);
            }
            finally { doc.Close(true); }
        }