Make layers from text string

Make layers from text string

neam
Collaborator Collaborator
393 Views
3 Replies
Message 1 of 4

Make layers from text string

neam
Collaborator
Collaborator

Hi everyone

How to create layers name from right to left text language?

Style=Arial

Keyboard=Persian

 

0 Likes
Accepted solutions (2)
394 Views
3 Replies
Replies (3)
Message 2 of 4

neam
Collaborator
Collaborator

This can be done by edit text and ctrl+c then paste to new layer name in layer box.
But this is done by Lisp, the pasted text in the layer box is corrupted.

0 Likes
Message 3 of 4

komondormrex
Mentor
Mentor
Accepted solution

hey,

check if this helps

(vl-catch-all-apply 'vla-add (list (vla-get-layers (vla-get-activedocument (vlax-get-acad-object))) (cdr (assoc 1 (entget (car (entsel "\nPick to add layer text: ")))))))
Message 4 of 4

Sea-Haven
Mentor
Mentor
Accepted solution

Maybe try also  going old fashioned

 

(command "-layer" "M" (cdr (assoc 1 (entget (car (entsel "\nPick to add layer text: "))))) "")