See the top rated post in this thread. Click here

Page 1 of 5 12345 LastLast
Results 1 to 10 of 42

Thread: Custom Lisp Tracker

  1. #1
    I could stop if I wanted to
    Join Date
    2004-12
    Location
    California
    Posts
    283
    Login to Give a bone
    0

    Default Custom Lisp Tracker

    OK fellow Lisp'rs, I have another challenge.

    I came across this lisp routine years ago, not sure where it came from.....regardless, it helps track the usage of my custom lisp routines. I like to see how often all of my lisp routines are being used and who is using them. For the most part it works but could use some tweaking. This is where you guys come in.....

    - Right now it's picking up express tool commands as well as individual's custom commands they have locally. I need a way to tell the lisp routine to exclude those. Is there a way I can tell the lisp to only record my commands? If not, how about excluding commands. With 250+ people recording to one location, the txt file can be hassle to go through.

    - Acad version list the registry code rather than the version name. (i.e. 16.2s (LMS Tech)) Anyway to change that?

    - Anyway to send this info to an excel doc or even word doc rather than a txt file? Formatting is a bit of a mess in the txt file.

    Attached is the lisp file and below is a snip from the txt file it logs.....

    (C:FILLET) dcastillo Friday, September 11, 2009 14:34:53 17.1s (LMS Tech)
    (C:FILLET) jemiller Friday, September 11, 2009 14:35:29 16.2s (LMS Tech)
    (C:FILLET) jemiller Friday, September 11, 2009 14:35:31 16.2s (LMS Tech)
    (C:TE) mrodriguez Friday, September 11, 2009 14:36:35 17.1s (LMS Tech)
    Attached Files Attached Files

  2. #2
    AUGI Addict
    Join Date
    2008-02
    Posts
    1,141
    Login to Give a bone
    0

    Default Re: Custom Lisp Tracker

    If your routine names are the same as the filename (c:Yes = Yes.lsp) and you keep the ones you've written in a specific location, you could just have it check if (findfile (strcat "location" (substr 2 (car b)) ".lsp"))

  3. #3
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,105
    Login to Give a bone
    1

    Default Re: Custom Lisp Tracker

    Do you have a list of the commands you wish to log the usage of? If not, you will need to create a list, then filter the commands before writing to the log file.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  4. #4
    I could stop if I wanted to
    Join Date
    2004-12
    Location
    California
    Posts
    283
    Login to Give a bone
    0

    Default Re: Custom Lisp Tracker

    Alanjt - Most are the same lisp name/command name but not all.

    Opie - Here are the commands I want the lisp to track......
    From the command line - exp, lyr, probe, lyrup, spr

  5. #5
    AUGI Addict
    Join Date
    2008-02
    Posts
    1,141
    Login to Give a bone
    1

    Default Re: Custom Lisp Tracker

    Quote Originally Posted by fletch97 View Post
    Alanjt - Most are the same lisp name/command name but not all.

    Opie - Here are the commands I want the lisp to track......
    From the command line - exp, lyr, probe, lyrup, spr
    (if (member CommandName (list "exp" "lyr" "probe" "lyrup" "spr"))
    (do stuff

  6. #6
    I could stop if I wanted to
    Join Date
    2004-12
    Location
    California
    Posts
    283
    Login to Give a bone
    0

    Default Re: Custom Lisp Tracker

    Alanjt......that sounds easy enough but how to incorporate that into that attached count.lsp? I am assuming that (setq *LISPCOMMANDS* '()) needs to be taken out at this point since I am specifying?

  7. #7
    AUGI Addict
    Join Date
    2008-02
    Posts
    1,141
    Login to Give a bone
    0

    Default Re: Custom Lisp Tracker

    Quote Originally Posted by fletch97 View Post
    Alanjt......that sounds easy enough but how to incorporate that into that attached count.lsp? I am assuming that (setq *LISPCOMMANDS* '()) needs to be taken out at this point since I am specifying?
    If it's a member, write string to file. If not, do nothing.

  8. #8
    I could stop if I wanted to
    Join Date
    2004-12
    Location
    California
    Posts
    283
    Login to Give a bone
    0

    Default Re: Custom Lisp Tracker

    Sorry Alanjt.....still confused? I tried a few options but nothing seemed to work, I must not understand what you are trying to say.

  9. #9
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,105
    Login to Give a bone
    0

    Default Re: Custom Lisp Tracker

    Unfortunately, the way the current routine is written, the log file is already written to by the time the *LISPCOMMANDS* variable is modified.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  10. #10
    I could stop if I wanted to
    Join Date
    2004-12
    Location
    California
    Posts
    283
    Login to Give a bone
    0

    Default Re: Custom Lisp Tracker

    So are you saying I need to completely rewrite this lisp?

Page 1 of 5 12345 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 2015-08-07, 03:58 PM
  2. Custom LISP Routine please!
    By Crask422 in forum AutoLISP
    Replies: 1
    Last Post: 2015-02-08, 06:24 PM
  3. Get SSM Custom Property Via LISP
    By BlackBox in forum AutoLISP
    Replies: 3
    Last Post: 2010-07-20, 08:30 PM
  4. Custom Fypon lisp
    By BCrouse in forum AutoLISP
    Replies: 3
    Last Post: 2005-08-08, 07:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •