Weird attribute problem

Discussion in 'AutoCAD' started by simon.weel, Nov 3, 2004.

  1. simon.weel

    simon.weel Guest

    Hi,

    I tried to make a routine that changes the extrusion direction of an attribute in a block. Why would I do that? Well, if you mirror a block with attributes, the attributes are displayed normal (readable).

    However, if you use the ATTREDEF command to change a block with attributues, all attributes in already existing mirrored blocks are also mirrored, making them unreadable.

    In a mirrored block, the attribute has a negative Z-extrusion direction (groupcode 210). If you change this to a positive value, the attribute is displayed normal. However, there's a strange quirk in AutoCAD?

    Check this.
    Make a block with an attribute. Mirror the block. Use ATTREDEF to change the block. Notice that the attribute becomes mirrored after that.
    Use the command LIST to see the properties of the attribute. Notice the insertionpoint of the attribute.
    Now use Nentsel and Entget the attribute. Notice the insertionpoint and compare it with the insertionpoint provided by LIST.

    They should be the same, but they ar'nt??
    How come??

    Greetings,

    Simon Weel
     
    simon.weel, Nov 3, 2004
    #1
  2. simon.weel

    James Allen Guest

    You ought to check out your dxf reference for attrib entities if you haven't
    already. There's a lot of good info in there, like the difference between
    attrib insertion point (10) and alignment point (11) and under what
    circumstances they are meaningful (has to do with justification (72 & 74)).
    This may explain why the values are different.
    --
    James Allen, EIT
    Malicoat-Winslow Engineers, P.C.
    Columbia, MO


    attribute in a block. Why would I do that? Well, if you mirror a block with
    attributes, the attributes are displayed normal (readable).
    attributues, all attributes in already existing mirrored blocks are also
    mirrored, making them unreadable.
    (groupcode 210). If you change this to a positive value, the attribute is
    displayed normal. However, there's a strange quirk in AutoCAD?
    the block. Notice that the attribute becomes mirrored after that.
    insertionpoint of the attribute.
    compare it with the insertionpoint provided by LIST.
     
    James Allen, Nov 3, 2004
    #2
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.