sanjeeve Posted March 31, 2020 Posted March 31, 2020 Hi Lee i have been using your copyswaptext las 1 year it was workingSwapText.lsp fine all of a sudden today it stooped working Quote
Lee Mac Posted March 31, 2020 Posted March 31, 2020 (edited) How can I possibly help if the only information you provide is that it 'stooped working'? What error message do you receive? Edited March 31, 2020 by Lee Mac Quote
Jonathan Handojo Posted March 31, 2020 Posted March 31, 2020 In order to help Lee if you're not familiar with LISP, you can check the "Break on Error" under the "Debug" ribbon in VLIDE before issuing the command. You can describe your process of using the command, then when the command breaks, press Ctrl + F9 to go to the break source to exactly go where the routine fails. When you're done inspecting your errors and want to resume drawing, press Ctrl + Q to quit the error and command. Quote
BIGAL Posted April 1, 2020 Posted April 1, 2020 (edited) Hope this helps with the error. Edited April 1, 2020 by BIGAL 2 Quote
sanjeeve Posted April 1, 2020 Author Posted April 1, 2020 it has been a while to this page maybe 6 years after I am coming back but I made a typo it is "stop" but I am happy it made some to laugh during covid 19 ok here we go 2020 www.lee-mac.com :: :: "ctx" to Copy | "stx" to Swap :: Command: STX Formatting retained: Yes Select text to swap [Settings/Exit] <Exit>: se Retain mtext formatting? [Yes/No] <Yes>: n Formatting retained: No Select text to swap [Settings/Exit] <Exit>: Formatting retained: No And text to swap it with [Settings/Exit] <Exit>: Error: no function definition: VLAX-ENAME->VLA-OBJECT Command: this is the error message I am getting. my typing is bad if there is any error forgive me. thanks Stoop 1 Quote
Jonathan Handojo Posted April 1, 2020 Posted April 1, 2020 (edited) No function definition vlax-ename->vla-object... that's a first. Must have been a very old AutoCAD. It works fine for me. Are you sure you didn't do something like the below: (setq vlax-ename->vla-object nil) Edited April 1, 2020 by Jonathan Handojo Quote
sanjeeve Posted April 1, 2020 Author Posted April 1, 2020 no I didn't do anything I have been using Autocad 2019 two days before I was updating to Autocad 2021. still I have my 2019 I didn't make any change there. how to fix this Thanks Quote
Jonathan Handojo Posted April 1, 2020 Posted April 1, 2020 (edited) 10 minutes ago, sanjeeve said: no I didn't do anything I have been using Autocad 2019 two days before I was updating to Autocad 2021. still I have my 2019 I didn't make any change there. how to fix this Thanks Add (vl-load-com) anywhere outside the function... make it global. Can be the very first line or the very last line, then run it again Well, Lee's routine had that line written down near the end of the file though. Unless you only take some part of the routine and leave some out, then it would make sense that the program will fail. You need to load the entire program If that still doesn't solve it, I don't know what else will solve it. You'll need to wait for the higher-ups. Edited April 1, 2020 by Jonathan Handojo Quote
sanjeeve Posted April 1, 2020 Author Posted April 1, 2020 Thanks it still not working. thanks for the help Quote
dlanorh Posted April 1, 2020 Posted April 1, 2020 (edited) Are you using the mac version of AutoCAD or a LT version? If not, your registry has probably lost some keys look here for a solution https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stripmtext-vlax-ename-gt-vla-object-error/m-p/8916369 or https://www.cadforum.cz/cadforum_en/error-no-function-definition-vlax-ename-vla-object-tip12131 Edited April 1, 2020 by dlanorh Quote
Lee Mac Posted April 1, 2020 Posted April 1, 2020 6 hours ago, sanjeeve said: no I didn't do anything I have been using Autocad 2019 two days before I was updating to Autocad 2021. still I have my 2019 I didn't make any change there. I've seen this issue before - unfortunately the only reliable way that I have found to fix it is a reinstallation of AutoCAD. Quote
sanjeeve Posted April 2, 2020 Author Posted April 2, 2020 THANKS I'll try later, I found a lisp on another web it is working fine so far I am using that for now. thanks again Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.