+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12
  1. #11
    Quantum Mechanic BIGAL's Avatar
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    10,800

    Default

    Registered forum members do not see this ad.

    dnovember99 did you look at what I posted it does lots more than just log time. I use a cut down version every day. It records every project individually from day 1.

    Code:
    cut down report
    START TIME of report entry .... 2018.Jan.05  09:54:53
    END TIME of report entry ...... 2018.Jan.05  10:05:45
    Total period ............................... 00:10:52
    FILENAME:           2012161-PF.dwg
    DIRECTORY:          \\XXXX.l\2012 Projects\2012161\Design\
    LAST SAVE:          2018.Jan.05  10:05:40
    TOTAL EDITING TIME: 397:56:44
    LOGGED USER:        BIGAL
    START TIME of report entry .... 2018.Jan.06  10:17:53
    END TIME of report entry ...... 2018.Jan.06  10:30:34
    Total period ............................... 00:12:41
    FILENAME:           2012161-PF.dwg
    DIRECTORY:          \\XXXX.l\2012 Projects\2012161\Design\
    LAST SAVE:          2018.Jan.05  10:30:29
    TOTAL EDITING TIME: 398:09:42
    LOGGED USER:        BIGAL
    START TIME of report entry .... 2018.Jan.07  10:31:01
    END TIME of report entry ...... 2018.Jan.07  10:56:51
    Total period ............................... 00:25:50
    A man who never made mistakes never made anything

  2. #12
    Super Member
    Discipline
    Multi-disciplinary
    Using
    AutoCAD 2015
    Join Date
    Nov 2013
    Posts
    1,490

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Lee Mac View Post
    IMO, calling pstxt with an empty string is more useful than supplying nil - consider that getstring returns an empty string on null input.
    Well that pstxt its used, depending on the case(application) - but I agree that it doesn't suit well with getstring, hence OP's problem.
    I was using it somewhere to look for a certain attrib values, then consider if they are valid to construct a main string.
    Or say something like (I know this example could be written better) :
    Code:
    (defun picktext ( msg / e r )
      (and 
        (setq e (car (entsel msg))) ; user is allowed to miss-pick
        (setq r (cdr (assoc 1 (entget e))))
      )
      r
    )
    
    (pstxt 
      (picktext "\nPrefix: ")
      (picktext "\nMain Text: ")
      (picktext "\nSuffix: ")
    )

Similar Threads

  1. Add symbols to existing text lisp
    By structo in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 22nd Dec 2016, 07:06 am
  2. How to add attribute text an existing block
    By RRS1987 in forum AutoCAD Beginners' Area
    Replies: 1
    Last Post: 14th Feb 2015, 04:01 pm
  3. Routine to add modified text below existing text (copy/replace?)...
    By lamensterms in forum AutoLISP, Visual LISP & DCL
    Replies: 11
    Last Post: 17th Jun 2011, 08:44 am
  4. Adding additional text to Dimension Text Override
    By RoguePiper in forum AutoLISP, Visual LISP & DCL
    Replies: 25
    Last Post: 4th Aug 2010, 07:17 pm
  5. Change Existing Text to Number?
    By AQucsaiJr in forum AutoLISP, Visual LISP & DCL
    Replies: 13
    Last Post: 14th Jul 2009, 12:30 pm

Bookmarks

Posting Permissions

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