public void returnsTrue() { var doc = tests.TestUtilities.CreatePartDocument(); var result = AttributeShim.ObjectIsAttributeCapable(doc); try { Assert.IsTrue(result); } finally { doc.Close(true); } }
public void returnsFalse() { Inventor.Application app = ApplicationShim.Instance(); //Application object is not attribute capable. var result = AttributeShim.ObjectIsAttributeCapable(app); try { Assert.IsFalse(result); } finally { } }
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); } }