Hole feature missing in mating part

Hole feature missing in mating part

Anonymous
Not applicable
612 Views
5 Replies
Message 1 of 6

Hole feature missing in mating part

Anonymous
Not applicable

Hi All,

 

I am Naveen, working has a design engineer and beginner for Auto desk Inventor tool.

 

I am very glad to be a member of Auto desk Community, hope I will gain much more knowledge in Inventor customization by the experts in our community.

 

Regarding my post, in attached image having part A &  part B  one assembly file.
Part B having two holes but unfortunately designer miss the hole feature in Part A to assemble the two parts.

 

 

please tell me the logic code to detect or show the error message if mate part not having the hole feature & please find the attached images.

 

I Hope experts will give tell the logic code for my solution.

 

Thanks,

Naveen

0 Likes
613 Views
5 Replies
Replies (5)
Message 2 of 6

b_sharanraj
Advocate
Advocate

Hi @Anonymous

 

Welcome aboard 🙂

 

Before providing the solution let me explain you the problems in this.

 

You can see that i made four Holes using a Single Hole Feature in below image. In this case the Hole Count will be 1.

 

image.png

 

 

Below Code will provide you the No. of Hole Features Count not No. of Holes.

 

Create a new rule of this in both the parts.

 

 

 NoOfHoles = 0

For Each HFeature As HoleFeature In ThisDoc.Document.ComponentDefinition.Features.HoleFeatures

    If HFeature.Suppressed = False Then 
    NoOfHoles = NoOfHoles + 1
    End If
    
Next HFeature

If NoOfHoles = 0 Then
MessageBox.Show("Part A having No Hole Feature", "Error")
End If

 

 

Regards

B.Sharan Raj

0 Likes
Message 3 of 6

Anonymous
Not applicable

Hi experts 

 

Good evening

 

Please give me any ideas for above requirement.

Please support on this its very argent

 

Thank you
Regards
Naveen

0 Likes
Message 4 of 6

b_sharanraj
Advocate
Advocate

Mr. @Anonymous

 

I have given you a reply it might be solution or not but at-least you should respond me because I have spent some time for your requirement.

 

I'm not an Expert like others but still I'm far better than you and I'm here to help you but not to Spoon Feed. 

 

Before trying to learn iLogic learn some Respect to show others ..!..

 

@All Experts of Inventor Customization

 

Help this Poor Soul & feel Shame

 

All the best 🙂

Regards

B.Sharan Raj

0 Likes
Message 5 of 6

Anonymous
Not applicable

hello Sir

 

Good morning

I had cross checked your code but i m not getting so please help me on this.

Sorry sir it will not repeat my end in feature.

 

Thankyou
Reagrds
NaveenSmiley Sad

0 Likes
Message 6 of 6

Anonymous
Not applicable

hello Sir

 

Good morning

I had cross checked your code but i m not getting so please help me on this.

Sorry sir it will not repeat my end in feature.

 

Thankyou
Reagrds
Naveen

0 Likes