
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I was looking for a solution for automated vertical translation of multiple texts to a polyline.
Here is what I've come up to now but it doesn't work yet:
(Defun c:MoveVertical (/ li txts e verxl var sa)
(if
(and (princ "\nSelect Line for Alignment")
(setq li (ssget "_+.:S:E" '((0 . "*LINE"))))
(princ "\nSelect Texts to Align")
(setq txts (ssget "_:L" '((0 . "TEXT,MTEXT"))))
(setq verxl (command "xline" (vla-get-insertionpoint e) a "" 90 ""))
(setq var (vla-intersectwith verxl li acExtendBoth)
sa (vlax-variant-value var))
(repeat (sslength txts)
(vla-move
(setq e (vlax-ename->vla-object (ssname txts 0)))
(vla-get-insertionpoint e)
sa
)
(ssdel (ssname txts 0) txts)
)
)
(princ)
)
I would appreciate any help from any of you!
Solved! Go to Solution.