Author Topic: trouble with burst in a lisp  (Read 3620 times)

0 Members and 1 Guest are viewing this topic.

AVCAD

  • Guest
trouble with burst in a lisp
« on: January 27, 2005, 10:41:35 AM »
I am tring to write a routine that includes the Burst command, but I can not get it to run.

I tried using

(command "c:burst" "all" "")

and

(command "burst" "all" "")

Any help with thi swould be great.

Thanks!

SMadsen

  • Guest
trouble with burst in a lisp
« Reply #1 on: January 27, 2005, 11:00:26 AM »
You can only call (C:BURST) and then select all manually. The selection function and the actual "bursting" function are declared local to C:BURST and can't be accessed without a .. ahem .. m-o-d-i-f-i-c-a-t-i-o-n

So, to answer your post:

(C:BURST)

AVCAD

  • Guest
trouble with burst in a lisp
« Reply #2 on: January 27, 2005, 11:09:50 AM »
Ok thanks, I will play around with that one.

I had another question though....I have other Lisp routines I wan tto run in this one.

How do I load a Lsp file within one and then run it.

I tryied the...

(command "(load LFD.lsp)" "lfd")

This is the code I use in my macro's (buttons) but I want to run this form a LISP file, sort of a master routine that will run everything at once.

SMadsen

  • Guest
trouble with burst in a lisp
« Reply #3 on: January 27, 2005, 11:14:20 AM »
If lfd is a non-command function:

(if (load "LFD.lsp" nil) (lfd))

If lfd is defined as a command:

(if (load "LFD.lsp" nil) (C:lfd))

*edited*: ^this only works if someone didn't put a nil-returning expression at the end of the lisp file. E.g. (prompt "Type LFD to run") will return nil and cause the expressions above to exit with nil.