whats going on with the vba enabler for Autocad 2011

whats going on with the vba enabler for Autocad 2011

Anonymous
Not applicable
952 Views
5 Replies
Message 1 of 6

whats going on with the vba enabler for Autocad 2011

Anonymous
Not applicable

After running a vba project for over 2 years without problems and then having to install the vba enabler for Aitocad 2010 again with no problems i am now confronted with the fact that my project will not run in 32 bit autocad 2011 with the 2011 enabler loaded.

My code basically asks the user to select 2 points on screen then opens a userform from which the user selects info from list boxes or inputs into text boxes. The info gathered from the userform is then used to create a block in the Autocad drawing. Unfortunately  the code in 2011 now crashes with an error message ( see attachment) When i select debug the area of the code which is in bold text in the attachment is highlighted.

The code appears to create the first attribute in the block but does not create any of the others

I am at a loss as to why this is happening and need some help. Can anyone help as i need to get this working again as i cannot uninstall and reinstall vba enabler in 2010 and i want to be able to migrate this over to vb asap.

regards

john b

0 Likes
953 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

I haven't tried any VBA in AutoCAD 2011 yet, but Autodesk has said that they will no longer support it since Microsoft dropped it about 3 years ago.  The enabler should work, but obviously it doesn't.  You might want to consider switching from VBA.  Easier said than done, I know.

0 Likes
Message 3 of 6

Anonymous
Not applicable

I really do not think that is good enough. Autodesk should continue support for all programming interfaces or come up with an easier way for dedicated users to port their programming customization across to VB.

I have been using their products for over 18 years now and to drop us without thought is criminal.

My program worked fine in 2010 and below and if they are going to provide a workaround for 2011 then it should work.

We should allinsist that vba support is continued as i do not see microsoft dropping VBa on a whim.

Regards

John B

0 Likes
Message 4 of 6

hgasty1001
Advisor
Advisor

Nothing it's going on with the vba enabler, at least not in this case, just check that Attributes Tags does not permit spaces.

0 Likes
Message 5 of 6

Anonymous
Not applicable

I understand this but the code attached worked fine in 2010 but will not work in 2011. I have not edited any code just tried to run the vba project as i previously did in 2010.

John B

0 Likes
Message 6 of 6

hgasty1001
Advisor
Advisor

Then it was a bug in the API, as tags does not accept spaces since they were introduced.

0 Likes