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

method 'getentity' of object 'iacadutility' failed when

0 REPLIES 0
Reply
Message 1 of 1
jleonard
480 Views, 0 Replies

method 'getentity' of object 'iacadutility' failed when

Updating VBA code from AutoCAD 2011 to 2015. In one particular macro it should prompt for the user to pikc a Polyline. It never propmpts and finishes with the error trap. I get the error "method 'getentity' of object 'iacadutility' failed " when commenting out the "On Error Resume Next". What has changed since 2011 that would cause this?

 

    AreaBlockchk = False
    On Error Resume Next
    oDocB.Utility.GetEntity returnObj, basePnt, "Please select a desired Area POLYLINE to process:"
    ZoomExtents
    If Err <> 0 Then
        MsgBox "Either no POLYLINE was selected, or the routine has been canceled.", vbCritical + vbExclamation, "CT-Error"
        oDocA.Close False
        oDocC.Close False
        Exit Sub
    End If

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