VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The ThisDrawing.PaperSpace.InsertBlock in VBA

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
1259 Views, 0 Replies

The ThisDrawing.PaperSpace.InsertBlock in VBA

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 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