Jump to content

Recommended Posts

Posted

Hi all,

 

I would like to create a shortcut that would insert a specific block. The block(s) are dwgs located on the C drive so I would like to basically type: car [space] and have the car block inserted.

 

Thanks in advance for any help!

Posted

You should be able to use a script for that.

 

Use -INSERT for command line only. AutoCAD help has a good section on scripts as well as plenty of info on CADTutor.

Posted
You should be able to use a script for that.

 

Use -INSERT for command line only. AutoCAD help has a good section on scripts as well as plenty of info on CADTutor.

 

Ok thanks, so my script would read:

 

'-insert

car

 

___

 

Now how can I make it so that 'car [space]' inserts the block?

 

Thanks

Posted

You need to add this to your startup lisp. If stuck acad.mnl

(defun C:car ()
(command "'_insert" "car")
)

 

Personally I would look at palettes or menu's.

Posted

I would look at the toolpalletes as well.

With a routine like above, you'll have to add the folder of blocks into your support path.

Posted

Tool Palettes and/or Design Center is what I use as well.

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