VBA on AutoCAD 2012 64 bit?
I have recently upgraded form AutoCAD 2010 to AutoCAD 2012 (64 bit). I am using the 64 bit AutoCAD enabler. I noticed that my VBA routines on this new will not run properly. Text Field that I typed data into will not allow me to enter data. Is there a fast solution to this problem that does not envolve recoding? Thank you,
Solved! Go to Solution.
Solved by muckmailer. Go to Solution.
Hi,
>> Is there a fast solution to this problem
Without seeing what you code is? 😉 That's nothing more than guessing to what you might have used to get your program running.
So I start guessing: difference between ObjectID and ObjectID32
- alfred -
I can create a new program and put a form w/new textbox in it and it will not allow me to add text to the new
textbox. I have not added any code. Maybe it is a default setting in the textbox properties??
Any Suggestions?
Thank you,
Hi,
>> put a form w/new textbox in it
OK, now we know you are speaking about a "field in a form" and not about the AutoCAD type >>>field<<< 😉
>> I have not added any code
I have added code, because I load the form object, look to the attached sample. _VBARUN and start "showForm"
I can write a string into the TextBox by code and also by hand after the form is activated. Tested with AutoCAD 2012 SP1
- alfred -
My version I cant change the field by hand? It comes in by code but can't be changed by hand.
Say I want to change it to Drawing3.dwg to Drawing4.dwg after the program is running with the textbox
showing. I can't do it with my version of 2012.
Any suggestions.
Hi,
have you started the macro with command _VBARUN or did you start out of the IDE using the "play"-button?
Try first if you have not yet, because the second item (starting with "play"-button) is not a problem from your textbox, it's a generic focus-problem between AutoCAD, VBA-32bit-server and VBA-IDE.
- alfred -
I usually load my programs with Vbaman then use Run Sub or Userform in the pull down
menu in the IDE. Where is the Play Button in the IDE?
Maybe there is a problem here but it allways work with AutoCAD 2010 VBA?
Thank you,
Hi,
>> Where is the Play Button in the IDE?
Look at the screenshot, and if you don't see this toolbar then it's just switched off.
Anyway, with 64bit I won't use it ("play") because of focus-problems!
>> Maybe there is a problem here but it allways work with AutoCAD 2010 VBA?
Where you on 64bit with 2010 also?
- alfred -
I think my 2010 stuff was 32 bit but my little textbox test program was created with the
AutoCAD 2012 64bit IDE. I would think that program would allow me to enter text in the
textbox when I ran it?
I see the play button on my 2012 64bit IDE.
So don't use the play button indicated in the previous message?
So with this 2012 64 bit how do I start a program.
Thank you,
Hi,
>> So with this 2012 64 bit how do I start a program.
Look to my previously attached DVB (within the ZIP) and start is with command _VBARUN
>> was 32 bit
And that makes big differences, especially the performance breakdown with 64bit.
- alfred -
If I click about in the VBA IDE I get
Ms Basic 6.3 (1987-2001)
Version 1053.
Is that correct?
Thank you,
Great,
I see on the top half:
Microsoft Visual Basic 6.0
Copyright (c) 1987-1999 Microsoft Corp.
But the last line (right-aligned) in this dialog shows:
VBA: Retaul 6.3.8863 Forms3: 14.0.6009.100
- alfred -
So where do I begin to figure out this.
Are other people have this problem.
Thank you,
Hi,
>> So where do I begin to figure out this.
That's my ideas for the moment.
- alfred -
How do you verify that has sp1 installed???
If SP1 is not installed I can get the network administrator to install it.
I do not see that in the "About" pull down menu?
I am on a network version and I have limited PC access.
Please Advise.
Thank you,
Hi,
>> How do you verify that has sp1 installed???
a few days ago, look to >>>this thread<<<
>> I am on a network version and I have limited PC access.
So you will need the admin to install the SP1 for you ... AND I would ask him to set admin-rights for your account and then try your VBA problem having then no security limitations (at least for a trial period).
- alfred -
Hi,
>> So what is the next step?
😉
- alfred -
I have mouse control in the textboxes. I can place my mouse pointer at
different locations in the textbox field but I can't type any new text in the textboxes.
Please advise?
Thank you,
Hi,
create event handlers for this textbox (I think you are working now with my sample), as much as possible, do a call msgbox in them and look what events get fired.
BTW have you tried all with another user-name and/or as admin? That could give us some info's to isolate your prob faster.
- alfred -