×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

toolbar button to open a file

toolbar button to open a file

toolbar button to open a file

(OP)
Can't seem to get this simple button to work for me.  Need to have a button on the toolbar that will open a predetermined file.  I have tried many different variations.

Using AutoCad 2002.  Basically just need to do this:

^c^c^cfiledia 0 open f:/adwg/test.dwg

Any help on the syntax would be appreciated.

dciadmin

RE: toolbar button to open a file

I could'nt make the script work directly from button menu
but here is a work around.
open notepad and create your script something like this.

_open
"c:/your_dir/yourdwg.dwg"


make sure there is a hard return after the script, this is
the same as hitting the enter key. Name the script with a .scr
extension and save in a location you can find.

Next call the script from your customized toolbar
somthing like this.

^C^Cscript;C:/your_script_dir/your_script.scr;

This should take care of your problem
Good Luck

RE: toolbar button to open a file

(OP)
Hi Cadkid,

Thanks for the info ... I will try it out.  I thought I must be going crazy.  Seems like such a procedure as opening a drawing would be a simple thing to do with the buttons.

Thanks again,

dciadmin

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources