overlapping Texts in Dimensions

Discussion in 'AutoCAD' started by irfan, Feb 2, 2005.

  1. irfan

    irfan Guest

    hi,
    I need to reposition the dimension text while i am using dimaligned.By default, the text position is at the center of dimension line.
    The simplified version of my probem is when dimensioning between opposite corners of a rectangle, the two dimension texts will overlap each other. I need to avoid that.

    Although i can use: dimaligned.testPosition but it is difficult to calculate the new position, NewTextPosition should remain alighned with dimensionline

    The only why i can find is calcluate vectors between startPt & EndPt of each dimension and then move text in the direction of vector. I dont know if it will work or not.

    Has some one got any ideas or code please.
     
    irfan, Feb 2, 2005
    #1
  2. The only why i can find is calcluate vectors between startPt & EndPt of
    This is right..

    ExtLine1Point and ExtLine2Point are Variant Arrays
    containing your WCS coords... Test your TextPoints
    aganist these or vice versa...

    [ExtLine1Point] in Dev Help for syntax

    gl
     
    Paul Richardson, Feb 2, 2005
    #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.