CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 3437

CAD tip CAD tip # 5091:

Question CAD 
 %  platform  category 
Q - question

How to run an external EXE program from AutoCAD?

A - answer There are several methods how to launch an external .EXE application from the AutoCAD environment.

The easiest way (similarly also in AutoCAD LT) is the function (startapp) - you can e.g. run NotePad by entering (startapp "notepad.exe").

Another method are the commands SH, SHELL and START, which can be used to invoke and external OS command or program.

Another often used method is adding the requested .EXE application to the ACAD.PGP file - creating an command (program) alias. See the PBRUSH command alias definiton as a sample.

AutoCAD offers many other ways to start a program - e.g. the Shell function in VBA, ARX programming environment, MTEXTED setting, etc.

100% *  CAD 
22.6.2006    23148×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 12120:Double-click to edit raster images in DWG drawings.
Tip 11276:Inactive drawing, inactive commands after starting AutoCAD.
Tip 10881:What is the process acwebbrowser.exe resp. Chromium host executable?
Tip 10866:Revit LT 2017 in more, "secret" languages.
Tip 10658:How to open a R/O DWG without the read-only warning?

Back   All CAD Tips

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Save your floating licenses (NLS) consumed by inactive users - free unused licenses with
LogOff 2006 More info

Please use these tips at your own risk.
CAD Studio is not responsible for possible problems that may occur as a result of using any of these tips.