bigr1822 Posted December 17, 2008 Share Posted December 17, 2008 All, I have a really good feeling that we are the only company that has run into the problem I am about to try and explain to you. AutoCAD really sucks when you try and print a drawing and when it can't find the printer it was last saved with, either because the printer no longer exists or what have you. I have been told you can Manually run Script Files that will add the proper printers and page setup. Please forgive me if I am speaking incorrectly, I have not used AutoCAD since College, 12 years ago. I guess what I am looking for if someone has any examples of VB Code that will run a script file so when users hit the plot button, they won't get the message that comes up, not finding the last printer saved. Help??? Thanks All, Rodney Quote Link to comment Share on other sites More sharing options...
bigr1822 Posted December 17, 2008 Author Share Posted December 17, 2008 Ok, I found some info. > Dim filenameSCR As String filenameSCR = "C:\Scripts\" & "Name of Script file" & ".scr" ThisDrawing.SendCommand ("_script" & vbCr & filenameSCR & vbCr) > but it always brings up the dialog box wanting you to select the script file. Any ideas??? Quote Link to comment Share on other sites More sharing options...
Raggi_Thor Posted December 17, 2008 Share Posted December 17, 2008 turn off filedia FILEDIA 0 Then turn it on when you are done. Quote Link to comment Share on other sites More sharing options...
Raggi_Thor Posted December 17, 2008 Share Posted December 17, 2008 You can also use: Thisdrawing.Application.RunScript Quote Link to comment Share on other sites More sharing options...
CmdrDuh Posted December 19, 2008 Share Posted December 19, 2008 why call a script to plot from VBA, why not print from VBA? I have code if you want it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.