Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi, All --
Any ideas as to why I am getting a "variable undefined" error in this solve block? I am sure I'm smissing something simple....thanks in advance.
File is MC14 saved to MC11.
Matt
Solved! Go to Solution.
The only error message you ever get from a solve block (in versions 12 or later) is "Variable Undefined". Except by coincidence, it has nothing to do with the actual problem. If you copy and paste the expression outside the solve block, select the entire expression and hit "=" to evaluate it you will get a useful error message. Your function ro returns values with units of m, so you need to multiply x<0> by the correct length unit.
The only error message you ever get from a solve block (in versions 12 or later) is "Variable Undefined". Except by coincidence, it has nothing to do with the actual problem. If you copy and paste the expression outside the solve block, select the entire expression and hit "=" to evaluate it you will get a useful error message. Your function ro returns values with units of m, so you need to multiply x<0> by the correct length unit.
Well played, sir. Will played, indeed.