Add or Delete Frames (Frame Generator model) based on Model Parameter updates

Add or Delete Frames (Frame Generator model) based on Model Parameter updates

Anonymous
Not applicable
1,674 Views
5 Replies
Message 1 of 6

Add or Delete Frames (Frame Generator model) based on Model Parameter updates

Anonymous
Not applicable

I have a 2d sketch defined by a length and width parameter (Rectangle). Within that rectangle I have a cross members (Joists) that are spread evenly across the Rectangle. Picture a deck or platform. 

 

I can update the 2d sketch length and width parameters using simple a iLogic rule and a form and get the joists to add in or delete based on the changes of the span. (rectangular pattern)

 

I created a frame using frame generator, then update the length and width parameters and the frame members update based on the new inputs except if there are more or less joists they do not get add in or deleted out. 

 

I have scoured this forum and youtube for days and can't seem to find anything that relates to frame generator, patterns and iLogic. 

 

I am using inventor 2021 and am a beginner with iLogic, I can understand what it does, but am struggling to lockdown the syntax and usage. 

 

Thanks for any Help!!

 

Sean

 

0 Likes
Accepted solutions (1)
1,675 Views
5 Replies
Replies (5)
Message 2 of 6

A.Acheson
Mentor
Mentor

Hi Sean,

Welcome to the forum if you are new. The addin frame generator has limited API support so you will not be able to do a lot directly with ilogic except for driving the user commands by code. Outside of the addin the components are just parts and assemblies which you will be able to manipulate. Can you show an example of what you want to achieve, where you are stuck and the semi working code placed it in a zipped folder. 

It sounds like you want to make a configurator while using the addin. I am not sure how possible this, maybe working directly with the parts would suit the application better. Your example should help user help out. 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 6

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @Anonymous 

I think the key to getting this to work is to create one joist and then create a component pattern in the Frame sub assembly, see the attached 2019 example files in the attached zip file.

 

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

 

EESignature

Message 4 of 6

Anonymous
Not applicable

Thank You!

 

I will be able to make this work with my assembly! Appreciate it!

0 Likes
Message 5 of 6

Anonymous
Not applicable

Hey @Curtis_Waguespack ,

 

I have been through your model and am applying it to my application. I am hung up though on what should be an easy task. Component Assembly Pattern, I can not pattern the "joist" in my frame generator assembly. When I select the feature it selects the entire frame in the assembly file and not the single frame component.

 

How did you pattern the center joist in your example file? I can't seem to figure that out?

Capture 6 is your assembly

Capture 7 is my example

 

Thanks!

Thanks!

0 Likes
Message 6 of 6

Curtis_Waguespack
Consultant
Consultant

Hi @Anonymous 

 

In your FG assembly is a subassembly named "Frame 162396....", just open that file up and create the pattern in there.

 

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

EESignature