RRS1987 Posted October 26, 2011 Posted October 26, 2011 Dear All, In Quick Select command function, I want to use more properties value to select one type text or other object. Quote
Tiger Posted October 26, 2011 Posted October 26, 2011 Try the FILTER command instead, its like QSelect only moar. Quote
RRS1987 Posted October 26, 2011 Author Posted October 26, 2011 Exactly I want to select text, by using contents properties in quick select command. Normally In that function the operator values are Equal or Not equal or Wildcard match, But i need also match case and find whole word only . Please tell me , what should i do? otherwise is there any lisp for this type of selection method? Quote
Tiger Posted October 26, 2011 Posted October 26, 2011 so FILTER doesn't do it for you? In my short testing, FILTER can separate from upper and lower case as well as not pick TESTING if you specified TEST as content. Quote
RRS1987 Posted October 27, 2011 Author Posted October 27, 2011 When I use find command, I can find the text all as one by one, which i specified in the text string. But How can I select the found object? And also I have disabled select All option in search resullts column on Find tool. How can I make it enable? Please tell me the way. Quote
RRS1987 Posted October 27, 2011 Author Posted October 27, 2011 When I use find command, I can find the text all as one by one, which i specified in the text string. But How can I select the found object? And also I have disabled select All option in search results column on Find tool. How can I make it enable? Please tell me the way. For this function could someone make any lisp? Quote
MSasu Posted October 27, 2011 Posted October 27, 2011 Try to paste the code below as answer to "Select objects:" prompter (replace "Test" with your string with desired case and preserve spaces if want to locate the whole word): (ssget "_X" (list '(0 . "TEXT") (cons 1 "* Test *"))) Regards, Mircea Quote
RRS1987 Posted October 27, 2011 Author Posted October 27, 2011 sorry, i didn't get understand . if you don't mine can you explain me again, Quote
MSasu Posted October 27, 2011 Posted October 27, 2011 Presuming that you want to move (you didn't provided details about the action you want to perform with those entities) all text entities that contains the string "HelloWorld": Command: [i]MOVE [/i]Select objects: [i](ssget "_X" (list '(0 . "TEXT") (cons 1 "* HelloWorld *"))) [/i]56 found Select objects: ... Regards, Mircea Quote
CNatka Posted October 29, 2011 Posted October 29, 2011 I didn't get why you need to find the text by case with the filtering option of contents? Is it solves some business purpose or just need to do that for some kind of modification to the content of the text? Share the logic of your thinking behind the discussion. -CNatka Quote
RRS1987 Posted October 29, 2011 Author Posted October 29, 2011 Dear, I having text object 2000 more, which are having in same layer, color, width factor and text style in my drawing. The problem is, now i need to split some text and i need to make new layer for those object. hopefully, now could you got my problem? Quote
CNatka Posted October 29, 2011 Posted October 29, 2011 Yes, So go for the way already stated by the experts and wish you good luck. Quote
MSasu Posted October 29, 2011 Posted October 29, 2011 So, you need to move those text items that have in common one sub-string to a layer? In this case paste on the command line the code below, after substituting the blue parts to fit your case - please take care that the layer must be already available. (command "_CHPROP" (ssget "_X" (list '(0 . "TEXT") (cons 1 "* [color=blue]HelloWorld[/color] *"))) "" "LA" "[color=blue]MyLayerNam[/color]e" "") Regards, Mircea Quote
RRS1987 Posted October 31, 2011 Author Posted October 31, 2011 (ssget "_X" (list '(0 . "TEXT") (cons 1 "* Test *"))) Please Forgive me, If this as a trifling question I got this in command prompt, while i am using above code. but i don't know where is the selection set. From where and how i can select the selection set? And also i can get while i am using get selection command in express tools. this also i don't know where is it saved? from where and how i can select the active selection set? Quote
MSasu Posted October 31, 2011 Posted October 31, 2011 As stated previously, use that code on the prompter that ask you for entities selection (“Select objects”); this way the selection set will be passed automatically to the editing command. However, since you said that want to change those items to a specific layer, I suggest you to give a try to the code from my previous post (#14). Regards, Mircea Quote
Recommended Posts
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.