Author Topic: TDUSRTIMER - reset via lisp  (Read 2045 times)

0 Members and 1 Guest are viewing this topic.

Eddie D.

  • Newt
  • Posts: 29
TDUSRTIMER - reset via lisp
« on: January 23, 2017, 07:05:09 PM »
Here is my problem:

(command "time" "r" "") This works by itself, but used in a function, it does not.
I am at a loss. Is there a way to reset the sysvar "TDUSRTIMER" via lisp?
« Last Edit: January 23, 2017, 07:20:43 PM by Eddie D. »

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2159
  • class keyThumper<T>:ILazy<T>
Re: TDUSRTIMER - reset via lisp
« Reply #1 on: January 23, 2017, 10:59:20 PM »
Hi Eddie,


I believe the variable READ ONLY

Regards,


edit:
Just checked ... ALL the TDxxx variables are read only
« Last Edit: January 23, 2017, 11:04:25 PM by kdub »
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

David Bethel

  • Swamp Rat
  • Posts: 656
Re: TDUSRTIMER - reset via lisp
« Reply #2 on: January 24, 2017, 05:14:00 AM »
If I understand correctly

Code: [Select]
(command "_.TIME" "_Reset" "")

-David
R12 Dos - A2K

Eddie D.

  • Newt
  • Posts: 29
Re: TDUSRTIMER - reset via lisp
« Reply #3 on: January 24, 2017, 09:40:30 AM »
Sorry guys, apparently I don't know how to format my posts to show LISP.
David, yes, that is what I was trying. That works by itself, but not part of a function.
I think I found another option to do what I want with acet-edittime.

David Bethel

  • Swamp Rat
  • Posts: 656
Re: TDUSRTIMER - reset via lisp
« Reply #4 on: January 24, 2017, 10:04:20 AM »
That's weird.  Can you post the function ?
R12 Dos - A2K

JohnK

  • Administrator
  • Seagull
  • Posts: 10669
Re: TDUSRTIMER - reset via lisp
« Reply #5 on: January 24, 2017, 10:17:33 AM »
Sorry guys, apparently I don't know how to format my posts to show LISP.
...

Eddie D.,
Check here for information on how to use code snips in your posts.
https://www.theswamp.org/index.php?topic=48309.0
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Eddie D.

  • Newt
  • Posts: 29
Re: TDUSRTIMER - reset via lisp
« Reply #6 on: January 26, 2017, 07:10:22 PM »
This works!
Code: [Select]
(vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) "time reset  ")


 :D