See the top rated post in this thread. Click here

Page 5 of 5 FirstFirst 12345
Results 41 to 42 of 42

Thread: Custom Lisp Tracker

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

    Default Re: Custom Lisp Tracker

    If your reactor and this routine has been loaded into memory, then just run an AutoLISP routine. The reactor will kick in and execute this routine. If you set a break point within it, then your code will stop when it hits the break point.

    You can then show the Watch window with Ctrl-Shift-W (from memory it is listed in the debug menu). This will allow you to watch the values of variables you are watching. One of them probably should be the Last Value.

    You can then step through the code using the F8 function key.
    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

  2. #42
    100 Club
    Join Date
    2000-11
    Posts
    136
    Login to Give a bone
    0

    Default Re: Custom Lisp Tracker

    I know it is 10 years later but what the heck. I was looking for something that would tell me how to write to an excel file and specific cell such as F19 whatever. Then I saw needing to see how your programs are being used. I did that with a bunch of my programs and I am pasting in the code I used. This program was called by each of the other programs each time they ran. It writes to a simple .TXT file but that can be brought into an Excel or .CSV with the comma separation as this writes to text. The time that the program saves each time it runs is a conservative estimate of that time. The way this is written it puts in the date with the month so you can import only that months usage and keep a month track of what you are doing. Looking at this you could make file name contain the month and year in the file name or so it looks. I don't do this anymore so not going to test it but if somebody uses this they can try that. Doing so every month would have its' own usage file which I wish I would have thought of way back then. Sorry I didn't see this sooner as I wrote this program in 2008.

    (defun c:kiss1PPusage ()
    (setq kisscun (getvar "loginname"))
    (setq CURR (rtos (getvar "cdate") 2))
    (setq cmonth (substr CURR 5 2))
    (setq cday (substr CURR 7 2))
    (setq cyear (substr CURR 1 4))
    (setq kHour (substr (rtos (getvar "cdate") 2 4) 10 2))
    (setq kMin (substr (rtos (getvar "cdate") 2 4) 12 2))

    (setq kissprgmuse (strcat kisscun " on " cmonth "-" cday "-" cyear " @ " kHour ":" kMin " " "10" " " "1PPlot"))
    ;;;Addin the hours ,minutes & seconds.
    (setq fow1 (open "J:/1$JFOSTER/Kiss1PickPlotUsage.TXT" "a")) ;change the path
    (write-line kissPrgmUse fow1)
    (close fow1)
    ) ;_ end of defun

    Below you see the start of a program defun and the first line is the call to use usage program.
    (defun c:KISS1008BEFCLMono ()
    (c:kiss1PPusage)

Page 5 of 5 FirstFirst 12345

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
  •