Over 1.096.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and variables.
Discussion forum
?CAD discussions, advices, exchange of experience

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
|
Post Reply ![]() |
Author | |
NTGS ![]() Newbie ![]() Joined: 20.Aug.2019 Location: United Kingdom Using: AutoCAD Status: Offline Points: 4 |
![]() Posted: 20.Aug.2019 at 18:24 |
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 |
|
![]() |
|
rebellio ![]() Senior Member ![]() Joined: 04.Mar.2009 Location: Netherlands Using: Autocad 2018 Status: Offline Points: 125 |
![]() |
Seems to work fine by me.
Did you defined the path location for that block via options-->files--->Support File Search Path?
|
|
![]() |
|
NTGS ![]() Newbie ![]() Joined: 20.Aug.2019 Location: United Kingdom Using: AutoCAD Status: Offline Points: 4 |
![]() |
Yeah I defined the path location.
What version of AutoCAD are you using?
|
|
![]() |
|
rebellio ![]() Senior Member ![]() Joined: 04.Mar.2009 Location: Netherlands Using: Autocad 2018 Status: Offline Points: 125 |
![]() |
Im using acad 2018
|
|
![]() |
|
NTGS ![]() Newbie ![]() Joined: 20.Aug.2019 Location: United Kingdom Using: AutoCAD Status: Offline Points: 4 |
![]() |
I think I know the issue, the script works for me when I have a block with no spaces in its title. But when I have a block that has a space it doesn't work. When I run the script to update a block called Construction Stamp it assumes the block is called Construction.dwg.
Do you know how to represent spaces in the script file for the block title?
|
|
![]() |
|
rebellio ![]() Senior Member ![]() Joined: 04.Mar.2009 Location: Netherlands Using: Autocad 2018 Status: Offline Points: 125 |
![]() |
You were right it did not work, my mistake....
Try this and be sure you have that last enter after the _qsave command -INSERT title= (COMMAND \E "RESUME") _QSAVE this enter
|
|
![]() |
|
rebellio ![]() Senior Member ![]() Joined: 04.Mar.2009 Location: Netherlands Using: Autocad 2018 Status: Offline Points: 125 |
![]() |
Other thing is that the block wont redefine because that script is inserting a block that is already in the drawing.......
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,098 seconds.