Message 1 of 4
AutoCAD 2015 64Bit VBA error

Not applicable
04-10-2015
10:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have just installed AutoCAD 2015 64 bit version. But my VBA code which was working fine in AutoCAD2014 64 bit Shows error in AutoCAD2015.
A sample is shown below.
Sub test()
Dim obid As Long
Dim e As AcadEntity
obid = ThisDrawing.ModelSpace.Item(0).ObjectID32
Set e = ThisDrawing.ObjectIdToObject32(obid)
MsgBox e.Handle
End Sub
This code works fine in AutoCAD2014-64bit but Shows error in AutoCAD2015-64bit.
Any ideas on how to fix it?
Thanks