Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
I am incorporating mass as a defined variable a mechanism force analysis and I keep getting an error that the value needs to be a vector. The file is below. What can I do to fix this issue?
Solved! Go to Solution.
Hi,
The first error is confusing vector element addressing with subscripted name tags.
Vector element addressing uses the "[" square bracket. Eg A[1 is the second alement of A vector. A[0 is the first by default. You can change the zero base.
Subscripted name tags for variables use the "." dot symbol. A.1 is a subscripted variable name. A.0 is a different subscripted variable name. You can use subscripted variable names for vectors.
The second mistake is you have used the equality binary operator bold= entered as CTRL = for the definition of functions. You should use the assignment equals entered with the colon button ":"
Cheers
Terry
Hi,
The first error is confusing vector element addressing with subscripted name tags.
Vector element addressing uses the "[" square bracket. Eg A[1 is the second alement of A vector. A[0 is the first by default. You can change the zero base.
Subscripted name tags for variables use the "." dot symbol. A.1 is a subscripted variable name. A.0 is a different subscripted variable name. You can use subscripted variable names for vectors.
The second mistake is you have used the equality binary operator bold= entered as CTRL = for the definition of functions. You should use the assignment equals entered with the colon button ":"
Cheers
Terry