Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Kent1Cooper
en respuesta a: MrMuscl3


@MrMuscl3 wrote:

.... there occurs a problem with longer text elements that contain spaces in them. These spaces are interpet to be actual line changes (pressing enter) ....


 

Are they really becoming hard returns?  I suspect maybe it's just a matter of slight differences in overall width as applied in the Mtext version compared to as applied in the Text/Attdef version, and that it's just word-wrapping.  It may be affected by the particular font, or by the particular character content.  You can test it easily enough -- if you grab the Mtext width grip and drag it wider, does it "straighten out" into a single line?  [It won't do that if it's really imposing Enters between lines.]

 

If that's the issue, try adding this to the routine, to force the Mtext version to have no limiting width, so it will never wrap to any additional line(s):

....

      (vlax-put tobj 'InsertionPoint tins); original Text's insertion
      (vlax-put tobj 'Width 0.0); prevent word wrapping
    ); repeat

....

Kent Cooper, AIA