Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Just for fun
Message
Information générale
Forum:
CAD
Catégorie:
Autocad Lisp
Titre:
Divers
Thread ID:
00366624
Message ID:
00366725
Vues:
21
Nothing wrong. Now just type FUN at the command line and it should work.

The (load) function only loads a lisp file into memory. kinda like SET PROCEDURE TO in VFP. You then need to call the function. The C: in front of the function name means you can call it as a command, w/o the c: you have to call it surrounded by ().

Have FUN ;)

>I past this (load "c:\\temp\\goofy.lsp") in the command line and the only thing I get is:
>C:FUN
>
>What did I do wrong?
>
>>Here's a goofy little .lsp function. Might be fun to replace someone's line command with and see what happens < eg >
>>
(defun c:fun (/ pta n ck)
>>  (setq pta (getpoint "Please Choose Start Point")
>>	n 1)
>>  (while (setq ck (cadr (grread t)))
>>	 (grdraw pta ck n)
>>	 (if (> n 16)
>>             (setq n 1)
>>             (setq n (1+ n))
>>         )
>>  )
>>)
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform