Jump to content

Recommended Posts

Posted

Hi Lee

 

i have been using your copyswaptext las 1 year it was workingSwapText.lsp fine all of a sudden today it stooped working

Posted (edited)

How can I possibly help if the only information you provide is that it 'stooped working'? What error message do you receive?

Edited by Lee Mac
Posted

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.

Posted (edited)

image.thumb.png.3029bcb0d7bcc6207fb49ef266401cd9.pngHope this helps with the error.

Edited by BIGAL
  • Funny 2
Posted

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 🤭

  • Like 1
Posted (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 by Jonathan Handojo
Posted

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

Posted (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 by Jonathan Handojo
Posted

Thanks

it still not working.

thanks for the help

Posted
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.

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...