Guest
I'm currently developing in vba for Autocad R14 and have came across the following automation error:
SRC: AutoCAD.Application
Desc : "Calling method SetObjectID of interface IAcadBaseObject failed."
In vba i am running the following line of code:
set objBlock = ThisDrawing.Blocks.Add(dblIP,strBlockID)
Where dblIP = (0,0,0) and strBlockID = "GENERICTXT"
Problem is this will work always in all drawings bar the one i am using to test right now. The drawing is NOT read only. There are no blocks already defined with this name, yet it fails. Advice please!
Thanks,
Chris
SRC: AutoCAD.Application
Desc : "Calling method SetObjectID of interface IAcadBaseObject failed."
In vba i am running the following line of code:
set objBlock = ThisDrawing.Blocks.Add(dblIP,strBlockID)
Where dblIP = (0,0,0) and strBlockID = "GENERICTXT"
Problem is this will work always in all drawings bar the one i am using to test right now. The drawing is NOT read only. There are no blocks already defined with this name, yet it fails. Advice please!
Thanks,
Chris