Yes absolutely you can, but make sure you have python installed and follow the below: In the AutoCAD command line, type SHELL and press Enter. This will open up your system's command prompt or shell. Then you need to execute your Python script. If Python is set up properly in your system's PATH, you can directly run the script by typing: Python [put here the path to the file include .py] I am thinking to create a short for this
Is it possible to convert Python code into a file that can be called from AutoCAD, such as calling and running Lisp scripts?
Yes absolutely you can, but make sure you have python installed and follow the below:
In the AutoCAD command line, type SHELL and press Enter. This will open up your system's command prompt or shell.
Then you need to execute your Python script. If Python is set up properly in your system's PATH, you can directly run the script by typing: Python [put here the path to the file include .py]
I am thinking to create a short for this
i tried opening existing .dwg file using python but it takes quite a long time to open. Can anyone help me in this?
Nice lesson, thanks a lot
I hope there will be a continuing series of these lessons
You are welcome. More to come!