Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Autonumbering rectangle (same height/length/orientation)

22 REPLIES 22
SOLVED
Reply
Message 1 of 23
ccsmith25
2191 Views, 22 Replies

Autonumbering rectangle (same height/length/orientation)

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!

22 REPLIES 22
Message 21 of 23
ccsmith25
in reply to: pbejse

Thanks for your all support.

Message 22 of 23
pbejse
in reply to: ccsmith25


@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"

 

Message 23 of 23
Sea-Haven
in reply to: ccsmith25

Hmm

 

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta