Jump to content

Recommended Posts

Posted

Hi Folks,
I'm looking for an existing AutoLISP routine before writing one from scratch.

I need a Lisp for AutoCAD Tables (AcDbTable) that can detect text inside a table cell that has been separated using Alt+Enter (multiple lines within the same cell).

The desired workflow is:

Select one or more AutoCAD Lt tables.

Scan every cell.

Detect cells containing multiple lines (Alt+Enter line breaks).

Display the cell location (row and column).

Show each individual line with its line number.

Ask which line should be modified.

Ask for an AutoCAD Color Index (ACI).

Change the font color of only that specific line, while preserving all other formatting in the cell (font, text height, bold, italic, stacked text, fields, etc.).

Example:

Cell (Row 3, Column 5)

Line 1: Existing Text

Line 2: New Text

Line 3: Notes

Choose line to recolor: 2

ACI Color: 1 (Red)

Only Line 2 should become red.

Has anyone already written a Lisp that does something similar, or knows of an existing solution? Any links, examples, or source code would be greatly appreciated.

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