
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Automate AutoCAD drawings with Python, learning layers and elements like points, lines, circles, and dimensions. Apply to a shell-plate steel tank drawing, with a GUI and project that saves time.
Begin your Python journey by setting up the development environment with Anaconda and Jupyter notebook. Install and launch the toolkit, create a new Python notebook, and print hello world.
Explore how to declare and use variables in Python to store data, perform string and numeric operations, and convert values with int, float, and str functions.
Learn how to create and manipulate Python lists using square brackets, indices starting at 0, and key methods like len, append, insert, remove, pop, clear, sort with reverse, and copy.
Explore storing data in dictionaries as key-value pairs, accessing and updating values with keys in brackets, and using keys, values, and items methods to manage entries and lists of dictionaries.
Master python if statements by using comparison operators, and, or, and else, and understand indentation, elif, and how conditions control code execution.
Learn to collect data from user input in python, convert to int() or float(), and perform addition; explore while loops with break, continue, and else to control loop flow.
Learn for loops in Python to run code over lists, strings, and dictionaries using items(), range(), and nested loops, with break, continue, and else for control flow.
Master Python error handling with try-except to prevent code stopping, validate user input with a while loop, and verify results using print.
Learn Python functions—from defining with def and parameters to defaults and returns—while exploring global and local variables, quizzes, and projects, and prepare to control AutoCAD using Python.
Learn how to control AutoCAD with python using the pyautocad library, import Apoint and AutoCAD functions, and initialize acad with create_if_not_exist to open drawings.
Learn to automate AutoCAD layer setup with Python by creating layers, setting color indices and line weights, loading linetypes, and adding layer descriptions, then verify the results in AutoCAD.
Create and plot points in AutoCAD with Apoint in Python, using p[0] and p[1] for coordinates, and set display with PD mode and PD size; assign points layer color.
Learn to automate AutoCAD drawing with Python by creating lines, circles, and text, organizing layers, colors, and fonts, and rotating text.
Learn how to create a rectangle in AutoCAD by coding a rect function with corner point, length, and width, then generate corners p2, p3, p4 and draw lines.
Learn to script polyline creation in AutoCAD with Python, using trigonometry to compute endpoints from a starting point, length, and angle, looping until e, producing octagons.
Create arcs and ellipses in AutoCAD with python, using center, radius, and radians for arcs, and major axis endpoint with minor/major ratio for ellipses, then measure semi-major and semi-minor axes.
Learn how to generate curves in AutoCAD using python by plotting many parametric points and connecting them with lines, with ellipse and spiral examples and smoothing by adjusting interval count.
Learn to create a spline through multiple points in AutoCAD using python. Use pyautocad adouble to define x, y, z coordinates and apply add spline with start and end tangency.
Master solid creation in AutoCAD using the solid command and Python's AddSolid, learning anti-clockwise point sequences to build rectangles and triangles and convert them to code.
Create and reuse AutoCAD blocks with Python by defining a block with a reference point and name, then add lines, circles, ellipses, text, and solids, and insert or delete blocks.
Learn to create AutoCAD dimensions with python, including linear, angular, arc, diameter, and radial dimensions using add dim aligned, rotated, angular, arc, diametric, and radial commands.
Learn to modify dimension properties in AutoCAD using Python, including arrow size, text height, arrowhead types, precision, text position, alignment, extension lines, and custom text.
Collect user inputs for plate and tank dimensions to automate a shell plate development drawing, then compute number of courses with math.ceil and build a unique, sorted thickness list.
Create layers for plates, plate numbers, course text, and section views. Use the AutoCAD color index to assign green to plates, purple to text and views, and white for dimensions.
Learn to automate AutoCAD plate drawing with Python by calculating widths and heights from thickness data, using dictionary, and drawing rectangles via the rectangle function with 0 and 2000 offsets.
automate plate number labeling in AutoCAD with Python, mapping thickness to plate numbers, formatting texts like P-01, and positioning by x and y coordinates.
Use Python to automate AutoCAD text: place the course number and plate thickness on the left from the origin, looping through thickness values and assigning to the course number layer.
Create and configure horizontal, vertical, and dimrotated dimensions in a drawing using Python, matching original properties and looping through plate heights to adjust text height, arrow size, and precision.
Learn to automate AutoCAD section symbol creation with Python by building S2 and S1 section blocks, mirroring coordinates, looping point generation, inserting text, and rotating blocks.
Run a python-driven AutoCAD automation test by executing all code in one cell, generating a drawing in a new AutoCAD sheet, and verifying results to show time savings.
Build a graphical user interface with Tkinter to turn Python scripts into standalone applications. Create a main window, set geometry, title, and icon, and run it via the main loop.
Learn to create and position tkinter gui widgets with ttk, including label, button, entry, check button, and radio buttons, using text, command, get methods, variables, and pack positioning.
Explore three tkinter widget positioning methods: pack, grid, and place; manage internal and external padding, fill, expand, anchor, and side; and configure grid rows and columns with sticky.
Create a tkinter-based GUI to collect plate and tank dimensions and per-course thicknesses, dynamically expanding fields by course height, and generate an AutoCAD drawing with a final completion message.
Learn how to convert a python program into an executable using auto_py_to_exe, including installing python, configuring path, selecting directory mode, adding pyautocad modules, and generating a gui app.
AutoCAD is one of the most versatile designing software frequently used by millions around the world. However, making complex drawings is time consuming and are subjective to errors which increases overall operating cost of business. You can save 90-95% of your time and prevent errors by implementing python programming language in AutoCAD through this course.
This is the complete and ONLY course of AutoCAD automation using python on Udemy. From setting up python programming language to converting your automation code .py (source) file to .exe (application) file, this course covers all. By going through this course you will be able to write code in Python Programming language for automating drawings.
This course contains lectures and projects of real life example where I automated the drawing of my colleague draftsmen and was able to reduce there time on drawing from hours to minutes. This course will teach you in a practical manner. With every lecture, comes a full coding screencast and a corresponding code (source file) notebook.
Following are the content of the course:
Python crash course:
Data types and Variables
List and Dictionaries
If statements
User inputs and Loops
Functions and Error Handling
AutoCAD automation:
Layers
Points
Line, circle, text
Polyline, rectangle
Arcs, Ellipse
Curves
Spline
Solid
Blocks
Dimension and its properties
Automation Project
GUI creation and code to application conversion
This course will also teach you how you can create GUI for your code and convert your .py file to .exe file. So, that you will be able to handover the execution file to someone you automated the drawing for.
So what are you waiting for? Learn to Automate AutoCAD using python and make your and other's life easy.