Could someone please tell me how to delete iLogic forms from Inventor 2013 parts/assembly using VB.net 2010?
I am able to delete all the rule using "Activated_iLogic.DeleteAllRules(PartDoc)" but "Activated_iLogic.DeleteAllForms(PartDoc)" or "Activated_iLogic.DeleteForm(PartDoc, FormName)" does not give me the result I was expecting and Google is not showing any result related to this.
Many thanks in advance.
The forms are stored in the document's attributesets. If you delete the attributeset/attribute, the form is gone.
FarrenYoung means Document.AttributeSets which stores the attribute sets . Each attributeset has attributes. It allows developers to attach custom information with the document.
I checked the assembly Autodesk.iLogic.Interfaces, but I did not see the method DeleteAllForms or DeleteForm. And it looks no methods to delete forms. From where you got the two methods?
Hi Xiaodong, thanks for your reply.
I was able to delete rules and I tought that if I wanted to delete forms I needed to use the iLogic statements so that's how I came up with the 2 methods.
I have started with vb.net a couple of weeks ago and still struggling understanding the API and how to communicate with Inventor when I want something done. Replacing parts or subassemblies in an assembly took me a day to get that working. I am on a trail and error mode to get things done.
Sorry, I still have no idea how to delete the iLogic form by code. I doubt this may be a requirement which has not been exposed.