PDA

View Full Version : CAD freezes when switching to commandline



CADfunk MC
2016-09-01, 12:29 PM
A few weeks back I switched from employer. Took my VBA code with me, and try to run it as usual.
It keeps getting stuck on code like that asks for userinput from the commandline, like "selectonscreen" or "Getkeyword".
Can anyone explain why?
I'm running CAD2013, and I've got these references marked:
- Visual Basic for Applications
- OLE Automation
- Microsoft Forms 2.o Library
- AcCtrl Component (because I read somewhere that this one helps with forms freezing up in version 2013: it seems to have helped)
- AutoCAD Focus Control for VBA Type Library (because I read somewhere that this one helps with forms freezing up in version 2013: It seems to have helped)
I can't find the answer to my problem. Any help will be greatly appreciated.

CADfunk MC
2016-09-05, 05:11 AM
It seems I did find an answer to my own question, though I hope this answer isn't right:
https://social.msdn.microsoft.com/Forums/en-US/d2e16840-962a-46c9-b8b9-391202449c4d/vba-plugin-not-working-in-win7-64-bit?forum=isvvba
In the prementioned situation my problem with a form not appearing was solved by adding a acFocusCtrl to my form in the project.