TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: rugaroo on September 30, 2003, 09:40:04 PM

Title: F: or C:
Post 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
Title: F: or C:
Post by: daron on October 01, 2003, 10:24:32 AM
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.
Title: F: or C:
Post by: SMadsen on October 01, 2003, 11:43:22 AM
What are you guys talking about?  :shock:
Title: F: or C:
Post by: daron on October 01, 2003, 11:52:11 AM
(defun C: or I: or F: or nothing ()...)

I'm thinking that.

Or the way Bell does it:
Code: [Select]
(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)
  )
)
Title: F: or C:
Post by: JohnK on October 01, 2003, 11:55:44 AM
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.
Title: F: or C:
Post by: daron on October 01, 2003, 12:02:24 PM
Okay, so it's just a way to put a signature on a function. It does nothing for the function like c: does, huh?
Title: F: or C:
Post by: JohnK on October 01, 2003, 12:13:28 PM
Nope. Sorry.
Title: F: or C:
Post by: rugaroo on October 01, 2003, 12:51:22 PM
Ok...well if anyone here is using LDD try this: (f:adcmds 22)
Title: F: or C:
Post by: Mark on October 01, 2003, 01:07:47 PM
Yes but.......
Code: [Select]
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.
Title: F: or C:
Post by: rugaroo on October 01, 2003, 01:31:03 PM
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.
Title: F: or C:
Post by: daron on October 01, 2003, 01:54:49 PM
That's because you probably don't have that MarkSThomas-function.
Title: F: or C:
Post by: rugaroo on October 01, 2003, 02:06:32 PM
Oooops..he he....Time to wake up and smell the concrete!