Author Topic: Not sysvar Mleader scale in ACAD2008  (Read 2131 times)

0 Members and 1 Guest are viewing this topic.

Amsterdammed

  • Guest
Not sysvar Mleader scale in ACAD2008
« on: September 21, 2010, 09:50:16 AM »
Hello!

I work with Acad2010, a customer of mine with Acad 2008. I made some tool with mleaders and get an error with the

Code: [Select]
(setvar "mleaderscale" 20) part of my code. No big deal, remove that for them, but now of corse the mleades are in 1:1 instead of 1:20. What was the setvar in Acad 2008 conrolling that?

Any ideas anybody?

Thanks in Advance,

Bernd

Gliderider

  • Guest
Re: Not sysvar Mleader scale in ACAD2008
« Reply #1 on: September 21, 2010, 10:01:42 AM »
A "dump" of an Mleader created in 2008 has a Property named "ScaleFactor"

Amsterdammed

  • Guest
Re: Not sysvar Mleader scale in ACAD2008
« Reply #2 on: September 21, 2010, 10:35:05 AM »
right, but where does the value come form, what setting (sysvar) is responsible to assign that value?

Gliderider

  • Guest
Re: Not sysvar Mleader scale in ACAD2008
« Reply #3 on: September 21, 2010, 12:44:02 PM »
I believe that when an mleader is created the  scale is set by the MleaderStyle; the mleader entity's scale can be changed (e.g. Properties or Toolpalette 'Overall Scale property). If the scale factor is set to 0 in the MLeaderStyle, it should take on the scale of the viewport (or is annotative?). I don't think that a sysvar governs the scale factor.

this should return the scale factor of a MleaderStyle (Standard). Help says that DXF code 142 is 'Text Column Width' but it returns the scale factor for me
Code: [Select]
(setq mldrDict (dictsearch (namedobjdict) "ACAD_MLEADERSTYLE"))
(setq mlscale (cdr (assoc 142 (setq mldrStd (dictsearch (cdr (assoc -1 mldrDict)) "Standard")))))

I may be wrong... someone correct me please