Aligning an attribute in a block

Discussion in 'AutoCAD' started by Dave F, Aug 20, 2003.

  1. Dave F

    Dave F Guest

    Hi
    A2k2

    I'm trying to create a block containing a circle & attribute.
    The last line shown here, appears to reset the attributes position to 0,0,0
    How do I re-set the alignment but keep the position at 5,5,0?

    Thanks in advance

    Dave F

    <snip>
    ....
    insertionPoint(0) = 5
    insertionPoint(1) = 5
    insertionPoint(2) = 0
    .....
    Set attributeObj = blockObj.AddAttribute(height, mode, prompt,
    insertionPoint, tag, value)
    attributeObj.StyleName = "romans"
    attributeObj.Alignment = acAlignmentMiddleCenter
     
    Dave F, Aug 20, 2003
    #1
  2. Hi Dave,



    You have to set the TextAlignmentPoint property after you set the Alignment property.



    Add this line:



    attributeObj..TextAlignmentPoint = insertionPoint
     
    Mark_Abercrombie, Aug 20, 2003
    #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.