Visual LISP, AutoLISP and General Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Trying to set edittime to on in Acaddoc.ls p
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Anyone know why I can't do the following in acaddoc.lsp:
(Command "edittime" "ON")
(Command "edittime "T" "5")
I get this result:
Unknown command "EDITTIME".
It looks like this has to do with the order of operation (i.e. express tools haven't been loaded yet). If so doesn anyone know how to load the express tools from acaddoc.lsp?
Thanks!
_Scott
Solved! Go to Solution.
Re: Trying to set edittime to on in Acaddoc.ls p
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Update.
I changed the acaddoc so that the edittime command is accessed from S:
tartup which should occur after express is loaded:
(defun mystartup () (command "EDITTIME" "ON") (command "EDITTIME" "T" "1") ) (if s::startup (setq s::startup (append s::startup (quote ((mystartup))))) (defun s::startup () (mystartup)) )
But it still doesn't work. I noticed if I type edittime at the command line it initializes. I'm assuming the express commands are demand loaded??? Maybe??? So frustrating because I want to set this to on for every users drawings. Anyone have any ideas?
Re: Trying to set edittime to on in Acaddoc.ls p
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Not sure about including it within acaddoc.lsp or initializing on startup, but try entering the following in order to initialize Edit Time and turn it on:
(c:edittime)
(command "ON")
instead of the following line:
(Command "edittime" "ON")
Let me know if that works.
C3D 2012 SP1, Win XP Home
Re: Trying to set edittime to on in Acaddoc.ls p
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks. It works. But why???
Re: Trying to set edittime to on in Acaddoc.ls p
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
The express tools are either loaded automatically using either autoload or autoarxload. So if a user issues a command, it is automatically loaded. If the command is referenced directly with (c:edittime), it seems to be automatically loaded.
You could also explicitly load it and then use command to run it.
(arxload "edittime")
(command "edittime"....)
You could also call it with
(command "ACET:EDITTIME.EDITTIME" ....) anytime after loading.
Re: Trying to set edittime to on in Acaddoc.ls p
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Glad it worked. Not sure why really, I just happened to discover it the other day while helping someone else. It occured to me that a lot of times lisp functions are intiated with c:, so just decided to give c:edittime a try.
So I am glad for the additional info from dbroad.
C3D 2012 SP1, Win XP Home
Re: Trying to set edittime to on in Acaddoc.ls p
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
By the way, there are a couple other postings that relate to this topic which may be of interest:
LISP to Export TIME Command Results to a Text File
http://forums.autodesk.com/t5/Visual-LISP-AutoLISP
how to print last line of command history to a file
http://forums.autodesk.com/t5/Visual-LISP-AutoLISP
C3D 2012 SP1, Win XP Home
Re: Trying to set edittime to on in Acaddoc.ls p
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Yep I'm tuned into those... In fact I started the second topic you hyperlinked. Basically what I created is a quick little lisp that runs on drawing open that writes a csv file with the name of the file opened, the time, the total edit time when opened and then does the same thing when the file is closed. I find it useful for tracking my time. Lee Mac's code is nice, but I opted for a simpler function or should I say one that I understand since I'm a beginner when it comes to writing lisps.
Re: Trying to set edittime to on in Acaddoc.ls p
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Ah sorry, didn't make the connection. Glad I could be of further assistance. Interesting topic.
C3D 2012 SP1, Win XP Home

