Hi,
I am encountering this issue when trying to interact with AutoDesk AutoCAD 2024:
table = new_layout.Block.AddTable(ip, 3, 3, 5.0, 5.0)
File "<COMObject <unknown>>", line 3, in AddTable
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147024809), None)
Where the issue comes from ip, the insertion point. I have tried using APoint(0,0), APoint(0.0, 0.0), APoint(<other existing object>.InsertionPoint), using array('d', [0.0, 0.0, 0.0]) and many other different insertion points.
I keep getting this error and I have referred to the ActiveX documentation: https://help.autodesk.com/view/OARX/2024/ENU/?guid=GUID-A5A767A8-98D0-40B4-89D1-1F0E5AC52EB7
I was wondering why is this the case? I have attached more info & the short source code here: https://stackoverflow.com/questions/78095497/pyautocad-activex-pywintypes-com-error-addtable-wrong-p...
Thank you dearly for any replies or hints.