Jump to content

Recommended Posts

Posted

I am sure your question would be why not running a simple find command, but since I have so many blocks, my results would show 50 results each time - this is my way of simplifying the find command but no intention to replace - only to view.

 

Is there a way to partially find/ locate a text, example: KRE-800 10291 (101 2065)

if it could ignore <spaces> and not a perfect match rather partial match!

Thanks

(defun c:TEST (/ text ss)
(setvar 'dynmode 3)
(setvar 'dynprompt 1)
 (if (and (setq text (getstring T "\n  >>  Enter Antenna Model To Find: "))
          (setq ss (ssget "_x" (list '(0 . "TEXT,MTEXT") (cons 1 text)))))
     (sssetfirst nil ss)
 ) ;end if
(command "zoom" "o")  
(princ)
) ; end defun

 

Posted

did not succeed since it works for some but not for others: I guess my antenna models are wack : TBXLHB-6565A-VTM OR Kathrein - PR-950 OR RVVPX305.10R OR DBXLH-8585A-VTM
I intended to just type say: 6565A and hopefully get TBXLHB-6565A-VTM or type DBXLH and get DBXLH-8585A-VTM. But nothing shows up.

 

This is another question:

Do you think there is a way for a list to be made so it could give suggestions as I type? since I would have 4 models for RVVPX305.10R XM R F and keeps changing for every model.

how about if all my Mtexts are on layer Tx-0-TXT colour 30. Do you think there is a way to collect names then as I type create suggestions?

 

Thanks

Posted (edited)

@Lee Mac NOTE: on MTEXT if the text is longer than 250 characters in the search, you would want to add in group code 3 as well. You would have to use the OR modifiers?

Edited by pkenewell

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