tag:blogger.com,1999:blog-172064542047038417.post859747770248789399..comments2023-12-23T00:46:26.330-08:00Comments on Zyzmog Galactic Headquarters: DraftSight and scriptingZyzmoghttp://www.blogger.com/profile/08262005290131425919noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-172064542047038417.post-82262201406905272802013-10-19T09:31:20.535-07:002013-10-19T09:31:20.535-07:00please can you show that ms-dos batch file, how to...please can you show that ms-dos batch file, how to open drawing together with added draftsight script and let it runAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-172064542047038417.post-72391559147634180352013-01-27T07:29:51.836-08:002013-01-27T07:29:51.836-08:00I have a clumsy but effective solutions I employ. ...I have a clumsy but effective solutions I employ. Using a ms-dos batch file to open every drawing in a folder and run a script to produce a PDF.<br /><br /><br />I do not have it available on this computer but I will put up some more details on Monday when I can.<br /><br />MikeAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-172064542047038417.post-5365456955717892582013-01-22T08:11:17.256-08:002013-01-22T08:11:17.256-08:00p.s. to Mike: I'm just guessing here, but DS m...p.s. to Mike: I'm just guessing here, but DS might also have the capability to run scripts in the background - that is, you never see DS open a window or anything while it's running your script.Zyzmoghttps://www.blogger.com/profile/08262005290131425919noreply@blogger.comtag:blogger.com,1999:blog-172064542047038417.post-37302497657545900332013-01-22T08:10:14.661-08:002013-01-22T08:10:14.661-08:00@Mike, welcome to my blog. This should be a simple...@Mike, welcome to my blog. This should be a simple thing to do. Basically, you want to use a script to do three things: open the drawing in DraftSight, save the drawing as a PDF, and then close Draftsight. I'm not totally sure, but I believe that DS supports auto-start scripts, the kind that run when you open DS. It sounds like that would be ideal for your application. DS has a very rich scripting language, whose syntax matches the AutoCAD scripting language almost 100%.<br /><br />You could also write a LISP program to do this for you. The advantage of Lisp is that it executes faster than a script. The two disadvantages are that LISP has a steeper learning curve than script, and the LISP capability costs money. It's not prohibitively expensive, though, and if you're going to be creating a lot more tools, then LISP might be the way to go. But try scripting first.<br /><br />You can find a lot of online resources by searching for "autocad script tutorial." Almost anything that's written for or about ACAD works just fine with DS.Zyzmoghttps://www.blogger.com/profile/08262005290131425919noreply@blogger.comtag:blogger.com,1999:blog-172064542047038417.post-72267209836673706542013-01-22T07:50:41.422-08:002013-01-22T07:50:41.422-08:00Hi. This is my first blog post ever, so please fo...Hi. This is my first blog post ever, so please forgive if this is the wrong forum for this. I use DraftSight to convert AutoCAD files to PDFs (as the first step in a several step file conversion). If I could have an external script to automatically run these DraftSight conversions, that would be fantastic. I would be willing to pay a developer to do this but don't know where to start. Can you help me understand if DraftSight can be used to do this and if so, what scripting language would be used? Even better, if you could point me perhaps toward a developer forum for this, I would be extremely grateful.Mikehttps://www.blogger.com/profile/11173214706558975618noreply@blogger.com