Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

AutoCad/Autolisp commands for rotating text and inputting rev notes

Status
Not open for further replies.

kevc70

Mechanical
Jul 15, 2009
37
Hello,

I am wondering if there is a way in AutoCad Mechanical to create a command that prompts a user to input a single line of text (can be multiline as well) and after inputting the text, a rotation of text prompt is given. When the user puts in 90, 180, or 270, it will then prompt the user for the location of the text. Also, is it possible to automatically size the text to fit in a certain area? As for the rev notes on a drawing, is there a quick way to add rev notes where a cursor is placed under the prior rev? For example, autolisp for rev notes might be where the user is prompted to add rev notes (i.e. Rev 01 -Updated diameter". When the autolisp command is typed again, the Rev 02 note is automatically placed under the Rev 01 note. So, it would nee to be sized and placed a certain way in the top right hand corner of the drawing so as to look orderly. I've seen rev notes where the font size is incorrect and the start of the text isn't consistent from drawing to drawing.

I would appreciate any help with the above issues.
 
Replies continue below

Recommended for you

It is possible with AutoLisp to accomplish any of those tasks. But it would be overkill, as most of those can be accomplished by good CAD practices. The Lisp routines won't prevent poor CAD practices from sabotaging the intent.
For example, many firms use titleblock templates, and revisions are handled a block attributes, to ensure correct text size, placement, etc.
The request for text input is vey similar to the MTEXT command, except you'd like the prompts in a different order, with text input on the command line, and to see the rotated text before placement?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor