Edit attribute value with lisp when inserting with Mleader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a lisp that uses the standard Mleader command, then changes it to a text layer automatically.
The below works perfectly for the regular Mleader with text.
I have created an mleader STYLE with a tag that has a few attributes.
It inserts the leader and tag, but hangs on editing the attributes. Then after hitting enter, it completes to change it to the text layer. it then needs to be double clicked on to edit the attributes.
What I would like is to run the leader, then enter the text into the attribute box, then it finishes and changes layer.
I would even accept it to insert it first, change layer, then bring up attribute box to edit.
I cant even seem to get this to work either way.
Any ideas or help is appreciated.
;allows mleader to be used and changed automatically to text layer
;
(defun c:mleader-cke-TEST ()
(initcommandversion)
(command "_.mleader")
(while (> (getvar 'cmdactive) 0)(command pause))
(c:c2textlyr)
)