Author Topic: MLeader style creation weirdness  (Read 2605 times)

0 Members and 1 Guest are viewing this topic.

BazzaCAD

  • Guest
MLeader style creation weirdness
« on: June 29, 2007, 01:35:59 PM »
In Acad2008 I've been doing some Lsp/Vlsp work to create MLeader styles. All is working good, except 1 thing.
If I create the text styles first then create the Mleader styles, then place an Mleader in the DWG the text is too big.
But if I create the text styles, place an Mtext object in the dwg, then create the Mleader styles & place one it's ok.
So my question is, why do I have to place an Mtext object in the dwg before I can define the MLeader styles?

thx,
Barry

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: MLeader style creation weirdness
« Reply #1 on: June 29, 2007, 02:16:11 PM »
Wild Guess!

When you place the mtext in the drawing the system variable TEXTSIZE is being set & that is being used by your leader routine.

Would need some code to check your problem. Are you sure it is limited to 2008?
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Jeff_M

  • King Gator
  • Posts: 4100
  • C3D user & customizer
Re: MLeader style creation weirdness
« Reply #2 on: June 29, 2007, 02:25:32 PM »
Are you sure it is limited to 2008?
I don't think MLeaders were around prior to 2008.....

Barry, Alan's correct in that it may just be something simple in the code, but without seeing it it is rather difficult to say.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: MLeader style creation weirdness
« Reply #3 on: June 29, 2007, 02:31:27 PM »
Thanks Jeff, I'm behind the times. :-(
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

BazzaCAD

  • Guest
Re: MLeader style creation weirdness
« Reply #4 on: June 29, 2007, 03:19:39 PM »
Thx guys, you where right. It was the TEXTSIZE var.
I'll post my MLeader creation code when I get all the bugs worked out, but this had nothing to do with my MLeader code.
I was is in my TextStyle setup code. I just had to set the correct TEXTSIZE after all the text styles where defined... :-)

thx again.