Inventor Customization

Inventor Customization

Reply
jj
Active Member
jj
Posts: 6
Registered: ‎04-21-2011
Message 1 of 6 (318 Views)

How to delete ilogic forms using .net

318 Views, 5 Replies
11-07-2012 05:26 PM

Hi all,

 

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.

 

JJ

Mentor
FarrenYoung
Posts: 264
Registered: ‎07-13-2009
Message 2 of 6 (306 Views)

Re: How to delete ilogic forms using .net

11-09-2012 07:17 AM in reply to: jj

The forms are stored in the document's attributesets.  If you delete the attributeset/attribute, the form is gone.

--Farren

************************************************************************************
If this post helps, please click the "thumbs up" to give kudos
If this post answers your question, please click "Accept as Solution"
************************************************************************************
jj
Active Member
jj
Posts: 6
Registered: ‎04-21-2011
Message 3 of 6 (284 Views)

Re: How to delete ilogic forms using .net

11-13-2012 11:49 AM in reply to: FarrenYoung

Hi Farren,

 

thanks for the suggestion. I can't get it to work but that is because of my lack of understanding the API & .net skills.

ADN Support Specialist
xiaodong.liang
Posts: 1,271
Registered: ‎06-12-2011
Message 4 of 6 (262 Views)

Re: How to delete ilogic forms using .net

11-21-2012 08:01 PM in reply to: jj

Hi,

 



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

jj
Active Member
jj
Posts: 6
Registered: ‎04-21-2011
Message 5 of 6 (259 Views)

Re: How to delete ilogic forms using .net

11-21-2012 08:34 PM in reply to: xiaodong.liang

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.

ADN Support Specialist
xiaodong.liang
Posts: 1,271
Registered: ‎06-12-2011
Message 6 of 6 (223 Views)

Re: How to delete ilogic forms using .net

12-26-2012 03:24 AM in reply to: jj

Hi,

 

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. 



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.