The fastest and easiest way to do this is to open your drawing (in its own window, not a map window), then use the Drawing > Orthogonalize command. Choose for your example: Scope All objects, Steps 0.01, 0.01, Offsets 0, 0, and for the units the native units of your drawing. (For safety do this on a duplicate of the drawing first.) There are two caveats. (1) In your first paragraph you said "I need to round up all the coordinates...". Orthogonalize rounds up or down, to the nearest allowed value (with midpoints rounded up). (2) Orthogonalize also removes any vertices that, after rounding, are redundant, i.e. which do not affect the shape of the object, lying on a straight line between neighbouring vertices. If one of those things is not OK then you may need custom SQL.
|