I would like to programmatically to produce a code for AutoCAD using VBA. The code will find and replace text in the AutoCAD. I found that AutoLISP allow using script to call the command in AutoCAD. However, since "Find" command will induced the pop out windows so it cannot finish the process by the scripts (i.e. (command "Find" "text" "replace text")).
Is there any method to find and replace text by using AutoLISP scripting?
Yes, vl-string-subst is the function. (vl-string-subst "Obi-wan" "Ben" "Ben Kenobi")