Jump to content

Please rate this Program  

62 members have voted

  1. 1. Please rate this Program



Recommended Posts

Posted (edited)

Incremental Numbering Suite

 

This program enables the user to place incrementing numerical text in a drawing, with a range of positioning utilities and an optional Prefix/Suffix.

 

The program is invoked with the syntax: NumInc

 

One can enter Prefix, Middle and Suffix text and have the option to increment either section (providing it is numerical), with the ability to have leading zeros. One can also specify any increment (including decimals), and alter the text layer, style and height.

 

NumIncV3-0.png

Upon submitting the options, the user will see a preview of the text on screen, with various options displayed at the command line.

Number%20Increment.gif

 

NumIncV2-3Tab.gif

 

NumIncV2-2.gif

 

NumIncV2-4Hex.gif

 

NumIncV2-5Tri.gif

From this interface, the user has various placement options, including:

 

  • >................. Rotates Text Clockwise.
  • Tab.............. Set Rotation back to zero, and rotates by 90.
  • Shift+Tab..... Mirrors Rotation.
  • C or c........... Switches to Curve Aligned Mode.
  • R or r........... Switches to Replacement Mode.
  • T or t............ Toggle the Incrementing Counter.

Curve Aligned Mode:

 

Upon pressing "C" or "c", the user will be prompted to select a curve. The text will then follow that curve, before the user clicks to place the text.

 

Number%20Increment%20Curve.gif

Replacement Mode:

 

Upon pressing "R" or "r", the user will be prompted to select either TEXT, MTEXT or ATTIButes, which, upon selection will be modified to contain the incremental text.

 

Restrictions:

  • Requires Express Tools for full functionality.

-- This program is available Free to Download --

 

Instructions for Running:

  • Save the attached LISP file.

 

  • Open AutoCAD and type "_appload" at the command line, or go to "Tools" > "Load Application".

 

  • Load the LISP file as previously saved, and add the file to your start-up suite if desired.

 

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

 

  • For more info, see here.

Your comments and suggestions are welcome. Either PM me directly, or post a reply to the original thread.

Cheers

 

Lee

Code available here.

Edited by Lee Mac
  • 12 years later...
Posted

Hello, 

It appears to be an error "null is not an object (evaluating 'dialog.children')", How could I fix it? Thank you in advance.

 

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