Skip to content

What is PyRx?

Dan edited this page Apr 22, 2025 · 3 revisions

PyRx is wrappers for Python, wrapping ObjectARX and ActiveX. I like to think of this project as a replacement for Lisp and VBA, while these APIs are still great options, they have very limited options for importing other useful libraries. This is where Python shines as there’s many thousands of useful modules readily available to expand your toolset

Who is this project for?

Anyone who wants to extend the behavior of CAD. Object ARX or .NET users that need to do prototyping, without the need to setup and compile a project. Lisp users who want to extend lisp.

Who should not use this project?

Admittedly the project still lacks documentation, if you are not familiar with any CAD API, or not willing to search on your own for possible solutions, you may have a hard time getting started.

Isn’t Python slow?

With respect to interfacing with AutoCAD, its on par with .NET. Some benchmarks I’ve done are even faster than .NET, but on average it’s slightly slower. One test I ran was a transformation on 50,000 points, the results.

-C++            0.085692
-C#             0.13150
-py             0.18951950000337092
-lisp           0.8120 secs

tests

Clone this wiki locally