AutoCAD 2007/2008/2009

Reply
Member
cescardona
Posts: 4
Registered: ‎05-16-2007
Message 1 of 9 (167 Views)

Multileader Scale

167 Views, 8 Replies
05-16-2007 11:45 AM
DIMSCALE sets the overall scale for the dims. I can't find the variable that does the same thing for the multileader. There is a place in the "multileader style manager" dialog box that allows you to change the scale, but WHAT'S IS THE VARIABLE'S NAME?
Contributor
steinmACAD-Design
Posts: 24
Registered: ‎04-12-2007
Message 2 of 9 (165 Views)

Re: Multileader Scale

05-16-2007 12:56 PM in reply to: cescardona
There is currently no SYSVAR for this, however we are looking to possibly add it in the future (you are not the only person to try to find it). You can edit the mleaderscale value via LISP.

Thanks,
Matt Stein
AutoCAD Product Design
Member
cescardona
Posts: 4
Registered: ‎05-16-2007
Message 3 of 9 (167 Views)

Re: Multileader Scale

05-16-2007 01:36 PM in reply to: cescardona
How do I do that? I've tried (setvar "mleaderscale" 24) for instance but that does not work. I've tried to run the "-mleaderstyle" to suppress the dialog box, but that does not work either. (Setq mleaderscale 20) sets a variable with that name, but the changes are not seen in the dialog box afterwards.
Thanks.
*Allen Johnson
Message 4 of 9 (165 Views)

Re: Multileader Scale

05-16-2007 01:50 PM in reply to: cescardona
You need to use vlisp to get the mleaderstyle object and then set it using something like:

(setq oMLS (dwa-get-mleaderstyle "DWA Standard"))
(vla-put-scalefactor oMLS 24.0)

Here's how to get the multileaderstyle object:

;;; (dwa-get-mleaderstyle "DWA Standard")
;;; returns the mleaderstyle object if found
;;; Allen Johbnson 2007, with help from code by Luis Esquivel

(defun dwa-get-mleaderstyle (mlsname / *acad* *doc* *dics* dic dobj mlsname found)
(vl-load-com)
(setq *acad* (vlax-get-acad-object)
*doc* (vla-get-activedocument *acad*)
*dics* (vla-get-dictionaries *doc*)
)
(vlax-for dic *dics*
(if (= (lbx-get-name dic) "ACAD_MLEADERSTYLE")
(progn
(vlax-for dobj dic
(if (= (vla-get-name dobj) mlsname ) (setq found dobj))
)
)
)
)
found
)

(defun lbx-get-name (obj / r)
(if (vl-catch-all-error-p
(setq r (vl-catch-all-apply
'vla-get-name
(list
obj
)
)
)
)
nil
r
)
)
Contributor
steinmACAD-Design
Posts: 24
Registered: ‎04-12-2007
Message 5 of 9 (165 Views)

Re: Multileader Scale

05-16-2007 02:16 PM in reply to: cescardona
Thanks Allen for the code snippet....

Matt Stein
AutoCAD Product Design
Member
cescardona
Posts: 4
Registered: ‎05-16-2007
Message 6 of 9 (165 Views)

Re: Multileader Scale

05-16-2007 02:52 PM in reply to: cescardona
Thanks a lot Allen. This worked just fine for me.
*David M. Gardner
Message 7 of 9 (165 Views)

Re: Multileader Scale

05-17-2007 08:17 AM in reply to: cescardona
Why in the world wouldn't you use the dimscale as your scale factor /
variable? Leaders tend to have some association to dimensions.

--

Thanks,
David M. Gardner
Change the DOT to reply

wrote in message news:5588380@discussion.autodesk.com...
There is currently no SYSVAR for this, however we are looking to possibly
add it in the future (you are not the only person to try to find it). You
can edit the mleaderscale value via LISP.

Thanks,
Matt Stein
AutoCAD Product Design
Member
cescardona
Posts: 4
Registered: ‎05-16-2007
Message 8 of 9 (166 Views)

Re: Multileader Scale

05-17-2007 08:44 AM in reply to: cescardona
The MULTI LEADER scale is not affected by the DIMSCALE variable, so changing it had no effect on my MULTILEADERS.
*David M. Gardner
Message 9 of 9 (167 Views)

Re: Multileader Scale

05-17-2007 10:51 AM in reply to: cescardona
Yes, I know. I was really just making a comment to AutoDesk that I think
they were stupid for not using dimscale in stead of MLeaders own scale. And
I said it nicer.

--

Thanks,
David M. Gardner
Change the DOT to reply

wrote in message news:5589275@discussion.autodesk.com...
The MULTI LEADER scale is not affected by the DIMSCALE variable, so changing
it had no effect on my MULTILEADERS.
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.