Author Topic: does anyone use the plud command?  (Read 4099 times)

0 Members and 1 Guest are viewing this topic.

andrew_nao

  • Guest
does anyone use the plud command?
« on: January 21, 2011, 02:59:11 PM »
i tried to make a simple (command "plud" "" "last") routine
but plud wont work like this and was wondering if anyone could offer a way to do something simple like this for plud


SOFITO_SOFT

  • Guest
Re: does anyone use the plud command?
« Reply #1 on: January 21, 2011, 03:28:43 PM »
hello:
try this

you can copy this text the command line

(defun c:pludl (/)( command "_plud" "" (entlast)))

then type "pludl"

you can change the text "c:pludl"   by another name, but always starting with "c:"
Greetings

andrew_nao

  • Guest
Re: does anyone use the plud command?
« Reply #2 on: January 24, 2011, 08:53:16 AM »
thanks for the reply

this doesnt work
as i mentioned in the first post, plud doesnt work inside of (command "..")


Command: (defun c:pludl (/)( command "_plud" "" (entlast)))
C:PLUDL
Command: pludl
_plud Unknown command "PLUD".  Press F1 for help.
Command: PLUDL Unknown command "PLUDL".  Press F1 for help.
Command: <Entity name: FFFFFFFFFFB4B110>
Command: nil

Slim©

  • Needs a day job
  • Posts: 6566
  • The Dude Abides...
Re: does anyone use the plud command?
« Reply #3 on: January 24, 2011, 09:17:45 AM »
PLUD is it's self a lisp routine and as such cannot be called from inside another lisp routine.
I drink beer and I know things....

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: does anyone use the plud command?
« Reply #4 on: January 24, 2011, 01:25:48 PM »
Quote
PLUD is it's self a lisp routine and as such cannot be called from inside another lisp routine.

(c:plud)
James Buzbee
Windows 8

andrew_nao

  • Guest
Re: does anyone use the plud command?
« Reply #5 on: January 25, 2011, 09:19:03 AM »
PLUD is it's self a lisp routine and as such cannot be called from inside another lisp routine.

i didnt know that, thanks ill mess with that code then

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: does anyone use the plud command?
« Reply #6 on: January 25, 2011, 10:05:57 AM »
Quote
PLUD is it's self a lisp routine and as such cannot be called from inside another lisp routine.

this statement is incorrect. 
If plud is a function (defun plud() . . .) defined in another lisp file it can be called like so: (plud)
If plud is a command (defun c:plud() . . . ) defined in another lisp file it can be called like so: (c:plud)
James Buzbee
Windows 8

Slim©

  • Needs a day job
  • Posts: 6566
  • The Dude Abides...
Re: does anyone use the plud command?
« Reply #7 on: January 25, 2011, 10:43:57 AM »
Quote
PLUD is it's self a lisp routine and as such cannot be called from inside another lisp routine.

this statement is incorrect.  
If plud is a function (defun plud() . . .) defined in another lisp file it can be called like so: (plud)
If plud is a command (defun c:plud() . . . ) defined in another lisp file it can be called like so: (c:plud)


Quite true, I had forgotten about that....
I drink beer and I know things....