Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

toolbar button macro to open file

Status
Not open for further replies.

dciadmin

IS-IT--Management
May 10, 2002
34
Would like to create a couple of buttons on a toolbar that when clicked will open up a predetermined file.

The button only needs to open up the file listed in the macro with no user prompts but I cannot seem to get it to work. I am using AutoCad 2002.

Something like .... ^c^c^cfiledia 0 open F:/adwg/test.dwg

Can someone tell me the proper syntax for doing this? I have tried multiple variations.

Thanks for your help,

dciadmin
 
i am not sure but I think you may need to have the macro call a lisp routine containing the path and file name.
 
try this:

(command "vbastmt" "AcadApplication.Documents.Open \"C:/Drawings/Mydrawing.dwg\"")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top