
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I have a selection Fence that find texts over a line (this is working fine)
(setq ssTXT (ssget "_F" (mapcar 'cdr (vl-remove-if-not '(lambda ( x ) (= 10 (car x))) (entget (ssname ssE1 Econt)) ))
(list (cons 8 "TEXTO") (cons 0 "TEXT") (cons 410 "Model") )))
Next step I would like to find all lines over each text found
(setq enR (ssname ssTXT 0)) ; (just using 0 as example)
(setq objR (vlax-ename->vla-object enR))
(setq p1 (cdr (assoc 10 (entget enR))))
(setq p2 (cdr (assoc 11 (entget enR))) )
(setq ssE1 (ssget "F" (list p1 p2) ; could not make this work out
(list (cons 8 "LINES") (cons 0 "LWPOLYLINE,POLYLINE,LINE") (cons 410 "Model")) ))
I want to find out if those found ssE1 Lines do intersect with the ORIGIN FENCE Line
that was obtain in (entget (ssname ssE1 Econt))
If they do not intersect the text found should be ignored.
Check the attached image: My result should ignore R GEN PORTINHO text because the line behind it was not intersecting with the green Fence line over square 51. The intersect command was not listed in this post.
Can a text object be used as a FENCE argument?
Thanks in advance + regards,
Lzucco
Solved! Go to Solution.