Hello,
I have a LSP routine that I've been using since r14. It's worked in every version I've used until AutoCAD 2014. It worked at first but after I customized AutoCAD 2014 it no longer works. Attached is the LSP file as well as a drawing file where the LSP routine can be tested. There's a description of what the command does as well as what error I am now getting.
I'd really like to avoid reinstalling AutoCAD 2014 so I'm hoping someone can point me in the right direction; i.e., what I might look for in my customization that is interferring with this LSP routine.
Any help is greatly appreciated.
Thanks, Jack
Solved! Go to Solution.
Solved by paullimapa. Go to Solution.
Solved by jackvogel. Go to Solution.
I tested by following the instructions in your DWG, and it changed the text as expected. Have you looked at the command line to see where it fails on your system?
Your Cut2.lsp works when I used it. But it will fail if the Text Style has a defined Height which your routine does not account for.
Yes, I described that in the drawing I attached. I get the error "Cannot LENGTHEN this object." The command ran fine until I customized my workspace. I'm trying to figure out how to make it work again; what customization changes might have had an affect on it, etc.
Thanks for your reply. I hope to hear from you again!
Thanks for your reply. It worked until I customized my workspace. Now I get the error as described in the drawing I attached.
Try the attached revised CUT2.lsp which no longer relies on AutoCAD's CHANGE command on the Text which may be different as I mentioned earlier if the Style has a Height defined. Instead the subst lisp function is used to replace the Text. This would then no longer be dependent on your Text Style.
You are welcome.