pmadhwal7 Posted September 17, 2020 Share Posted September 17, 2020 (edited) Dear all please help me to find out what is the highest value in a sheet, parallel inside the blue line and those who are crossing that blue line, as in the sample I have attached, the highest value Is 3.50 meters Depth.dwg Edited September 18, 2020 by pmadhwal7 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 18, 2020 Share Posted September 18, 2020 No idea what you want need to make a big text "this point here" Quote Link to comment Share on other sites More sharing options...
pmadhwal7 Posted September 19, 2020 Author Share Posted September 19, 2020 I have attached screen shot may be u understand my words.... Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 19, 2020 Share Posted September 19, 2020 (edited) Just get a selection set of text or mtext search the text for "Depth" pull that line out, then parse out the numeric value, compare and keep the biggest number , up to you what to do next. The pull apart mtext not in my collection. Need to find. ;Author hak_vz (defun string_to_list ( str del / pos ) (if (setq pos (vl-string-search del str)) (cons (substr str 1 pos) (string_to_list (substr str (+ pos 1 (strlen del))) del)) (list str) ) ) (setq eo (vlax-ename->vla-object (car (entsel "\nSelect MTEXT >")))) (setq txt (vlax-get eo 'TextString)) (setq tlist (string_to_list txt "\\P")) Edited September 20, 2020 by BIGAL Quote Link to comment Share on other sites More sharing options...
pmadhwal7 Posted September 20, 2020 Author Share Posted September 20, 2020 (edited) After uploading lsp file nothing was showing Untitled.mp4 Edited September 20, 2020 by pmadhwal7 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 20, 2020 Share Posted September 20, 2020 (edited) I just provided the method not solution you have asked often enough that you should be starting to do on your own thing. Use (setq ss (ssget (list (cons 0 "text,mtext")))) then just go through the selection use the string to list, look at each line, does it have "Depth" if yes get the numeric value, hint Lee-mac, compare is it bigger than prior value if yes save. Cadtutor is here to help not necessarily a place to get code written for free. Have a go help is here when you get stuck. Edited September 20, 2020 by BIGAL Quote Link to comment Share on other sites More sharing options...
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.