Using A Script To Update Block In Multiple Files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am trying to write a script that updates an existing block in a drawing. I then plan on using ScriptPro to run the script across multiple drawings that have the block inside.
Found the following script from this article - https://www.cad-notes.com/how-to-update-autocad-block-in-multiple-files-using-script/
-INSERT
title=
(COMMAND \E "RESUME")
QSAVE
"title" is the block name .
I run the script through ScriptPro and it doesn't update the block
I get this message in the log file:
"title" = Warning: If you are trying to insert the file: "title" it must be inserted using the <block> = <filename> syntax. Command: y Unknown command "Y". Press F1 for help. Command: _. quit Command: **** No System Variable Changed ****
Could anyone knowledgeable about scripts let me know what I am doing wrong or suggest a better method?
Thanks