TCOUNT for AutoCAD for Mac

acadlogo_2017I have not written for my blog for a long time. Most of my activity was focused on the AutoCAD for Mac Forum. But today I want to offer you a pretty useful AutoLISP routine from the AutoCAD for Windows Express Tools collection – TCOUNT.

I made an attempt to adapt this command to AutoCAD for Mac, and looks like I did it. At least in my home tests, it works on Mac the same way as on PC.

You can try it yourself: download it here:

TCOUNT-MAC.LSP

Unzip, than APPLOAD command to load the routine and start using new TCOUNT command.

For those who are not familiar with all TCOUNT command options I post here an excerpt from online Help for this command:

TCOUNT (Express Tool)

Adds sequential numbering to text and mtext objects as a prefix, suffix, or replacement text.

Numbering is added to individual text objects and to each line of multiline (mtext) objects.

Command: TCOUNT

Select objects: Use an object selection method

Sort selection set by X, Y, or Select-order <current>: Enter an option or press Enter

X Determines numeric order by increasing x-coordinate values of the selected text.
Y Determines numeric order by decreasing the y-coordinate value of the selected text.
Select-order Determines numeric order according to the order in which the text was selected.

Enter count [Start, increment] <current>: Enter the starting number and increment, separated by a comma, or press Enter

Start Specifies the first number in the sequence.
Increment Specifies the difference between the numbers in the sequence.
Note: Negative increments (decrements) are supported. Precede decrements with a minus sign.

Placement of text- Overwrite/Prefix/Suffix/Find&replace../ <current>: Enter an option or press Enter

Overwrite Replaces selected text strings with numbers
Prefix Adds the number as a prefix to text
Suffix Adds the number as a suffix to text
Find&replace Replaces a user specified text string with a number

Examples

Starting number = 1, increment = 1 added as prefix:

Starting number = 20, increment = -10 added as suffix:

Starting number = 2, increment = 2, Overwrite:

I also would like to note that when I created this routine, I took advantage of the valuable information from Lee Mac Programming site.

I’m waiting for your feedback on the routine, and I’m ready to make corrections if they are needed.

Advertisements

4 Responses to “TCOUNT for AutoCAD for Mac”

  1. Thank you very much!

  2. thanks! it works 😀

Comments are closed.

%d bloggers like this: