Author Topic: Translate Original Scripts to ScriptWriter Format  (Read 1037 times)

0 Members and 1 Guest are viewing this topic.

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Translate Original Scripts to ScriptWriter Format
« on: October 03, 2016, 10:54:25 AM »
This might be a silly question. Does anyone know if there is a way to translate old script files to Lee's ScriptWriter Format, so that they can easily load and run?

Thanks for any help!
Civil3D 2020

Lee Mac

  • Seagull
  • Posts: 12916
  • London, England
Re: Translate Original Scripts to ScriptWriter Format
« Reply #1 on: October 03, 2016, 01:32:32 PM »
Operations that are to be performed on a single drawing should appear on a single line, with ENTER appearing as a space in the line and any occurrence of the drawing filename represented by the token *file*.

For example, this:
Code: [Select]
open
"C:/mydrawing1.dwg"
line
non
0,0,0
non
1,0,0

qsave
close
open
"C:/mydrawing2.dwg"
line
non
0,0,0
non
1,0,0

qsave
close
open
"C:/mydrawing3.dwg"
line
non
0,0,0
non
1,0,0

qsave
close

Would become this:
Code: [Select]
open *file* line non 0,0,0 non 1,0,0 qsave close

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Re: Translate Original Scripts to ScriptWriter Format
« Reply #2 on: October 03, 2016, 01:38:21 PM »
Thanks for the clarification Lee. I have some long script files. I didn't know if there was a something that could remove the return character for a space; but I need to do it manually, not a problem at all. Just thought I would ask.
Civil3D 2020