Jump to content

script that loads lisps


ybx

Recommended Posts

Hi..All

 

How to write a simple script that loads lisps from a network location

without adding it is in the startup suit. (location is added in support file search path) Can anyone help me out with that?

Thanks!....

Link to comment
Share on other sites

Put all your common lisps in the support directory that you have added, like Lee above add mini defuns so you can load lisp at any time as a command

 

; yourlisp.lsp
(defun C:ZE () (command "zoom" "E"))
(defun c:39 () (Setvar "osmode" 39))
(defun c:xfp () (load "xfallper.lsp"))

Link to comment
Share on other sites

Thanks..for your reply

 

I tried this (load "//T:/Documents/my folder/Lisps/Etr.lsp" nil)

in script but its not working it shows Command: etr

Unknown command "ETR". Press F1 for help.

 

my drive---T

Path-----Documents \my folder\Lisps

Lisp-------etr.lsp

 

comand----(defun c:Etr ()

 

 

I already added T drive in support directory

 

Can you correct me

 

Thanks

Link to comment
Share on other sites

hi

 

at the end it is working

 

 

when i put this code in script it is working

 

 

(defun c:etr () (load "etr.lsp"))

etr

etr

etr

 

why should i add ETR three times (am not expert in script and lisp) if it is wrong way pls correct me...

 

Thanks

Link to comment
Share on other sites

You need to edit etr.lsp so it has the c:etr then as you have the support path set you can just do (load "etr")(c:etr)

 

Hi....

Thanks for ur great support..

It is running

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...