Adjust the part file parameters used for frame generator components

Adjust the part file parameters used for frame generator components

Shag_Bore
Advocate Advocate
422 Views
3 Replies
Message 1 of 4

Adjust the part file parameters used for frame generator components

Shag_Bore
Advocate
Advocate

I can't remember how I did this before and no longer have the files to try and figure it out.

 

I have a part that is comprised of a sketch that is used to drive frame generator components.

 

I have linked the parameters from the part file to the assembly that contains the frame generator components, but I can't edit the parameters, they are greyed out. 

 

I used  to have an assembly that was driven the part file parameters and a form prompt where I could change the parameters and it would update. 

 

I want to be able to edit the Height parameter. I seem to recall this was done using a simple iLogic rule but I can't remember...

 

parameters2.png

Sean Farr
Product Designer at Teksign Inc.
Inventor 2016 SP1
Dell Precision 3660
i7-12700 @ 2.40GHz-4.90GHz
32GB DDR5 4400MHz RAM
NIVDIA RTX A2000 6GB
0 Likes
Accepted solutions (1)
423 Views
3 Replies
Replies (3)
Message 2 of 4

marcin_otręba
Advisor
Advisor

in assembly file create rule with code:

 

iLogicVb.RunRule("canopy_subrame_file:1", "update")

in ipt parameter source file create rule named like in code row "update" or change to yours with code:

iLogicForm.Show("update")
iLogicVb.UpdateWhenDone=True

 

finally make form named like in code row "update"  and make it like you wish with parameters you need to drive like:

 

marcin_otrba_0-1662575280061.png

 

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

Message 3 of 4

dalton98
Collaborator
Collaborator
Accepted solution

As far as I know you cant do it that way. You would have to have it the other way around, the part would be dependent on the assembly. Inventor doesnt like this so it will throw an error saying it cant do that.

 

The easiest way to do would be to copy the parameters to your main assembly then link them with ilogic

Parameter("canopy_subrame_file:1", "length_part") = length_assembly 

 

0 Likes
Message 4 of 4

Shag_Bore
Advocate
Advocate

For those who want to know how to get this work

1-> create your skeleton frame part file and name/create your parameters that you want to change/edit

2->in assembly file, link those parameters from the skeleton frame part file

3->in assembly file create User Parameters 

4->use the rule for each User Parameter

Parameter("skeleton frame part file:1", "parameter in part file name") = user parameter in assembly file name 

5->manually run the rule or create a form where you can edit the User Parameters, this will edit the skeleton part file and then in turn adjust the frame members 

 

Thanks for the help! @dalton98 

 

parameters3.PNG

Sean Farr
Product Designer at Teksign Inc.
Inventor 2016 SP1
Dell Precision 3660
i7-12700 @ 2.40GHz-4.90GHz
32GB DDR5 4400MHz RAM
NIVDIA RTX A2000 6GB