AutoCAD Architecture Forum
Welcome to Autodesk’s AutoCAD Architecture Forums. Share your knowledge, ask questions, and explore popular AutoCAD Architecture topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Invalid Insertion Point in ActiveX

0 REPLIES 0
Reply
Message 1 of 1
leocourant2000
74 Views, 0 Replies

Invalid Insertion Point in ActiveX

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.

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost