@Anonymous wrote:
I know that I can use the STRETCH command. I want to work a little bit faster using Lisp.
It would help if you would answer my questions in Messages 3 and 9, as well as these:
What would you want to be the steps a User would take? It seems to me that if not limited to a very narrow range of specific circumstances, any routine might be no simpler in operation than just using STRETCH.
What would the User select, and how would they select it or them? And how would they specify how far to Offset? [Obviously, from your examples, it would not always be the same distance, so that can't be built in.] Would the direction of Offsetting always be the same [upward in your examples], or would they need to specify which way? Would it always be up-vs.-down, or sometimes left-vs.-right, or sometimes at non-orthogonal angles? Would the pieces involved always be Lines specifically, or might there be other kinds of objects, or might they be just parts of a single object [typically a Polyline]? If they're separate pieces, would you want the routine to find the ones that connect at the ends of one you would select, or would they be part of the User's selection? Would there always be only one object touching it at each end, or might there be more than one, and if so would only one need to be altered, or all of them? Might there sometimes be no object touching at one of the ends? Would it always be only one object [or one Polyline segment] that Offsets, or might there sometimes be more than one that should be Offset/Moved together? Your examples include Dimensions -- is that just for illustration, or would Dimension objects be there and should they also be adjusted accordingly?
If you connect the pieces into a Polyline in which you want to do the equivalent of STRETCHing one line segment, and have adjacent segments' adjoining ends follow along, no command or routine is required. You can simply select the Polyline and grab the midpoint grip of that segment, and take it where you want it -- very simple if in an orthogonal direction, when you can just aim the cursor in the direction you want and type in the distance. But that's not going to have the effect you seem to want if the segment is an arc.
Kent Cooper, AIA