PDA

View Full Version : single line text



kc27315
2nd Jan 2008, 11:54 pm
I'm using Autocad Civil3d 2008.
I have an line of single line text. It contains several words separated by spaces. I want to easily split it up into individual words, so that when I double-click on any one of the words, I am allowed to edit only that word. Any suggestions.

Thanks in advance for any help.

kc

GE13579
3rd Jan 2008, 12:10 am
I think for just a few words I'd just re- write each word into new single line text fields. I'm afraid I don't know of any other way around it. :(

kc27315
3rd Jan 2008, 12:17 am
thanks for your reply. I actually have hundreds of these single line text fields, and I was just looking for a way to do them all at once, by selecting them all, and then applying an appropriate command. I just don't know of a command or tool to accomplish this.

kc

GE13579
3rd Jan 2008, 12:20 am
I'm sorry but I can't help... maybe someone will be able to suggest something using a LISP but that's all I can think of. :(

Alan Cullen
3rd Jan 2008, 12:22 am
Are all the texts the same text, or are you wanting to replace the same word in each line with a different "same" word?

Depending what you want to do, it could be done using a lisp routine.

GE13579
3rd Jan 2008, 12:37 am
Not sure if this (http://cadtutor.net/forum/showthread.php?t=7187&highlight=single+line+text+explode) thread might be of interest...

It triggered a thought that maybe you could make the text into MTEXT using the command TXT2MTXT command mentioned in the above thread, then <enter> where each space is before exploding... although I also realise this isn't ideal if you're wanting to keep all the text in place...

kc27315
3rd Jan 2008, 12:41 am
It's not a "Find and Replace" dilemma. Each line of text has two words: "Fin." and either a number like "45.27" or characters like "XX.XX"

The texts are as follows:

Fin. 23.56
Fin. 16.89
Fin. XX.XX
Fin. 21.27
Fin. XX.XX
Fin. 34.98
etc. ....

I need to change most of the numbers and the "XX.XX"'s to different numbers. I want to be able to double-click on the 34.98 or the XX.XX, and then just start typing the new number without having to delete some characters or highlight a specific number of the text. If I were to just double-click on the text and then just start typing a number right now, the characters "Fin." would be gone, but I want them to stay.

Thanks again for the replies

kc27315
3rd Jan 2008, 12:44 am
The reply today at 4:37 was a good thought. You're on the right track. But it still might be too time consuming. And, your right, I would like the text to remain in place.

Thanks, kc

GE13579
3rd Jan 2008, 12:51 am
Last suggestion I can think of... as you're duplicating "Fin.", is to just double click each one and change the numbers to suit, losing the Fin. on each one, then create a single line text field "Fin.", right adjust and copy/ paste back to each of the numbers. That's all I can suggest... and it's bed time now... :sleeping: :sleeping:

kc27315
3rd Jan 2008, 03:35 pm
Thanks for all your advice. I'll probably go with your last advice unless anyone else has any additional ideas.

Thanks a lot for the replies

kc

rustysilo
3rd Jan 2008, 03:38 pm
If these are finished grade elevations why not just create a surface label to read how you want it to. This way your elevs will automatically update themselves whenever there is a change made to the surface.

kc27315
3rd Jan 2008, 04:08 pm
I figured out a way to do what I was trying to do. I did it as follows for anyone that's interested:

*Note: All text had a middle justification.

1) select all text I'm interested in.
2) copy and paste it out of the way (say 10,000 units to the right)
3) With the text (there's a lot of it) that remained in place, switch it's justification to middle left, and use find and replace to remove "Fin. " from it.
4)With the text that's moved, select it, change it's contents to "Fin. ", and change it's justification to middle right.
5) Move that text back, and you're done.

: )

Thanks again for the replies.

kc

kc27315
3rd Jan 2008, 04:17 pm
Thanks rusysilo.

I've attached a picture of how I need it to look. I'm not sure how to use the surface menu to make it do that, so it's all just text right now that I've typed in.

Thanks, kc

lpseifert
3rd Jan 2008, 04:50 pm
Here's a lisp that will break text at a selected spot... from the guys at the Swamp.
The devil made me do it :twisted::twisted::twisted:

rustysilo
3rd Jan 2008, 05:31 pm
lpseifert, I think you could have done a better job at your 666th post. That one just didn't seem very evil at all...:twisted:

Ah much better.

rustysilo
3rd Jan 2008, 05:40 pm
kc,
go to toolspace under the settings tab > surface > label styles > spot elevation > right-click > new or right-click Standard > copy to create a spot elevation style.

kc27315
4th Jan 2008, 03:41 am
thanks for your help. I'll give it a try

kc