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?
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.
@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.
I don't have another rule... d117 is just a referecnce dimension...
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")