auto naming function

 From:  noskule
5701.7 In reply to 5701.5 
hi michael, thanks for the script. Could the script be modified so that it takes the name of an already selected object and ask me to select the object which should get the striped name? So the workflow would be as follows (taking the sweep example):

Profile and rail are named Pipe.CE

I perform the sweep, the pipe object will be created and the profile and rail are still selected

I call the strip-ending command and the script takes the name of the selected element, strips the ending and ask me to choose the element which should get the name

I choose the pipe.

This way I only have to perform one action, if the script only strips the ending I still have to name it manualy ore use another script to apply the name of the construction elements first.