The DataCAD Developer Network (DDN) is an online resource for information and support for DCAL® (DataCAD Applications Language) developers as well as anyone interested in creating fonts, toolbars, hatch patterns, or linetypes for use in DataCAD.
#41356 by joshhuggins
Tue Jan 27, 2009 6:13 pm
I am creating a batch file to create templates for all of our symbol folders so we can use the template library macro to catalog our symbols. I've hit a little snag I can't seem to find an answer to. The Datacad template format uses a return between the template file version and the X division value. I can't seem to find a way to get a batch file to add the required return. Any ideas? The only thing I found online suggested using "\\n" which provides a return for the echoed command on the screen but not to the tpl file.. Here is my script. TIA
Code: Select allEcho DataCAD template file version 01.10. > "%CD%\Template.tpl"
Echo "\\n"
Echo 3 >> "%CD%\Template.tpl"
Echo 11 >> "%CD%\Template.tpl"
Echo * >> "%CD%\Template.tpl"
dir *.dsf /b /s >> "%CD%\Template.tpl"
Template.TPL Output
Code: Select allDataCAD template file version 01.10.

11
*
D:\Users\JoshH\Desktop\RETAINING WALL TYPE 3.dsf
D:\Users\JoshH\Desktop\RETAINING WALL TYPE 4.dsf[/url]

Last edited by joshhuggins on Thu Feb 12, 2009 12:50 pm, edited 1 time in total.
#41357 by joshhuggins
Tue Jan 27, 2009 6:26 pm
Nevermind I was able to fake it by using
Code: Select allEcho DataCAD template file version 01.10. > "%CD%\Template.tpl"
Echo _>> "%CD%\Template.tpl"
Echo 3 >> "%CD%\Template.tpl"
Echo 11 >> "%CD%\Template.tpl"
Echo * >> "%CD%\Template.tpl"
dir *.dsf /b /s >> "%CD%\Template.tpl"
Guess Datacad is just looking to skip a line.

Who is online

Users browsing this forum: No registered users and 5 guests

About DataCAD Forum

The DataCAD Forum is a FREE online community we provide to enhance your experience with DataCAD.

We hope you'll visit often to get answers, share ideas, and interact with other DataCAD users around the world.

DataCAD

Software for Architects Since 1984