Jump to content

Lisp routine - m.e.p. firm


Recommended Posts

Posted

I need help developing a lisp routine. I am not very familiar with writing code.

I work for a M.E.P. Consulting Engineering firm and want to develop a lisp routine that by typing a few letters in AutoCAD for example "2x4" this would then automatically insert a 2x4 light block bypassing the scale option and put that block on our lighting layer and then go back to the original layer that AutoCAD was in. Please respond. Thank you for your time.

Posted

Try Tool Palettes instead... you can do all this without programming. Tool Palettes can be researched in the Help File.

Posted

Its quicker for me to just type a few words and then hit the space bar and continue the command if were inserting multiple and different blocks onto a drawing.

Posted

I wouldn't say it's quicker, I'd say it's equally as quick. Unless I'm not reading your inquiry correctly.

 

Are you familiar with Tool Palettes at all by chance?

Posted

You know what.. Your Right. This is much easier to put together. Thank you.

Posted

If you wanted every 2x3 etc then you would need to define just so many little defuns for every insert, I would go the tool palette way like Tz but as an alternative you could look at a pop or ribbon menu this can have very simple sub menu's so you can have multiple subs for each type of insert. You just pass the block name to a preloaded lisp.

Plotmenu.jpg

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