« Fields get some new muscle in AutoCAD 2006 | Main | Heading to New Hampshire »



how can i run automaticaly a script file in autocad via visual basic


To run a script from VB or VBA you will need to use the SendCommand method which allows you to run commands directly from the command line. While this is not really a preferred method due to the commands not being executed right a way, it can be done though. When sending commands to AutoCAD using this method, AutoCAD might not run the commands until the remainder of the code is done running. So you will want to make sure that the script is as close to the end of the procedure as possible.

The comments to this entry are closed.