This macro can be used to reduce the node count of certain polylines. When 2D
polylines are used to represent contours and curved profiles they can sometimes
contain thousands of vertices, depending upon how they were generated. High
node counts increase file size and can drag system performance down, especially
during editing operations. Many times the number of nodes can be cut in half,
or more, with out changing the overall shape of the profile noticeably.
Here is one example.
This macro will only work with 2D polylines made of line segments (no arc
segments). It will remove up to 50% of the nodes at a time, but this is
configurable. There are also settings for making a copy of the original (for a
back-up in case you don't like the results; the node removal action is not
undoable). And the settings are saved in an INI configuration file in the
Program folder.