Autocad R14 vba block add problem
Autocad R14 vba block add problem
(OP)
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





RE: Autocad R14 vba block add problem
DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.