Leader DXF code for Arrow size

Discussion in 'AutoCAD' started by MarcelGoulet, Apr 29, 2004.

  1. MarcelGoulet

    MarcelGoulet Guest

    Hi,

    I would like to automatically edit the arrow size of a leader after it's insertion in a drawing with a specific program.

    What is the DXF code associate to it and wich way I can reach it trough the DXF code of that kind of entity ?

    Thanks

    Marcel
     
    MarcelGoulet, Apr 29, 2004
    #1
  2. I would like to automatically edit the arrow size of a leader after it's insertion in a drawing with a specific program.
    There's a couple ways. You could manually edit the block definition that
    is referenced by the leader and edit it that way. However, I believe
    (could be wrong) that modifying (mirror, scale, stretch, etc) the leader
    will update it to it's default dimstyle defined setting.

    The other way is by applying an DimStyle Override to it. This can be
    cone via the (command) or you should be able to do it via DXF codes be
    placing the proper data in Xdata for that leader.

    Haven't tested any of this recently so the behavior I explained could be
    different but last time I played with this type of thing (years ago), I
    believe this was the case.


    --
    Darren J. Young
    CAD/CAM Systems Developer

    Cold Spring Granite Company
    202 South Third Avenue
    Cold Spring, Minnesota 56320

    Email:
    Phone: (320) 685-5045
    Fax: (320) 685-5052
     
    Darren J. Young, Apr 29, 2004
    #2
  3. MarcelGoulet

    Jeff Mishler Guest

    Although the Arrowheadsize can be accessed and edited with standard lisp and
    DXF codes, it is a REAL pain to do.
    However, using vlisp & activex it is easy.

    Vlisp method, assumes you already have the <ename> of the leader stored as
    'ent':

    (setq ldrobj (vlax-ename->vla-object ent))
    (vla-put-arrowheadsize ldrobj 0.15)

    I won't go into the DXF method other than to say you need to check if the
    ent has xdata related to dimensions already attached. If there is, add the
    codes for dimasz. If not the xdata must be created and the codes for dimasz
    added to it.

    HTH,
    Jeff

    insertion in a drawing with a specific program.
    the DXF code of that kind of entity ?
     
    Jeff Mishler, Apr 29, 2004
    #3
  4. Although the Arrowheadsize can be accessed and edited with standard lisp and
    I always forget about ActiveX from Lisp. Old habits die hard I guess.

    --
    Darren J. Young
    CAD/CAM Systems Developer

    Cold Spring Granite Company
    202 South Third Avenue
    Cold Spring, Minnesota 56320

    Email:
    Phone: (320) 685-5045
    Fax: (320) 685-5052
     
    Darren J. Young, Apr 29, 2004
    #4
  5. MarcelGoulet

    MarcelGoulet Guest

    Thanks alot Jeff !

    Marcel
     
    MarcelGoulet, Apr 29, 2004
    #5
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.