Jump to content

Script file to move text to new layer


jzookcaduser

Recommended Posts

Hello,

I'm really new to script files and I have a issue with about 250 drawings.

The client had put the text on several different random layers and now wants the

text all on one layer. I know I can select everything in the drawing, in the property pulldown, select text and switch layers. I would like to do this through a script file but I cant get past the properties drop down. Is there a way to select only text for changing through a script file?

Thanks!

Link to comment
Share on other sites

Its not easy (even possible) to use dialogue boxes with scripts.

 

I was about to suggest that you use the action recorder but the more I look at it, the more I understand why people don't use it.

 

So back to your problem. You can change an objects layer with a script using the CHANGE command. HOWEVER you still have to select all the text. This can be done with a simple SSGET lisp statement but I am not the person to show you what is required as I have forgotten. I am not aware of a way of making a selection from the command line which is what you require to use a script.

 

FWIW, I would use QSELECT to select all the text and then use the properties but I think your way probably saves a few key strokes. Old habits die hard.

Link to comment
Share on other sites

Dave,

Thanks for the info, it was helpful and gave me a good jumping off point. The dialogue box was in the way and I was just trying to by-pass it perhaps I will try the action recorder just to see what happens.

Thanks again.

John

Link to comment
Share on other sites

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