pyACAD

pyACAD

Python tools for Autodesk AutoCAD 2021 to 2026.

A folder with a script and an icon becomes a ribbon button and an AutoCAD command. No compiling, no restart.

1

Make a folder

MyTools.extension\
  MyTools.tab\
    Drafting.panel\
      Count.pushbutton\
        script.py
2

Write the script

from pyacad import ents, toast

n = ents.count()
toast.success('%d objects' % n)
3

Press Reload

It is a ribbon button, and an AutoCAD command too: type PYCOUNT, put it in a macro, or call (pyacad "PYCOUNT") from AutoLISP.

0.1.0Release 0Stars 0Open issues ApacheLicence 2.0