System variable that can effect this Multi-leader LISP

System variable that can effect this Multi-leader LISP

murmanator
Advocate Advocate
1,241 Views
5 Replies
Message 1 of 6

System variable that can effect this Multi-leader LISP

murmanator
Advocate
Advocate

I have this LISP function that works great on all my systems except for one. The one is an off-site system that Im not directly in control of but need to support, at least for this function.  The function is for entering a Multi-leader that enables the user to enter multiple text lines. It was working fine on the system in question until he had to re-install his CAD then it got whacked. Its got to be some system variable but I can figure out what it is. I have checked the initial multi-leader settings (when you call the function) and they are correct. The program is as follows:

 

(defun c:CSRNOTE () (CSRNOTE))
(defun CSRNOTE (/ refltr)
(GV)
(ppa-L-POOLTXT)
(SETVAR 'CMLEADERSTYLE "mMLeaderPL")
(command
"_.mleader" pause pause (getstring T)
"_.textedit" "_last"
)
(SV)
(princ)
)

 

When I run it, it allows me to pick the arrowhead location first, then the landing, hit enter, start typing text, use the enter key to make a new text line, and finally click out when Im finished. On the one that dosent work, he is getting to the landing click then it is prompting him to "select an annotation object" and he cant enter the multiple lines of text. 

 

Thanks for looking and in advance for any advice. 

0 Likes
Accepted solutions (1)
1,242 Views
5 Replies
Replies (5)
Message 2 of 6

Ranjit_Singh
Advisor
Advisor

@murmanator wrote:

..............
(command
"_.mleader" pause pause (getstring T)
"_.textedit" "_last"

)...........


The above code does not force the leader arrowhead first option. Try below

(command
"_.mleader" "_h" pause pause (getstring T)
"_.textedit" "_last"
)

 I assume the (SV) (GV) and (ppa-L-POOLTXT) functions are already loaded in the other system. 

0 Likes
Message 3 of 6

murmanator
Advocate
Advocate

Thank you Ranjit. I added the _h code and it works on my end. I am sure the arrowhead first was selected on his system when I was testing it, and I did try the other options there but to no avail. And yes the other functions are loaded on the other system.

0 Likes
Message 4 of 6

Ranjit_Singh
Advisor
Advisor
Accepted solution

@murmanator wrote:

.......... I am sure the arrowhead first was selected on his system when I was testing it............


Then I am not sure what causes the landing first option on his system. I am not aware of any system variable that holds that information.

0 Likes
Message 5 of 6

ВeekeeCZ
Consultant
Consultant

It's really hard to help you since you're giving none information. Where is a test file with you mleader style?, what version of acad you're using?, where is exact copy of command line listing?? 

 

Anyway, this modification works good on my 2016.

 

(command
"_.mleader" pause pause ""
"_.textedit" "_last"
)

0 Likes
Message 6 of 6

murmanator
Advocate
Advocate

I now believe this error is connected to an installation error. I am attempting to do a repair on the install to see if it fixes it. The problem is this error is on an offsite contractors system that I am forced to provide support for so I do not have direct access. Thank you all for the comments and suggestions.

0 Likes