Message 1 of 3
read and set the attributes of blocks in windows 64 bit
Not applicable
02-24-2010
10:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone
I read and set the attributes of blocks using VBA in AutoCAD 2010 on
Windows 64 bit.
In Windows 32-bit I always used the following code without problems:
NposScr = elem.GetBlockAttributeValue(o.ObjectID)
and
Call oML.SetBlockAttributeValue(o.ObjectID, "TEST")
But now in Windows 64 bit does not work.
I tried to replace o.ObjectID with o.ObjectID32 and early seemed to
work, but after a while 'has begun to indicate the following error:
Compile error: Function or interface marked as restricted, or the
funzion uses an Automation type not supported in Visual Basic
I want a code that works with both Windows 64-bit and 32 bit Windows.
Can you help?
Thanks
I read and set the attributes of blocks using VBA in AutoCAD 2010 on
Windows 64 bit.
In Windows 32-bit I always used the following code without problems:
NposScr = elem.GetBlockAttributeValue(o.ObjectID)
and
Call oML.SetBlockAttributeValue(o.ObjectID, "TEST")
But now in Windows 64 bit does not work.
I tried to replace o.ObjectID with o.ObjectID32 and early seemed to
work, but after a while 'has begun to indicate the following error:
Compile error: Function or interface marked as restricted, or the
funzion uses an Automation type not supported in Visual Basic
I want a code that works with both Windows 64-bit and 32 bit Windows.
Can you help?
Thanks