"michael puckett" <s...@m.not> wrote in message news:408e7395$1_2@newsprd01...
<snip>
Thus, if you build an application or library upon the acet
libs you are designing imminent failure right into your
product(s).
</snip>.
"Greg H" <greg....@regiscorp.com> wrote in message news:408e6f51$1_1@newsprd01...
There is a lot of really great stuff in the acet lib(s).
Which is precisely why I think you should avoid them.
Eh? Come again?
You simply cannot rely on them being available on a given
pc. Sure, at your current company, given its current
licensing state you may have access to said tools
legitimately, but 6 months from now, a year from now your
licensing may be different, you may be at a different
company, you may be authoring works as a third party
developer ... and those libraries will not be available to
you or your clients.
Thus, if you build an application or library upon the acet
libs you are designing imminent failure right into your
product(s).
Solution: Roll your own (best) or use libraries that have
a more reasonable chance of being globally and legally
available, e.g. DOSLIBS.
Sincerely,
M.
</opinion>.
"Greg H" <greg....@regiscorp.com> wrote in message news:408e6f51$1_1@newsprd01...
I agree with Michael.
But to answer your question: http://www.afralisp.com/lisp/acet-utils.htm
Joe Burke
"Greg H" <greg....@regiscorp.com> wrote in message news:408e6f51$1_1@newsprd01...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; (GetFileAttrib <filepath>)
;;
;; Returns the file system attributes for
;; the specified file.
;;
;; caveats:
;;
;; 1. Required error checking is not done.
;;
;; 2. Designed for casual use. For getting
;; the attributes of many files, this is
;; definitely the wrong approach.
(defun GetFileAttrib(name / wsh file attributes)
(setq wsh
(vla-getInterfaceObject
(vlax-get-acad-object)
"Scripting.FileSystemObject"
)
)
(setq file
(vlax-invoke-method
wsh
'GetFile
name
)
)
(setq attributes
(vlax-get-property file 'Attributes)
)
(vlax-release-object file)
(vlax-release-object wsh)
attributes
)
Bear in mind that this requires the system to
have the Scripting.FileSystemObject installed,
but nowadays, that's fairly likely. A general
check for its presence would be prudent during
loading or installation of your code, if you
can't be certain that it's installed.
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005
http://www.acadxtabs.com
"Greg H" <greg....@regiscorp.com> wrote in message news:408e6f51$1_1@newsprd01...