Linked Part Causing Inventor To Crash

Linked Part Causing Inventor To Crash

ASchlaack
Collaborator Collaborator
648 Views
7 Replies
Message 1 of 8

Linked Part Causing Inventor To Crash

ASchlaack
Collaborator
Collaborator

I'm sorry but I can't use my parts to show you what I mean because they are for work and I can't post or share them..

 

I have a part called "Leg", it's in my assembly. "Leg" is driven by a parameter that's in the assembly called "Height". In the leg itself it uses "Height" to control a hole pattern.

 

This all works just fine, when I change "Height" the "Leg" updates and changes its parameters and hole pattern no problem.

 

Now here's where my problem comes in, I need to make a bolt pattern to the holes in "Leg" in the assembly. The top hole is my base hole for the patterning of the holes to I can place a bolt in that and use that bolt to pattern off of. 

 

No matter what way I try to get the bolts to pattern as soon as I change "Height" Inventor will always crash.

 

Ways I've tried to make it work so far that have failed are:

-I've made new parameters in the assembly for distance and qty of the pattern and linked that through iLogic to the values in "Leg".

-I've made new parameters in the assembly for distance and qty of the pattern and linked them in the parameters table to the values in "Leg".

-I've used basically the same rule I used to create the pattern depending on "Height" in "Leg" and put that into the assembly trying to make it control two parameters that I created that aren't linked to anything. 

 

I could understnad why the first two options might make it crash because they are linking a part in a circular way. But I don't understand why the third option would make it crash, I'm not linking anything new. I'm simply pulling a value from the assembly to control two other values by using a rule. Everything there is in the assembly and has nothing to do with linked values. I don't see why it would crash. Here's the rule I use for the hole pattern. And to change it to apply to the bolt pattern all I need to do is change parameter names. Which proves the rule works just fine.

 

If Height = 33.625 Then
	HoleQty = 5
	HoleSpacing = 7.5
	
Else If Height = 39.625 Then
	HoleQty = 5
	HoleSpacing = 9
	
Else If Height = 45.625 Then
	HoleQty = 6
	HoleSpacing = 8
	
Else If Height = 51.625 Then
	HoleQty = 6
	HoleSpacing = 9

Else If Height = 57.625 Then
	HoleQty = 7
	HoleSpacing = 8.5

Else If Height = 63.625 Then
	HoleQty = 7
	HoleSpacing = 9.5

Else If Height = 69.625 Then
	HoleQty = 8
	HoleSpacing = 9

End If
	

 

 

Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram
0 Likes
Accepted solutions (1)
649 Views
7 Replies
Replies (7)
Message 2 of 8

rjay75
Collaborator
Collaborator

Is the parameter "Height" in Leg linked to the parameter in the assembly the Leg part is placed in?

 

If so this is causing a circular dependancy. Leg can't update until the assembly has updated so it can get the new updated value of Height. The assembly can't update the pattern until the Leg part has completed updates. And back and forth causing Inventor to crash.

 

One option for this is to use iLogic in the assembly to update a separate Height parameter in Leg part. Unlink the parameters and ceate a rule in the assembly that does this:

 

Parameter("Leg", "Height") = Height

 

Another option and one I do quite frequently when linking parameters is to create a separate part that just has shared parameters that everything else links to. Then all the parts and assemblies can use the same parameter set that's not dependant on anything else so it can update individually.

0 Likes
Message 3 of 8

ASchlaack
Collaborator
Collaborator
That was my thought and that's why I made the point of showing my third thing I tried that in no way would create a circle. I just figured out the issue but I dont know what would be causing it. When the hole pattern is ANY value greater than 6 it crashes. I remade it all so my pattern never has more than 6 and it not longer crashes. What would cause that?
Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram
0 Likes
Message 4 of 8

rjay75
Collaborator
Collaborator

Sounds like a possible issue with the part file. As a test manually change the patterns by editing them to a value that has triggered a crash in the past. If it crashes then there may be something with the part that causes the pattern to be invalid. If it works then check all the places where the parameters you are modifying are used.

0 Likes
Message 5 of 8

ASchlaack
Collaborator
Collaborator
I have gone into just the part and changed it's values. It really will only function correctly if I have the pattern value be no more than 6.
Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram
0 Likes
Message 6 of 8

adam.nagy
Autodesk Support
Autodesk Support

Hi Aaron,

 

If you are still looking into this then the best thing would be to create a set of minimal and non-confidential documents that can be used by others to reproduce the issue. While creating them you might actually spot something as well that can help figure out the issue.

 

Cheers,

 



Adam Nagy
Autodesk Platform Services
0 Likes
Message 7 of 8

ASchlaack
Collaborator
Collaborator
Accepted solution
What ened up fixing this was instead of also writing a pattern rule like the one above, I just left the part how it was and used the associative pattern command in the .iam. Just doing that made everything work.
Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram
0 Likes
Message 8 of 8

Anonymous
Not applicable

Aaron

 

 The feature causing the error was the feature pattern, deleted the feature pattern and replaced the code and like magic fixed. FYI took a while to track that down...

If Chain = 603 & 614 & 903
 EXTRA = 1.0625
 LINK_WIDTH = .375 in
 ROLLER = 4
 SkirtFromSide = 7.5625
 SkirtBracketLength = 5.8125
 GuardBracketWidth = 5.3125
 RaiseSkirtForLargeRoller = -1.125

'Etc... '
End IF

End If

 

 

but how can i get three options to share the same conditions like above 

0 Likes