AutoCAD Map 3D Developer
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
VBA 64 bit: ODRecord.A ttachTo doesnt work
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello,
on vba, ODRecord.AttachTo(plineobj.ObjectID32) doenst work. plineobj.ObjectID32 is i.e. 47, I think thats not correct. I think, the thisdrawing.Utility.ObjectId32ToObjectIdString gets the right ID. But how can I use this ID with AttachTo ?
Software:
AutoCad Map 3D 2013, Windows 7, both 64 bit
Re: VBA 64 bit: ODRecord.A ttachTo doesnt work
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Huggy,
Could you try using ODRecord.AttachTo(plineobj.ObjectID) instead ?
Does it help ?
Partha Sarkar
Developer Technical Services
Autodesk Developer Network
Re: VBA 64 bit: ODRecord.A ttachTo doesnt work
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
No, that doesnt works. Error on compiling.
VBA-Version is 6.5, is this the correct version for 64 bit?
Re: VBA 64 bit: ODRecord.A ttachTo doesnt work
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
I don't have VBA installed right now on my Map 3D 2013 64 bit version. You can download the correct version from the link below -
http://usa.autodesk.com/adsk/servlet/item?siteID=1
In the past I have seen some issues in using VBA on 64 bit Map 3D running on 64 bit OS and at times you might see inconsistent behavior. If you have any chance to migrate to VB.NET instead, I would suggest you to consider the same.
And the following might be useful info to you :
http://usa.autodesk.com/adsk/servlet/index?siteID=
Thanks,
Partha Sarkar
Developer Technical Services
Autodesk Developer Network
Re: VBA 64 bit: ODRecord.A ttachTo doesnt work
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I also tried with my Acad Map 2012 64-bit. No, it did not work. That means, for 64-bit Acad Map, the Map COM API (contained in AcMapVbApi.dll/tlb) is broken and useless, at least in terms of ObjectData related APIs (Has Autodesk ever mentioned that Acad Map COM API would be broken in 64-bit, other than generally claiming VBA would be problematic in 64-bit Acad?).
Re: VBA 64 bit: ODRecord.A ttachTo doesnt work
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi, having the same issue with the line:
oRecord1.AttachTo (ent.ObjectId)
Can do everything else (read object data, attach databases, even digitize new blocks) but can't attach object data with VBA.
This is an old project and don't have the time to migrate to .NET yet, but may have to if this doesn't get sorted.
thanks all!
gordon
Re: VBA 64 bit: ODRecord.A ttachTo doesnt work
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Well, with 64-bit VBA being built into AutoCAD 2014, we may be able to hold our breath to see if this will be back to work again when AutoCAD Map 2014 comes out in next a few days (or weeks)?
Re: VBA 64 bit: ODRecord.A ttachTo doesnt work
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
This VBA Object Data connect bug was a bit of a show-stopper in my project.
I have already started moving over to .NET and the cumbersome BlockTableRecord and DatabaseServices API that is found in there...yuck.

