Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

acet functions

0 views
Skip to first unread message

Greg H

unread,
Apr 27, 2004, 10:33:52 AM4/27/04
to
Anyone know where I can find information on all the acet functions? eg.
acet-file-attr
Thanks


michael puckett

unread,
Apr 27, 2004, 10:58:58 AM4/27/04
to
Oops: replace imminent with future.

"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...

michael puckett

unread,
Apr 27, 2004, 10:52:04 AM4/27/04
to
<opinion>

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...

Joe Burke

unread,
Apr 27, 2004, 11:00:57 AM4/27/04
to
Greg,

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...

Tony Tanzillo

unread,
Apr 28, 2004, 6:20:39 PM4/28/04
to
Some of what you might use acet-* functions for
are available using other means (for example,
you can use Windows scripting host to get info
on files including attributes):

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; (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.

--
http://www.caddzone.com

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...

0 new messages