Renaming Layer lisp , just like the original in autocad but with modification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
i prepared a script for change layer in multiple drawing, but the problem is , if the layer is been rename, and there is no layer name , they will continue to ask the old layer , and since in script we can't make esc /cancel command, can you tell me how to modified layername change or maybe a lisp for renlayer?
so when the old layer isnt there they will cancel and turn back to "command" or turn to "enter an option(...."
example:
-LAYER
Current layer: "0"
Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]: r
Enter old layer name: bearing
Enter new layer name: bearing01
Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]: r
Enter old layer name: dim
Cannot find layer "dim".
Enter old layer name: dim
Cannot find layer "dim". (they always repeating, what i want is they just cancel and back to "command" or to "enter an option (..." again)