Auto spacing (holes)+ fixed distance to another hole

Auto spacing (holes)+ fixed distance to another hole

Anonymous
Not applicable
1,586 Views
7 Replies
Message 1 of 8

Auto spacing (holes)+ fixed distance to another hole

Anonymous
Not applicable

 

Looking at the picture, say I want to control the 7_5/8" (X) value to be between 6" and 9" and I want the pattern spacing to be 9" when the total length of the part changes.  In other words, changing the number of holes changes the value of X so that it lands between 6" and 9" with spacing between the holes always being 9". 

 

I almost have this working with rules in Inventor using X=(B-9*NUMBER-2*A1)/2 where B is 9'5", NUMBER is the qty of holes, and A1 is the 7/8" in the picture but the if-then statement isn't working within the rules dialog box to keep the value of X between 6" and 9".

 

Any help would be appreciated.

 

 

 

 

flange.png 

0 Likes
1,587 Views
7 Replies
Replies (7)
Message 2 of 8

Vadim-the-Engineer
Advocate
Advocate

Here is my try for the matter: 

Capture.JPG

Parameters copied to user parameters are irrelevant

0 Likes
Message 3 of 8

Anonymous
Not applicable

The pattern needs to start on the second hole and the 4 holes on both ends stay a set distance away from the edge.  In particular, the distance (X) between the first and second holes from both sides needs to land between 6" and 9" based upon the number of holes in the pattern.  See math in the picture.  I want the pattern distance (L) to always be 9".

0 Likes
Message 4 of 8

Anonymous
Not applicable

Assume X is 6.  Calculate Y and find how many holes n at 9 spacing.  Round that number down.

Recalculate X with n.

0 Likes
Message 5 of 8

Anonymous
Not applicable

Here is what I have so far.  The if statement isn't working properly in Inventor 2018 so I just copied the code to simulate a loop.

0 Likes
Message 6 of 8

Vadim-the-Engineer
Advocate
Advocate
X=(B-2*A1-(num-1)*9") /2 is the function you looking for however I'm not
sure if iLogic can set range for dimensions... Geometrically the task is
simple... But I don't fully understand what is the changing parameter here?
Number of holes? Since B, A1 and L are fixed... Please explain.
0 Likes
Message 7 of 8

Anonymous
Not applicable

The number of holes is the parameter that is changing as the part lengthens or shortens and the variable X can be within a range of 6"-9".

0 Likes
Message 8 of 8

johnsonshiue
Community Manager
Community Manager

Hi! Please see my reply to the other thread.

 

https://forums.autodesk.com/t5/forums/replypage/board-id/78/message-id/665116/load-autosave/true

 

Many thanks!

 



Johnson Shiue ([email protected])
Software Test Engineer
0 Likes