×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

commands and behavior = to lsp

commands and behavior = to lsp

commands and behavior = to lsp

(OP)
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

RE: commands and behavior = to lsp

right click and select the the command again

RE: commands and behavior = to lsp

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:)

RE: commands and behavior = to lsp

(OP)
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

RE: commands and behavior = to lsp

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.  

RE: commands and behavior = to lsp

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources