Deleting Component pattern using ilogic

Deleting Component pattern using ilogic

Anonymous
Not applicable
1,238 Views
2 Replies
Message 1 of 3

Deleting Component pattern using ilogic

Anonymous
Not applicable

Hello

 

I am looking for the ilogic code to directly delete some component patterns (including base part) in the assemlby. The assembly has around 3000 components and around 200 patterns.

I have few cases where few component patterns to be deleted along with parent part. Is there any code for this.

 

Lookinf for help

 

Thanks

Rudresh

 

 

0 Likes
1,239 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

you can tweak a little this code below and have it delete the entire Pattern:

http://forums.autodesk.com/t5/inventor-customization/ilogic-delete-a-suppressed-component-pattern/m-...

 

The code will delete components that are suppressed, and if it's in a pattern it will delete the patern.

 

Give it a try and see if it works for you. 

Message 3 of 3

Anonymous
Not applicable

Hi Goncalves

 

Thanks so much for sharing the solutions. 

 

I have copied the code that searches the supressed pattenss and delete them. I worked. But my assembly has more than 4000 parts so it is taking almost more than 30min to search and delete.

 

Is there any code that directly deletes the patterns similar to the 'component delete' like below  

 

Component.InventorComponent(Part:1).Delete()

 

Again Thanks

 

 

 

 

 

0 Likes