Autonumbering rectangle (same height/length/orientation)

Autonumbering rectangle (same height/length/orientation)

ccsmith25
Contributor Contributor
2,890 Views
22 Replies
Message 1 of 23

Autonumbering rectangle (same height/length/orientation)

ccsmith25
Contributor
Contributor

I've already found a file what can add number in center of each selected rectangle. - see attachment (demo.lsp)

Unfortunatelly I am not an expert in autolisp so I would like to ask for some support.

Is it possible to modify the function to add the same number to each rectangulars where the height/width and orientation is the same?

sample.jpg

The rectangulars are placed orthogonal. No 45° or any different orientation like 0°; 90°; 270°.

Thank you in advance for the answers.

Any help is greatly appreciated!

0 Likes
Accepted solutions (3)
2,891 Views
22 Replies
Replies (22)
Message 21 of 23

ccsmith25
Contributor
Contributor

Thanks for your all support.

0 Likes
Message 22 of 23

pbejse
Mentor
Mentor

@ccsmith25 wrote:

Thanks for your all support.


Does that mean you're not even going to try @ccsmith25 ? 😁 come on, don't give up now.

 

Mtext with new line
(strcat "Autolisp" "\\P" "IS EASY")
"Autolisp\\PIS EASY"
Mtext wtih color and new line
(strcat "Autolisp" "\\P{\\C2;" "IS EASY")
"Autolisp\\P{\\C2;IS EASY"

 

0 Likes
Message 23 of 23

Sea-Haven
Mentor
Mentor

Hmm

 

TextString = "{\\H2x;\\C1;ID.23}\\P{\\C5;Lx123 Wx456}"

0 Likes