Jump to content

changing all text of 1 layer to another


Recommended Posts

Posted

Hi,

 

I want to change all text of a layer to a layer with -text

for example if i have some text in layer 1 then i want it in layer 1-text and text of layer 2 in layer 2-text.

I want to use it in a script file so i need a command i can use for it, does a command like that exists? :unsure:

 

thx

 

R

  • Replies 33
  • Created
  • Last Reply

Top Posters In This Topic

  • Acad_2010_user_NL

    13

  • Tharwat

    10

  • piscopatos

    5

  • alanjt

    4

Popular Days

Top Posters In This Topic

Posted Images

Posted
Hi,

 

I want to change all text of a layer to a layer with -text

for example if i have some text in layer 1 then i want it in layer 1-text and text of layer 2 in layer 2-text.

I want to use it in a script file so i need a command i can use for it, does a command like that exists? :unsure:

 

thx

 

R

dear

use filter command

Posted

I dont whant to use filter because you get a screen and i want to let the script run from start to finish without doing anything

so is there another solution ?:)

 

thx

Posted

Would it not be easier to just freeze everything excluding the current layer (layer 1) select the objects showing and then place them onto the desired layer (1-text)

 

I know there is a LISP that will move all text onto a desired layer but i guess thats not really what your looking for

Posted

You can use this, but don't forget to add your desire Layer Name.

 

(sssetfirst nil (ssget "_x" '((0 . "TEXT,MTEXT")(8 . "YourLayerName"))))

 

Regards,

 

Tharwat

Posted

i can use that lisp in my script if you got it :wink: and freezing is an option to but first whant to try it this way :P

Posted
i can use that lisp in my script if you got it :wink: and freezing is an option to but first whant to try it this way :P

 

Use it in the Command Line of Autocad.

Posted

(sssetfirst nil (ssget "_x" '((0 . "TEXT,MTEXT")(8 . "level 1"))))

 

i entered this but it doesn't do anything :? what im doing wrong ???

Posted

if i do this: (sssetfirst nil (ssget "_x" '((0 . "TEXT,MTEXT")(8 . "level 1-text"))))

 

it doesn't work either :?

Posted
(sssetfirst nil (ssget "_x" '((0 . "TEXT,MTEXT")(8 . "level 1"))))

 

i entered this but it doesn't do anything :? what im doing wrong ???

 

The space that you have between level.....1

Posted

but that is the layer name

Posted
but that is the layer name

 

But Layer name do not except spaces within right?

Posted

my layers does have spaces here is a picture of my layer manager layer edit.jpg

Posted

OK.

I am sorry Layer name nowadays accept space within .

 

Anyway I tried it in mine and it does work also with space, like this :

(sssetfirst nil(ssget "_x" '((0 . "TEXT,MTEXT")(8 . "Layer 1"))))

 

So copy it, and change Layer name only .

Posted

doesnt work either ...

this was my input: (sssetfirst nil(ssget "_x" '((0 . "TEXT,MTEXT")(8 . "Layer 4"))))

this was in command line:

(sssetfirst nil(ssget "_x" '((0 . "TEXT,MTEXT")(8 . "Layer 4"))))

(nil nil)

Posted

It is nil , Because you do not have texts under the Layer name.

 

Get sure first, and retry once again.

Posted

i have 23 texts in that layer :?

Posted
doesnt work either ...

this was my input: (sssetfirst nil(ssget "_x" '((0 . "TEXT,MTEXT")(8 . "Layer 4"))))

this was in command line:

(sssetfirst nil(ssget "_x" '((0 . "TEXT,MTEXT")(8 . "Layer 4"))))

(nil nil)

 

You wrote the name of the Layer wrong (Layer 4) it should be (Level 4) Right ?:wink:

 

Regards,

Posted

Do'h i was stupid haha thanx!!! :D that was the problem haha now it works perfectly

 

thx

Posted

I am so glad for you . :)

 

good luck and have a nice day. :lol:

 

Regards,

 

Tharwat

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