Python and AutoCAD

Python and AutoCAD

miacuviz13
Explorer Explorer
1,761 Views
3 Replies
Message 1 of 4

Python and AutoCAD

miacuviz13
Explorer
Explorer

I wrote a code in Python for converting Serbian Latin letters into Cyrillic and vice versa, it was meant to be a tool for AutoCAD, but I can't seem to figure out a way to make it work in AutoCAD. Has anyone worked with Python and AutoCAD before, is something like this possible?

0 Likes
1,762 Views
3 Replies
Replies (3)
Message 2 of 4

AVCPlugins
Advisor
Advisor

Actually, plugins for AutoCAD are written in .Net (C# or BASIC). For the pros there is C++ (ObjectArx). For very simple macros, you can use LISP scripts. But Python is not directly supported. However, enthusiasts come up with workarounds. For example, read here: https://pypi.org/project/pyautocad/


Plugins for AutoCAD
A>V>C>
AppStore | Facebook | Twitter | YouTube | Blog
0 Likes
Message 3 of 4

miacuviz13
Explorer
Explorer

Thank you, will read more on it! 

0 Likes
Message 4 of 4

Ed__Jobe
Mentor
Mentor

@daniel_cadext has a C++ wrapper library for python. He works on it at the swamp. If you want help for it here, ask your questions in the .NET forum.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature