Dan

Results 37 comments of Dan

Inserting blocks is a fundamental operation you should probably understand before you begin writing code. it’s also a good idea to become somewhat familiar with the API pyautocad accesses https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-A809CD71-4655-44E2-B674-1FE200B9FE30...

the function should return a tuple with the min max values. I think you call the entity.GetBoundingBox() with no arguments

Yeah, I couldn’t get it to work. As part of my project, https://github.com/CEXT-Dan/PyRx See https://github.com/CEXT-Dan/PyRx/blob/main/PyRxStubs/AxApp24.py I used win32com’s makepy to generate wrappers, and that works. I modified the generated wrappers...

If the installer is complaining, you can double check that python is in your path(s) Before running the installer, make sure the python has a path https://github.com/CEXT-Dan/PyRx/blob/main/env.png

BTW, I’ll be out of of touch for the holidays, I fly out in the morning.. kind of bad timing There’s a ton of info at the swamp that may...

Great! you can just get rid of the pyautocad import and stuff You can try my test https://github.com/CEXT-Dan/PyRx/blob/main/PySamples/ActiveX/testWin32Com.py in AutoCAD, use the new pyload command, load testWin32Com.py and type GetEntX...

Autocad's Object Model (ActiveX) is a good place to start https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-A809CD71-4655-44E2-B674-1FE200B9FE30

then change to ine1.layer = "0" #zero see if it works, all drawings have a zero layer Also, if your using AutoCAD 2021 or later, you can try this library....