Automatically deleting iMates tied to nonexistent features in iParts?

Automatically deleting iMates tied to nonexistent features in iParts?

Anonymous
Not applicable
849 Views
3 Replies
Message 1 of 4

Automatically deleting iMates tied to nonexistent features in iParts?

Anonymous
Not applicable

Hi,

 

My experience here is limited, so please bear with me. I'm currently attempting to use iParts to create a set of C-Channels of several lengths, with iMates automatically created for each side of each hole. 

s2siddhu_0-1588910410199.png

I approached this by making an iPart, with a "Length in holes" variable tied to a "split" command to automatically delete the cut excess of the C-Channel. I also made used my "Length in holes" variable to create a rectangular pattern of these features inside each hole and added iMates to each side like so.

s2siddhu_1-1588910577684.png

My problem arises when I attempt to generate these files, as when it tries to solve an iMate for a hole (and feature) that doesn't exist anymore, it fails to resolve. Is there any way I can get Inventor to delete a failed iMate automatically when it generates the part files, perhaps using iLogic? I have attached the file and here is another screenshot of the full part with iMate glyphs visible.

s2siddhu_2-1588911046006.png

 

Thanks for the help!

 

0 Likes
850 Views
3 Replies
Replies (3)
Message 2 of 4

marcin_otręba
Advisor
Advisor

hi,

 

imates can be driven via ipart table as well:

Sorry but i have polish version, but you can disable using ipart table.

marcin_otręba_0-1588934982383.png

 

 

Hi, maybe you want to vote my:

Ideas

or check my apps:

DrawingTools   View&ColoringTools   MRUFolders

0 Likes
Message 3 of 4

Anonymous
Not applicable

Would I have to set every iMate to not compute for every size iPart? Is there a way I can make only iMates with certain numbers compute for each size? Thanks for your response!

0 Likes
Message 4 of 4

marcin_otręba
Advisor
Advisor

you can start from this:

 

Dim ima As InsertiMateDefinition
For Each ima In ThisApplication.ActiveDocument.ComponentDefinition.iMateDefinitions
Try
a = ima.Entity
Catch
ima.Suppressed = True
End Try
Next

Hi, maybe you want to vote my:

Ideas

or check my apps:

DrawingTools   View&ColoringTools   MRUFolders

0 Likes