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: 

Rule Error

4 REPLIES 4
Reply
Message 1 of 5
ASchlaack
294 Views, 4 Replies

Rule Error

This post is unrelated to the one I just posted about 5 minutes ago, I wrote a rule I've used before and know works but now it's giving me an error... any ideas?

2014-08-05_0938.png

 

2014-08-05_0938_001.png

 

2014-08-05_0939.png

Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram
4 REPLIES 4
Message 2 of 5
ASchlaack
in reply to: ASchlaack

ADDED:

 

-This rule is inside of an .iam.

 

-The part I'm trying to control is an iPart but the iPart valiabies have nothing to do with what I'm adjusting now.

 

-The "d117" is a reference dimension on another part in the .iam.

Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram
Message 3 of 5
wimann
in reply to: ASchlaack


@ASchlaack wrote:

 

-The "d117" is a reference dimension on another part in the .iam.


So I imagine you have another rule or something to indicate what d117 is in your assembly right? You might pull it in as a user parameter:

 

Newd117 = parameter("Part2:1","d117")

 

Parameter("Part1:1","dnumber") = Newd117

 

Something like that. With your current code, it's referencing d117 as it exists in the assembly, which with most coincident constraints, may be zero.

-Will Mann

Inventor Professional 2020
Vault Professional 2020
AutoCAD Mechanical 2020
Message 4 of 5
ASchlaack
in reply to: wimann

I don't have another rule... d117 is just a referecnce dimension...

Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram
Message 5 of 5
wimann
in reply to: ASchlaack

If the rule exists in your assembly, then it is referencing d117 from your assembly. d117 probably exists at both the part and assembly level. Which means the rule is trying to push the assembly level d117 to your part instead of the reference dimension your trying to use. My suggestion is the same lol:

 

Newd117 = Parameter("YourComponent2:1","d117")

 

Parameter(YourComponent1:1","dwhatever") = Newd117

 

ilogicvb.updatewhendone = true

 

EDIT: OR! What might work:

 

Parameter("YourComponent1:1","dwhatever") = Parameter("YourComponent2:1","d117")

-Will Mann

Inventor Professional 2020
Vault Professional 2020
AutoCAD Mechanical 2020

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

Post to forums  

Autodesk Design & Make Report