CADalyzer 0.7 Update (AutoCAD Command Counter)

This is an update to the Cadalyzer script that I posted a few months ago. It will count the number of commands you have used in AutoCAD; it does this by examining your AutoCAD log files. (You can enable log files in AutoCAD’s options dialogue box.)

Cadalyzer 0.7 on GitHub
New features are listed below

  • Counting mechanism has be rebuilt, the script now computes 25 times faster than the previous version!
  • shows the total number of commands used (Apparently I’ve invoked approx. 38,000 commands since this previous October. Ouch.)
  • several command line options have been implemented:
    • unused – shows all the commands you didn’t use; this is helpful when you want to learn more commands
    • compile – compiles all of the logs in the directory and saves them to a single file
    • results – saves the results to a file
    • percent – formats the each command as a percentage of the total commands used

You will need Ruby installed (tested on 1.8.6 and up.) You can find the Ruby download here. If you don’t use Ruby but would like to learn to program, I highly recommend it. Ruby is an excellent language for beginners and advanced alike.

The only other thing you will need is to tell the script where to find your log file directory. Open the Cadalyzer.rb file and look for the line path = '/Path/to/log/files/” Replace the/Path/to/log/files/ with your path and run the script.

Happy analyzing!

CADalyzer (AutoCAD Command Counter)

I’ve been working on a Ruby utility to analyze AutoCAD log files. The goal is to count how many times each command is invoked. The basic functionality is all in place, I’ve plans to add more in-depth analysis and perhaps even turn it into a web based tool. For now, you’ll have to download it and run it in the command line. If you want to run this, you’ll need the Ruby programming language runtime installed on your computer. Here is a link to the Ruby download. My CADalyzer utility can be downloaded here.

Download the .zip file, and unpack it. To run the utility, you will need to tell it where your AutoCAD log files are stored. (You can find that location in AutoCAD, via the Preferences.) Open the Cadalyzer.rb file and enter the path to your log directory next to the word path, like so:

Excerpt from top of Cadalyzer.rb file:

path = “insert full path to log file directory here”

The utility will combine & analyze the data from every log file in the directory specified.

Happy analyzing.

AutoCAD LISP routines

I’ve thrown a few of my most frequently used LISP routines on here. You’ll find the files & descriptions here. I will be adding more as I clean them up and determine where I acquired them (so I can give credit where credit is due.) I am also tinkering with the idea of posting my pgp file; while not especially useful, I am always interested to see what shortcuts other people use. Perhaps someone out there feels the same way. I’ll think about that while you root around in the LISPs directory.