View Full Version : Automatic Caps Lock routine not working in AutoCAD 2007
nanna
2006-09-28, 03:46 PM
I've been using the attached "capslock" routine for a while now and it really works well for me. It allows me to leave my capslock off for “windows” operations/programs, yet when in “AutoCad” will automatically toggle capslock on for text editing and then automatically turn it off when complete. This is very useful for regular text entities and especially useful since my mtext autocaps will not stay active. I've used it in both AutoCAD 2002 and 2006. I have windows XP professional and recently upgraded to AutoCAD 2007. Now the routine won't work. Neither the "doslib16.arx" nor the "doslib2k.arx" will load in ‘07. Would anyone be able to let me know if there anything special that I need to do to get it to work in '07? The author, Eric Schneider, is not available via his email listed in the lisp. I’ve attached the original zip file for reference. Any help would be greatly appreciated. Thank you for your time.
From the link found in this post, the arx files would need to be recompiled to work with 2007.
Binary Compatibility Break: AutoCAD 2007 is being compiled with new Visual Studio 2005 which uses MFC 8.0 and .NET Framework 2.0. This will cause a binary break on your ObjectARX applications and they will need to be recompiled with the new ObjectARX 2007 SDK and Visual Studio 2005. Once you compile your application with the new ObjectARX 2007 SDK you can't load it on previous version so, for a couple of years and until your clients don't upgrade too, you will need to live with two releases using side by side versions of AutoCAD, ObjectARX and Visual Studio;
nanna
2006-09-28, 05:15 PM
Thanks for the information. That would explain why it is not working. Now, not knowing much about arx files, how would I go about recompiling the one that I need for 2007? Do I need a special program for that? Or is it way more involved to try and explain?
I don't handle .arx files, but I would think you need the source code, which is not the .arx file.
nanna
2006-09-28, 05:26 PM
Well not knowing where the source code came from (since I dowloaded the routine from an old augi thread), it sounds like this is one routine that I'm going to miss with my upgrade. Thank you very much for your help.
cwade
2006-09-28, 08:43 PM
I believe all oyu need is the attached doslip which is updated for 2007 and change the line that loads doslib to the new file name. Please let me know if this works or not.
nanna
2006-09-29, 02:00 PM
It does work now - sort of.
Thank you for your help cwade. As suggested, I renamed the .arx designation within the .lisp file, then loaded all three files into my 'start up suite' and added a support path to acad. I restarted acad and the routine loads and works, however it now works back-wards. My Caps Lock will automatically toggle on when I exit an "edit" command, stay on, and then turn off when I try to edit text again (repeat, repeat). It now works exactly opposite of how it is supposed to. I've checked the lisp file and am not experienced enough to see an "on/off" command that I can reverse. I've attached a new .zip file with the updated files for anyone to review. A little more help with this new mystery would again be greatly appreciated.
cwade
2006-10-05, 06:16 PM
Anyone have any luck, I can't seem to get it to work at all and could really use this routine too.
jaberwok
2006-10-05, 08:24 PM
In 2007 you can have acad automatically switch to all caps in the mtext editor.
Open the editor, right-click, pick Autocaps.
nanna
2006-10-05, 09:03 PM
Yeah, but for some reason mine does not stay active now that I've upgraded to 2007. Each drawing switches back to lowercase when I edit mtext and there is not an option for Autocaps for regular text. While the majority of our drawings utilize mtext, there are occansions where regular text is used and works better for us. That's where the caplock routine really came in handy. It covered all the bases automatically.
cwade
2006-10-06, 06:29 PM
In 2007 you can have acad automatically switch to all caps in the mtext editor.
Open the editor, right-click, pick Autocaps.
Doesn't work all of the time, also doesn't work with dtext, dimensions, etc. This command works with them all, when it works.
nanna
2006-10-06, 06:58 PM
Agreed.
It would be even more beneficial if someone can get it to work in 2007 since now you can assign any command you want to a "double click" action. Example - since I have 2 monitors, and can leave my properties window open all the time on monitor #2, I've set ddedit to activate when I double click on a dimension. Now I can edit dimension text with a simple double click like any other text entity. If only the capslock routine would work now...
Powered by vBulletin® Version 4.1.11 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.