@11706013 wrote:....
Some of the polylines I'm dealing with will be multi-segmented and have a width as the code is being designed for hydraulic drafting and some services may be shown thicker than others. We mainly deal with just lines but I was aiming to make my code more widely applicable.
Maybe this is not a viable suggestion, if [for example] your start/end points are coming from preceding code rather than User selection, but just in case....
So in any routine for this kind of thing, you need to select the Line/Polyline, and you need to have the new locations for the ends established. If those are by User selection, how 'bout, instead, just grip-editing it? No code required, no command [custom or otherwise] to invoke, works the same for either entity type, and the only additional step is, after picking the Line/Polyline, you need to pick on the grip at each end before picking the new location for it. And it lets you change only one end, if that's sometimes appropriate, without running into errors.
Kent Cooper, AIA