System variable for MLeader text style

System variable for MLeader text style

neaton
Advisor Advisor
1,575 Views
3 Replies
Message 1 of 4

System variable for MLeader text style

neaton
Advisor
Advisor

We have some drawings where the MLeader style is correct but it has the incorrect text style and I would like to change it with a script file. I have looked for the system variable for the MLeader text style and can't find it. Does anyone know what the system variable is?

Nancy

0 Likes
Accepted solutions (1)
1,576 Views
3 Replies
Replies (3)
Message 2 of 4

beyoungjr
Advisor
Advisor
Accepted solution

Hi,

As far as I can tell and recall, there is no variable for the text style you would select in the MLEADER typed command nor within the MLEADER Style Dialog.  Instead what I have found is that the text style is kind-of "ported" through the dialog via the "Style" command ("st" as alias and also the Text Style Dialog).

 

Thus, what you are dealing with is the necessity to alter the particular text style that is assigned to your MLEADERS.  If you know that the "Standard" text style is assigned, or any other style particular to your office, then you could simply alter that Text Style "en mass" using a script or LISP routine.

 

The way I understand the post is that you wanted to narrow down to the usage of the style in the MLEADER variables via script.  If instead your query is creating a script then let us know if scipting or LISP help is what you want help with.

 

I think I have identified where you need to target and would help additionally with the routine/s if needed?

 

Cheers,

Blaine

 


Blaine Young
Senior Engineering Technician, US Army

Message 3 of 4

neaton
Advisor
Advisor

Thanks, Blaine, that is the conclusion I came to but was hoping there was a hidden system variable someone knew about. Both text styles are in the drawing and we need to change from Style1 to Style2 then purge Style 1 so it isn't as simple as altering the text style.

Nancy


@beyoungjrwrote:

Hi,

As far as I can tell and recall, there is no variable for the text style you would select in the MLEADER typed command nor within the MLEADER Style Dialog.  Instead what I have found is that the text style is kind-of "ported" through the dialog via the "Style" command ("st" as alias and also the Text Style Dialog).

 

Thus, what you are dealing with is the necessity to alter the particular text style that is assigned to your MLEADERS.  If you know that the "Standard" text style is assigned, or any other style particular to your office, then you could simply alter that Text Style "en mass" using a script or LISP routine.

 

The way I understand the post is that you wanted to narrow down to the usage of the style in the MLEADER variables via script.  If instead your query is creating a script then let us know if scipting or LISP help is what you want help with.

 

I think I have identified where you need to target and would help additionally with the routine/s if needed?

 

Cheers,

Blaine


 

0 Likes
Message 4 of 4

beyoungjr
Advisor
Advisor

Nancy,

This was a good exercise for me as I hadn't bothered with it in the past and always good to re-acquaint myself with the underlying stuff.

Cheers

 


Blaine Young
Senior Engineering Technician, US Army

0 Likes