Message 1 of 7
Select text, Place Multileaderstyle with attribute block from selected text.
Not applicable
04-25-2020
03:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
i've been working on a command where I:
- Select a text or mtext object ;Done
- Pick an arrow point and landing point for the MLeader ;Done
- use those attributes to put in a multileader style with the the current multileader style.
It's the standard library "_tagslot" block with the "TAGNUMBER" attribute.
the code works great until the Edit Attributes window shows up and asks me to insert the value wich should be "txt" value from the code.
(defun c:2ml ( / txt arp lap)
(vl-load-com)
(setq txt (vla-get-TextString(vlax-ename->vla-object (car (entsel))))) ;;; select content from text object
(setq arp (getpoint "\nPick Arrow Location: "))
(setq lap (getpoint "\nPick Text Location: "))
(vl-cmdf "_mleader" arp lap txt "") ;;; This needs work
)Thanks for checking it out.