I am trying to write a script to update a block definition in Draftsight. I used AutoCad for many years and switched to Solidworks about 15 years ago. So I am a little rusty with my scripting. I need to produce deliverables in DWG format for my customer and am using Draftsight to achieve this task. The following is what I came up with from bits I found online. When I run it in Draftsight,
Drafsight comes back with
"Specify block name» CHATT="Q:\\T141
«Error»"
I'm thinking the spaces in the file path are the culprit. Can someone please tell me how to handle spaces in this situation when writing a script.
-INSERT
CHATT="Q:\\T141 Stellantis Gen4 Valve Body Test\\Mechanical\\CHATT.dwg"
0
1
1
0
Erase
Last
QSAVE
«Error»"
Thank You
Rick
