Position VS Coordinate
Undesired Outcome | Intended Outcome | |
---|---|---|
Returns | Error message received, as a polyline cannot be moved to a position. |
A polyline is moved to a position in a grid. |
Procedures | ||
Explanations | The error occurs due to layman thinking of “moving pl to a position” which does not work in Mobius as we have to move pl to a coordinate. grid[0] does not return a coordinate which is a list of numbers or a vector, thus the function modify.Move will encounter error. |
Debug by adding the reserved attribute of “@xyz” to the back of grid[0], which will return the coordinates of the position. With the input of coordinates, modify.Move will work. |