TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: rugaroo on September 30, 2003, 09:40:04 PM
-
Can someone please give me a general explination of the difference between what f: and c: does? I notice that the f: only works when I have LDD loaded. Just curious.
Rug
-
The way I understand it is you can put any letter before :. But, if anybody has more info on the matter, I'd like to know, too. Thanks.
-
What are you guys talking about? :shock:
-
(defun C: or I: or F: or nothing ()...)
I'm thinking that.
Or the way Bell does it:
(defun ax:BuildFilter (filter)
(vl-load-com)
(mapcar '(lambda (lst typ)
(vlax-make-variant
(vlax-safearray-fill
(vlax-make-safearray
typ
(cons 0
(1- (length lst))
)
)
lst
)
)
)
(list (mapcar 'car filter) (mapcar 'cdr filter))
(list vlax-vbInteger vlax-vbVariant)
)
)
-
Dude, there is no "F" prefix. The "C" prefix is of-course the one that makes the function an autocad command.
Alot of people put prefixes on thier functions. (Mark and i do it when we work on a program together so we can tell who made a function.) for reference type of thing. But i know of NO "f" prefix.
-
Okay, so it's just a way to put a signature on a function. It does nothing for the function like c: does, huh?
-
Nope. Sorry.
-
Ok...well if anyone here is using LDD try this: (f:adcmds 22)
-
Yes but.......
Command: (f:adcmds 22)
There are no alignments defined.
Command: adcmds
Unknown command "ADCMDS"
the f:adcmds is no different that say mst-adcmds, it's just the name of the function.
if you look in <LDD installed folder>\Land you will see many .lsp files, at least 76 of those use F: in their function name.
-
I was just getting confused as to why this would be used rather that just the c:. And for some reason, mst-adcmds does not work on mine.
-
That's because you probably don't have that MarkSThomas-function.
-
Oooops..he he....Time to wake up and smell the concrete!