Inventor Pattern driven by iLogic

Inventor Pattern driven by iLogic

Anonymous
Not applicable
739 Views
6 Replies
Message 1 of 7

Inventor Pattern driven by iLogic

Anonymous
Not applicable

Hi Everyone,

 

Apologies for the Paint drawing but was in a hurry to post this question.

Does anyone know if it is possible to control your pattern with a iLogic rule?

The goal here is to have the amount that is being patterned automatically update as the length of Part A (Black Vertical Square) increases. Part B (Red Horizontal Square) is the component that is being patterned.

Currently it all is being control through parameters and a form.
The height from the ground to the bottom of Part A is controlled with a parameter, and currently the Spacing & Quantity of the pattern is also being controlled by Parameters and a form.

brekerw_0-1610352948731.png

So for example: 
If Part A is 1000mm in length, the quantity being patterned for Part B should be 2.

If Part A changes to 2000mm, the quantity being patterned for Part B should update to 4.


I'm sure there is a very simple solution that I just keep missing.
Thanks in advance for any assistance

0 Likes
Accepted solutions (2)
740 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
Accepted solution

You can actually round your equation, so it adds more instances in a pattern based on length.

You can take a look at this attached part for the equations.

 

note, Inventor understands round(eq), ceil(eq), floor(eq) depending on whether you want to round up or down or just follow the rounding rules.

Message 3 of 7

Anonymous
Not applicable

I'll just post this screenshot of my model as well as the parameters for inspiration. d8 is my number of instances of part b

 

Ronuid.png

Message 4 of 7

Thomas_Savage
Advisor
Advisor
Accepted solution

Hello @Anonymous 

 

I have attached a .IPT with the iLogic code. Go to the form, and then type in 2000 and Part B will 4. Or type 1000 and Part B will be 2.

 

Does this solve your issue?



Thomas Savage

Design Engineer


Message 5 of 7

Anonymous
Not applicable

Hi @Anonymous ,

 

Thanks for that quick response, the solution you gave me worked very well.
I should have mentioned that this pattern is in an Assembly, but still works fine.

Screenshot below of the quick test I didnt now.

brekerw_0-1610363472001.png



In your note, you mentioned Inventor understands "round(eq), ceil(eq), floor(eq) depending on whether you want to round up or down or just follow the rounding rules."... do you perhaps have a link to where I can see what all those key words mean or do, and if there are even more of these handy tricks 😁

Thanks again 

Message 6 of 7

Anonymous
Not applicable

Hi again.

round(equation) rounds to the nearest whole number.
ceil(equation) rounds to the next higher number - eg. 3.22 would round to 4.

floor(equation rounds to the next lower number - wg. 5.88 would round to 5.

 

Be careful about capital/noncapital letters.


You can see all the supported operators and explanations here:

https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2014...

Message 7 of 7

Anonymous
Not applicable

Great thanks so much for the help @Anonymous.

I never knew Inventor had these prefixes it can use in the parameters formulas, this will help greatly

 

Appreciate it 

0 Likes