Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LSP routine does not work in AutoCAD 2014 after customization

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
jackvogel
671 Views, 7 Replies

LSP routine does not work in AutoCAD 2014 after customization

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

7 REPLIES 7
Message 2 of 8
owenwengerd
in reply to: jackvogel

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?

--
Owen Wengerd
ManuSoft
Message 3 of 8
paullimapa
in reply to: jackvogel

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.

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 4 of 8
jackvogel
in reply to: owenwengerd

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!

Message 5 of 8
jackvogel
in reply to: paullimapa

Thanks for your reply. It worked until I customized my workspace. Now I get the error as described in the drawing I attached. 

Message 6 of 8
paullimapa
in reply to: jackvogel

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.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 7 of 8
jackvogel
in reply to: paullimapa

Thanks. Worked great. I really appreciate your effort. --Jack

Message 8 of 8
paullimapa
in reply to: jackvogel

You are welcome.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost