Lee Mac Posted May 31, 2010 Share Posted May 31, 2010 (edited) I decided to update my old 'script writer' code to make the program a lot more user friendly. I realise there is ScriptPro, and I'm obviously not in that league, but this offers an alternative. For those of you who already write their own scripts, this should be quite easy to manipulate. The user should enter the script line in the space provided at the top of the dialog, using the *file* token in place of the drawing filename. Subsequently, the user selects a directory (and subdirectories) of drawings to process, and the script is run. In this way, the user only has to enter the first line of the script, and not worry about typing all the DWG filenames to be processed. Comments/suggestions are welcome, and if you get stuck with it, let me know. Lee Code available here. Edited June 9, 2012 by Lee Mac Quote Link to comment Share on other sites More sharing options...
asos2000 Posted May 31, 2010 Share Posted May 31, 2010 as usual excellent Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 31, 2010 Author Share Posted May 31, 2010 Thanks Asos Quote Link to comment Share on other sites More sharing options...
The Buzzard Posted May 31, 2010 Share Posted May 31, 2010 Lee, That looks great. I been using the previous version and putting the miles on it. This one makes things a lot easier and I will get much use from it. Thanks The Buzzard Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 31, 2010 Author Share Posted May 31, 2010 Thanks Buzzard, I'm glad that you find it useful - I wasn't sure how many people were using it, as I had the impression that many perhaps didn't know how to use it - but hopefully this update will make things a lot clearer. Also, this automatically runs the script which takes out a few of the steps Glad you like it, Lee Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 31, 2010 Author Share Posted May 31, 2010 I did actually slightly modify this program to include text within the directory section to inform the user as to how many drawings were to be processed, however, I removed it before posting, as, if the user selects a directory with many folders and subfolders, there is a noticeable time delay while the program calculates how many drawings would be processed. And so I wasn't sure whether to add it or not. Quote Link to comment Share on other sites More sharing options...
The Buzzard Posted May 31, 2010 Share Posted May 31, 2010 Thanks Buzzard, I'm glad that you find it useful - I wasn't sure how many people were using it, as I had the impression that many perhaps didn't know how to use it - but hopefully this update will make things a lot clearer. Also, this automatically runs the script which takes out a few of the steps Glad you like it, Lee I use it to bind multiple drawings often. With the run script button it saves some time there. The whole operation in one neat package. I have been recommending your previous version to others who look to do multiple tasks. I will be pushing this one now. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 31, 2010 Author Share Posted May 31, 2010 I use it to bind multiple drawings often. With the run script button it saves some time there.The whole operation in one neat package. I have been recommending your previous version to others who look to do multiple tasks. I will be pushing this one now. Thanks mate, I appreciate it Quote Link to comment Share on other sites More sharing options...
asos2000 Posted June 1, 2010 Share Posted June 1, 2010 Lee There are suggestions See attached 1- To save the used scripts avoiding rewrite the script each time 2- To locate en existing script and read 3- Adding Help button to explain how to write commands in script line and deference between OPEN and _.OPEN (for example) and what we should observe in writing commands. Thanks for reading these unreasonable suggestions HasanCAD Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 1, 2010 Author Share Posted June 1, 2010 Don't worry, they are not unreasonable - I actually had a few of those ideas in the pipeline Certainly the idea of saving/loading previous script strings - I agree that a help button would be useful in this case, as this program is not as intuitive to use as some of my previous submissions. Thanks for the feedback, Lee Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 1, 2010 Author Share Posted June 1, 2010 I have updated the first post to Version 1.1, in this version the user can: Insert the filename token quickly by pressing the 'Filename' button. Instantly clear the Script line by pressing the 'Clear' button. Load/Save Script Strings for use between sessions. Enjoy! Lee Quote Link to comment Share on other sites More sharing options...
The Buzzard Posted June 1, 2010 Share Posted June 1, 2010 I have updated the first post to Version 1.1, in this version the user can: Insert the filename token quickly by pressing the 'Filename' button. Instantly clear the Script line by pressing the 'Clear' button. Load/Save Script Strings for use between sessions. Enjoy! Lee Lee, I downloaded the latest version, But I do not see a Filename button. I assume this might have something to do with deleting the old dcl file? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 1, 2010 Author Share Posted June 1, 2010 Hi Buzzard, The previous DCL file shouldn't affect its running - everything seems fine for me Quote Link to comment Share on other sites More sharing options...
The Buzzard Posted June 1, 2010 Share Posted June 1, 2010 Hi Buzzard, The previous DCL file shouldn't affect its running - everything seems fine for me Ill try to download again and see what happens. Quote Link to comment Share on other sites More sharing options...
The Buzzard Posted June 1, 2010 Share Posted June 1, 2010 Lee, I tried another download and everything is Ok. Thanks Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 1, 2010 Author Share Posted June 1, 2010 Excellent - thats great to hear Let me know if you find any quirks with it, or have any suggestions for improvement Thanks, Lee Quote Link to comment Share on other sites More sharing options...
asos2000 Posted June 1, 2010 Share Posted June 1, 2010 works fine for me Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 1, 2010 Author Share Posted June 1, 2010 works fine for me Excellent As far as I know, standard DCL doesn't support the combined edit_box / popup_list as you suggest in an earlier post, so I settled with a list_box to display Scripts to load. Lee Quote Link to comment Share on other sites More sharing options...
asos2000 Posted June 1, 2010 Share Posted June 1, 2010 one more suggest Saving script as *.SCR file Quote Link to comment Share on other sites More sharing options...
asos2000 Posted June 1, 2010 Share Posted June 1, 2010 and read eaxisting *.scr file 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.