VLisp & Leader

Discussion in 'AutoCAD' started by Jasehuss, Oct 2, 2004.

  1. Jasehuss

    Jasehuss Guest

    I've come a little stuck with this.

    I've created mtext using vla-addmtext and also a leader line that attaches a user defined point and the mtext using vla-addleader.

    The problem I have is that the mtext appears to be underlined by the leaderline.

    How can I change it so the leader attaches to the middle left of the text?

    Any help appreciated
    Thanks in advance
    J
     
    Jasehuss, Oct 2, 2004
    #1
  2. Jasehuss

    Doug Broad Guest

    Change the VerticalTextPosition property of the leader
     
    Doug Broad, Oct 2, 2004
    #2
  3. Jasehuss

    Fatty Guest

    Try this:

    (vl-load-com)
    (setq obj (vlax-ename->vla-object (car (entsel))))
    (vla-put-verticaltextposition obj 1)

    Fatty
     
    Fatty, Oct 2, 2004
    #3
  4. Jasehuss

    Jasehuss Guest

    Cheers Guys, Just the job

    J
     
    Jasehuss, Oct 2, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.