Jump to content

Script Writer


Lee Mac

Recommended Posts

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.

 

WScriptV1-1.png

 

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 by Lee Mac
Link to comment
Share on other sites

  • Replies 46
  • Created
  • Last Reply

Top Posters In This Topic

  • Lee Mac

    21

  • asos2000

    8

  • The Buzzard

    5

  • jgmechengr19

    4

Top Posters In This Topic

Posted Images

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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

WScriptV1-0.png

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Excellent - thats great to hear :thumbsup:

 

Let me know if you find any quirks with it, or have any suggestions for improvement :)

 

Thanks,

 

Lee

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...