Jump to content

Recommended Posts

Posted

Can a lisp routine used back in AutoCad Release 14 be updated to be used in 2009LT? It's for :This Inserts An Outlet Symbol" in an acad.lsp file I have. Someone from the beginners forum suggested I try this here. I know nothing about autolisp however. Any help appreciated, thank you.

Glenn

USA

Posted

Hmmm... you will struggle with this one... LT cannot run LISP without an extender which would set you back a bit.

Posted
Hmmm... you will struggle with this one... LT cannot run LISP without an extender which would set you back a bit.

 

Thank you for the quick reply. I thought it might be a stretch, but it was worth a try. Any idea how much the extender is and do you know it would work?

Thanks again.

Posted
Thank you for the information. The toolkit costs almost as much as the 2009LT upgrade.

Thanks again.

 

Not sure how much the 2009LT upgrade is, But LT is not that expensive to start with. When you add lisp capabilities to it I am sure it will offset any costs for the price of the software package.

 

Sound like its worth it.

Posted

Can the routine you speak of be handled with a macro?

Posted

I don't think that the routine needs to be updated. I am using routines that were originally written for r10. :D

Posted
I don't think that the routine needs to be updated. I am using routines that were originally written for r10. :D

The upgrade from 2006LT to 2009LT was $400. The extender tool kit is almost that amount and the company won't shell out for that too.

It's that bad economy thing.

Posted
Can the routine you speak of be handled with a macro?

 

The attached LISP file contains 17 "This Inserts a Outlet" commands scrolled about 3/4 of the way down the list. The language is new to me and I'm still dizzy from that last macro we did.

Glenn

 

Sorry, I had trouble with that attachment. It's on the next page.

Posted

You could certainly create a macro from those "insert" LISPs:

 

^C^C-insert;U2;\;;;

 

Or something similar, depending on the block and how many pauses you need.

 

^C^C = cancel last command, or any active commands

-insert = invoke insert command

; = same as hitting enter, equivalent to a space also.

\ = pause for user input.

 

This should get you started at least :)

 

Lee

Posted
You could certainly create a macro from those "insert" LISPs:

 

^C^C-insert;U2;\;;;

 

Or something similar, depending on the block and how many pauses you need.

 

^C^C = cancel last command, or any active commands

-insert = invoke insert command

; = same as hitting enter, equivalent to a space also.

\ = pause for user input.

 

This should get you started at least :)

 

Lee

 

That's a great start. So much apprciated. Now If I can work my macro trick. I'll report back on this.

Again, thank you.

Posted
That's a great start. So much apprciated. Now If I can work my macro trick. I'll report back on this.

Again, thank you.

 

Well, it took some doing, but it works. Thanks to all, especially LeeMac and ReMark.

The only down side is that I'll have a toolbar with 17 commands. That and creating the tool buttons. Too bad they don't have a text tool in that button edit window.

 

 

A little snag. Here's the macro: ^C^c-insert;D1;S;\;;;. This allows for a prompt of one attribute field. D1 is the block and S prompts for scale. Rotate comes up automatically. Don't know how to edit the macro to prompt for more than one attribute field.

Posted

Happy to help :)

 

Could you not just add a few more pauses to the macro?

 

^C^C-insert;D1;S;\;\;\;

 

or something similar (play around with it!)

 

You may need to check the value of ATTREQ to make sure that the command prompts for Attributes.

 

Lee

Posted
Happy to help :)

 

Could you not just add a few more pauses to the macro?

 

^C^C-insert;D1;S;\;\;\;

 

or something similar (play around with it!)

 

You may need to check the value of ATTREQ to make sure that the command prompts for Attributes.

 

Lee

Actually, the block is an existing one used by the old LISP routine. The atribute fields (2) are already in the block. I"m not sure anything in the macro prompts for the attribute fields. Don't know, I'm having trouble with this one. I've alrady created the first 4. D1, U1, L1, and R1. The D, U, L, R stand for down, up, left and right. They're outlet locations. Triangles pointing in these directions. The ! stands for 1 attribute field. I'll press on.

Posted
Actually, the block is an existing one used by the old LISP routine. The atribute fields (2) are already in the block. I"m not sure anything in the macro prompts for the attribute fields. Don't know, I'm having trouble with this one. I've alrady created the first 4. D1, U1, L1, and R1. The D, U, L, R stand for down, up, left and right. They're outlet locations. Triangles pointing in these directions. The 1 stands for 1 attribute field. I'll press on.

 

 

Well, guess what? Mission accomplished!!! What a great feeling. LeeMac, I thank you so very much for all the help and support. You just made my work day a lot easier and productive. +, it's a real learning experience.

Thanks to all the rest who helped as well.

Glenn

USA

Posted

I'm glad you got it sorted and that I could be of some assistance :)

 

With macros, just think about what the user would have to type at the command line if he/she were to do the same thing as the macro, and you can't go wrong :)

 

Lee

Posted
I'm glad you got it sorted and that I could be of some assistance :)

 

With macros, just think about what the user would have to type at the command line if he/she were to do the same thing as the macro, and you can't go wrong :)

 

Lee

 

I have everything documented and filed away.

Thanks again and have a great day.

Glenn

USA

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...