Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i Logic- Assembly Pattern

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
kirchnerb
608 Views, 2 Replies

i Logic- Assembly Pattern

I am currently working on a parametric assembly using i Logic to control the size of the components as well as patterns. However, I have hit a road block in trying to figure out how to write a rule for resizing the last roof sheet in this assembly pictured below to be even with the frame. The rule below is what controls the roof sheet pattern based on the frame length. The problem I am continually running into is how do you modify a part which is in an element within the pattern without having it affect the rest of the parts in the pattern since they all refer to part. I will appreciate any help I can get since it is hard to find information on i Logic.

 

Thank You,

 

Ben K

 

 

Roof_Pattern_Spacing = Roof_Sheet_Width
Roof_Pattern_Count=Ceil(Parameter("Length")/Parameter("Sheet Metal Roof Section:1", "Roof_Sheet_Width"))

 

(Note: The red line symbolizes where I would like to have the roof sheet end.)

 

Frame with Roof 2.JPG

2 REPLIES 2
Message 2 of 3

 

Hi kirchnerb,

 

I started working on something like this a couple of years ago. Attached is the example I had on hand, but I don't really recall what all is going on in the rules. But I thought you might get a hint from this.

 

Edit:

I just had another look at this and cleaned the attached example files up a bit so it is more straight forward. The code is pretty basic so it should be easy to figure out.

 

Here's a quick video of this example in action:

http://www.screencast.com/t/R3t281GiD

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 
Message 3 of 3

Thanks Curtis,

 

The solution was a little simpler than I first thought. All I needed to do is to add another roof sheet with a different part number, then add parameters and write a rule, shown below, to fill in the gap. Thank you for your help.

 

Ben K

 

Fill_Length = Length - (Roof_Pattern_Count * Roof_Sheet_Width)

If Fill_Length <= 0 Then
Component.IsActive("Sheet Metal Roof Section config:1") = False

Else
Component.IsActive("Sheet Metal Roof Section config:1") = True
Parameter("Sheet Metal Roof Section config:1", "Roof_Sheet_Width_Fill") = Fill_Length

End If
iLogicVb.UpdateWhenDone = True

 

Complete Roof.jpg

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report