Find and replace only with command line NO LISP

Find and replace only with command line NO LISP

Anonymous
Not applicable
2,794 Views
11 Replies
Message 1 of 12

Find and replace only with command line NO LISP

Anonymous
Not applicable

It is possible to find a text and replace ONLY with the command line or a script (.scr) ? No LISP or software

0 Likes
Accepted solutions (1)
2,795 Views
11 Replies
Replies (11)
Message 2 of 12

cadffm
Consultant
Consultant

Only with attribut value by -ATTEDIT

 

 

Sebastian

0 Likes
Message 3 of 12

Anonymous
Not applicable

the text is not in a block...I can't use this command

0 Likes
Message 4 of 12

cadffm
Consultant
Consultant
Accepted solution

So, there is no solution for this goal inside of Autocad without any API (like lisp, .net) and without another program.

 

It is only available in some cases for attributes,

or via api

or outside AutoCAD

or with another program which can control the find dialog for you.

 

Sorry

Sebastian

0 Likes
Message 5 of 12

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

It is possible to find a text and replace ONLY with the command line or a script (.scr) ? No LISP or software


 

Does that prohibition include "No FIND command"?  That isn't either AutoLisp nor external software, but a regular AutoCAD command, and will find and replace text content of all kinds, including in Attributes.  But it does  involve a dialog box, if that means it doesn't qualify for you as "ONLY with the command line."

Kent Cooper, AIA
0 Likes
Message 6 of 12

Anonymous
Not applicable

I can't use dialog box. I need to give all the command in the command line or in a script

0 Likes
Message 7 of 12

cadffm
Consultant
Consultant

"command line or in a script"

That statement sounds curious. If you had wrote "via Keys or in a script" - ok,

but why "command line or in a script"? Do you use another program to record your steps?

then the third part program pretty sure record your KEYBOARD-Input and you can control

dialogs with only-key input.

 

Sebastian

0 Likes
Message 8 of 12

Anonymous
Not applicable

no no just because I use VBA code to write in the command line on AUTOCAD Smiley Very Happy 

0 Likes
Message 9 of 12

cadffm
Consultant
Consultant

If that was a joke, that was good!

And now start with real programming and do not spend more time for lazy cheap solutions.

 

For the next time maybe mention that one works by VBA,
because then maybe you would already have a (vba) solution.

Sebastian

0 Likes
Message 10 of 12

JTBWorld
Advisor
Advisor
You can do this directly in VBA.

Jimmy Bergmark
JTB World - Software development and consulting for CAD and license usage reports
https://jtbworld.com

0 Likes
Message 11 of 12

Anonymous
Not applicable
Shoud you post a example of code?
0 Likes
Message 12 of 12

JTBWorld
Advisor
Advisor
If you post in the VBA Forum you might get help for free or contact me directly if you want to outsource the programming.

Jimmy Bergmark
JTB World - Software development and consulting for CAD and license usage reports
https://jtbworld.com

0 Likes