...like the attached, for instance.
Load up DiVideDynamic.lsp, and type DVD to use it. It asks you to select something, how many segments you want to divide it into, and whether or not you want to put Points at the ends, too.
It puts the Points in with the extrusion direction of the selected object when appropriate. When not [e.g. 3DPolylines, which have no extrusion direction and don't define a UCS], it puts them in the current Coordinate System.
Then it asks you to hit Enter/Space if it's OK [Esc works, too, though it's not mentioned in the prompt], or + if you want to increase the number of Points by 1, or - to decrease the number [that's the Dynamic part]. If you type + or -, it redoes the Divide command accordingly. You can keep hitting either one again, including changing direction, as long as it takes to get the result you want.
It will only let you decrease the number as far as validity allows, but that depends partly on whether you asked for Points at the ends. See the top of the file for details about that, and some other little things.
[It requires a Space or Enter after typing a + or -, which I would prefer were not needed. Does anyone know of a way to get it to respond to just the + or - keystroke alone?]
The same could be done with some kind of "Not-what-I-wanted" answer and a prompt for an explicit new number of segments, if that is preferable to the only-up-or-down-by-1 approach. And presumably it could also be made to have ordinary-Divide's Block option.
Oh, and it also remembers your choices [number of segments and whether or not to put Points at the ends], and offers them as defaults on subsequent use, which regular Divide doesn't do.
--
Kent Cooper
Kent1Cooper wrote...
....
I imagine it wouldn't be hard to make something from pieces of that [DIV+], which would include your asking-whether-it-did-what-you-want option, and go back and do it again if the User wants a different number of points. It could probably even be coded somehow for simplicity of use, such as with a prompt that says "Press Enter to accept, + for one additional point, - for one fewer points."
Edited by: Kent1Cooper on Oct 16, 2009 2:58 PM
[added last sentence]
Kent Cooper, AIA