Inventor General Discussion

Inventor General Discussion

Reply
Member
kirchnerb
Posts: 3
Registered: ‎01-22-2013
Message 1 of 3 (278 Views)
Accepted Solution

i Logic- Assembly Pattern

278 Views, 2 Replies
01-28-2013 10:01 AM

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

 

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

 
*Expert Elite*
Curtis_Waguespack
Posts: 3,002
Registered: ‎03-08-2006
Message 2 of 3 (253 Views)

Re: i Logic- Assembly Pattern

01-28-2013 01:07 PM in reply to: kirchnerb

 

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

 


  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





Member
kirchnerb
Posts: 3
Registered: ‎01-22-2013
Message 3 of 3 (231 Views)

Re: i Logic- Assembly Pattern

01-28-2013 02:24 PM in reply to: Curtis_Waguespack

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.