Jump to content

Macro to insert text block


Recommended Posts

Posted

What are you typing at the command line?

 

For example, to run my LISP as posted in this thread:

 

  • Copy the code in the code frame into a new Notepad document, and save the file as whatever you like, but make sure it has the .lsp extension and that the "Save as Type" box is set to "All Files".

  • Go to AutoCAD and type "appload" at the command line, or go to the relevant menu. Find the saved LISP file and load it.

  • Type "ins" at the command line to invoke the command.

Hope this helps,

 

Lee

  • Replies 23
  • Created
  • Last Reply

Top Posters In This Topic

  • Lee Mac

    9

  • Chad_bestmnf

    9

  • Glen Smith

    4

  • ReMark

    1

Posted

Hi, you all.

 

This thread reminds me of when I started using Lisp, AutoLisp and VBA.

Hope I can be of some assistance in the future, I've just joined.

 

Good night everyone.

 

Martin

Posted

Ok I finally got it to work. I appreciate it Lee Mac. I must have been leaving out a step.

 

So is there a way to set this up as a button. Or will I have to go through loading it and typing "ins" every time I want to use it?

Posted
Ok I finally got it to work. I appreciate it Lee Mac. I must have been leaving out a step.

 

So is there a way to set this up as a button. Or will I have to go through loading it and typing "ins" every time I want to use it?

 

You can add the routine to the StartUp Suite in the appload dialog box, or your can add a call to it in your ACADDOC.lsp file.

 

To add it as a button, type in the macro box:

 

^C^C(c:ins)

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