The ThisDrawing.PaperSpace.InsertBlock in VBA

The ThisDrawing.PaperSpace.InsertBlock in VBA

Anonymous
Not applicable
1,340 Views
0 Replies
Message 1 of 1

The ThisDrawing.PaperSpace.InsertBlock in VBA

Anonymous
Not applicable

Hi

I am have a problem with the attached VBA the code works ok the first time the next time that it runs there is a runtime error "Run-time error '-2145386445(80200033)'; Filer error. if you hit debug the following line of code is highlighted

 

Set newBlockObj = ThisDrawing.PaperSpace.InsertBlock(insertionPoint, "C:\cad\ENP_Custom\ENP-AutoCAD\PW_TITLE.dwg", 1#, 1#, 1#, 0)

 

If you close AutoCAD between drawings there is no problem. This line is as found in the help files except that I have hard coded the path to the block that I would like to insert?

0 Likes
1,341 Views
0 Replies
Replies (0)