Changes to Leader Settings

Changes to Leader Settings

kpennell
Collaborator Collaborator
1,504 Views
12 Replies
Message 1 of 13

Changes to Leader Settings

kpennell
Collaborator
Collaborator

I've done a lot of searching, and testing, from this forum, for a good solid few hours, and can't seem to get what I want to stick.

I'm trying, at the command prompt of course, change a leader setting, to use MText (currently 'none' is enabled), and when Mtext is enabled, to NOT prompt for width.

Of all the sample code that I've used, whatever variables I change in the code, don't seem to stick.  When I open the qleader settings window, nothing has changed.

Any takers.  thanks so much in advance.

KP

0 Likes
Accepted solutions (1)
1,505 Views
12 Replies
Replies (12)
Message 2 of 13

devitg
Advisor
Advisor

Would you, please , upload the sample dwg and what do yo didi in Lisp?

0 Likes
Message 3 of 13

ВeekeeCZ
Consultant
Consultant
Accepted solution

Complicated but possible. Load THIS routine and run this 

(acet-ql-set '((60 . 0)(68 . 0)))

before you initially run the qleader command.

Read the routine's description for more details.

Message 4 of 13

kpennell
Collaborator
Collaborator

Regardless of what I use in the '(acet-ql-set '((60 . 4)(68 . 0)))' makes no difference to the 'settings' window for the 'qleader' command.

Stumped.

0 Likes
Message 5 of 13

ВeekeeCZ
Consultant
Consultant

Not sure if I put the pressure on the right words... so do the following in order:

- turn off AutoCAD

- turn on AutoCAD

- load the routine

- run the set-up function

- run QLEADER

That way it works for me.

 

0 Likes
Message 6 of 13

kpennell
Collaborator
Collaborator

Man, I don't know what I'm doing wrong to be honest.  I've uploaded a video of what I'm doing.  According to your instructions, it should be working.

0 Likes
Message 7 of 13

ВeekeeCZ
Consultant
Consultant

You run the Qleader command BEFORE you applied the initial setting by the routine. Don't.

 

The correct workflow:

Open a new drawing, don't run the QLeader here,  load the routine, run the function, run the QLeader command

 

I've made the VIDEO for you too - demonstrated this many times successfully. Note that my default setting is actually "Mtext", so I changed a setting by the routine to "none".

 

0 Likes
Message 8 of 13

kpennell
Collaborator
Collaborator

Wild. I can certainly this being successful for you.  I'm running 2016, but I'd doubt that makes a difference.

0 Likes
Message 9 of 13

kpennell
Collaborator
Collaborator

So when I use '(acet-ql-set '((3 . "ClosedBlank")(40 . 0.0)(60 . 4)))' it changes the arrow head for me just fine, but it's totally ignoring the (60 . 4) dotted pair.

0 Likes
Message 10 of 13

ВeekeeCZ
Consultant
Consultant

Hm, you got me. When I changed the template to none I was unable to change it back to MTEXT by the routine.

I suggest you change the template to default MTEXT too if possible.

Or move to MLEADERs like most of the people. It has its benefits. 

0 Likes
Message 11 of 13

kpennell
Collaborator
Collaborator

Just found out my issue.

The acet-ql-set will work if the 'qleader' command has never been invoked.  Works on a fresh brand new drawing.

So now the question is, if I want a lisp to change the leader settings as I develop a drawing, how would one do that through lisp?

0 Likes
Message 12 of 13

kpennell
Collaborator
Collaborator

I have since figured out that it has to do with the 'dbmod' variable.  When retrieving the value of the 'dbmod' system variable and it's 0, 1, 4 or 5, the code will work.

 

when I save my drawing, the 'dbmod' value returns to '0', and the code works great.

0 Likes
Message 13 of 13

kpennell
Collaborator
Collaborator

I'm stuck again.  The modification to the qleader settings do not take effect if the drawing is already in progress, even after a save, to bring the 'dbmod' variable to '0'. Tearing my hair out here.

0 Likes