Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

commands and behavior = to lsp 1

Status
Not open for further replies.

shadow

Computer
Mar 1, 2001
321
ok i have several lsp rotines im using often and i have noticed 1 major thing in comparing general system commands and the ones defined in the lsp and that is you cannot use return to repeat the command defined in the lisp i tried createing a macro but the supposid correct syntax wont work it blows thru the command when you add * to the begining of the macro if everyone helps everybody the world will be a better place
 
Replies continue below

Recommended for you

Here's how I set up my button to run my routines.
It works just like any other command in that when I'm finished I can hit enter and it runs again.

^C^C^C(IF c:stfpl nil (load "q:/dwg/s-stds/TSA Struc Menus/Lisp2k/stfpl")) stfpl;

This is copied directly off of one of my buttons. All it is basically doiing is loading the lisp if it is not already loaded, just give it the right path. Then the command is entered to start the lisp.

Hope this helps:)
 
Striker
not all lisp that i have use will work like a normal acad command ie meaning that if you press enter it wont repeate i dont know why i thought it would be in the code

CDH
thats actually very helpfull really someone had told me how to do that in a macro before but i had forgotten about it so here a star for u

so as i said befor just running th command for the lsp and afterwards using enter to repete doesnt rerun the command neither does setting up a macro with an * infront of it most of the lsps i have notice use the (COMMAND "_command" "command option" input/point of misc)in the lsp somewhere and if it uses a line like this more than once it normally defaults to the 1st line

does this help explain more if everyone helps everybody the world will be a better place
 
I think I see what you are saying. I think I misread before. You are trying to repeat a command that was within the lisp routine and not the whole lisp routine, right?
I'll do some asking and looking around here to see if I can find anything.
 
Couldn't find any solutions here. The only thing I can think of is writing into the program somehow that it skips to where you want it to if certain items are already done. Probably some sort of IF statement.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor