Different text wrap in imported dwg files

Different text wrap in imported dwg files

rebar_eater
Enthusiast Enthusiast
2,130 Views
7 Replies
Message 1 of 8

Different text wrap in imported dwg files

rebar_eater
Enthusiast
Enthusiast

I posted this question earlier but never found a solution, So I'm reposting in the hopes that someone can help me out with this.

 

I'm working on a project in Revit (2022) in which we are using several imported Autocad files (2013 format, exported from Autocad 2022) for a few things such as details and gym lines. However, when importing cad files, often the text appears wrapped differently in Revit than it does in Autocad. I had originally thought this might be due to embedded properties in mtext objects, but it still occurs even after running a "stripmtext" lisp I found online to remove these properties.

 

This happens for mtext objects (Autocad on the left, Revit on the right):

rebar_eater_0-1709646517233.pngrebar_eater_1-1709646517240.png

 

I tried using some basic text objects (the kind that are limited to one line) and this still happens, which really confuses me:

rebar_eater_2-1709646517261.pngrebar_eater_3-1709646517260.png

 

And it even happens with dimensions with text in them:

rebar_eater_4-1709646517267.pngrebar_eater_5-1709646517271.png

 

It may be worth noting that I am using a custom ttf font in the cad files. I created my own ttf version of the RomanS autocad font with a slight weight applied so that any text in imported cad files can match annotations created in Revit using the same font.

What could be causing this problem, and what might I do to troubleshoot it?

i eat rebar
0 Likes
2,131 Views
7 Replies
Replies (7)
Message 2 of 8

Mike.FORM
Advisor
Advisor

It looks to me like the font is bolder in Revit and thus it becomes longer and hits the boundary of the text box size causing it to wrap.

 

Try stretching the size of the text box in AutoCAD and reimport to see if that works.

Also your MText example looks to have a hard return after "blocking".

Message 3 of 8

rebar_eater
Enthusiast
Enthusiast

I had thought about font boldness, but I don' t think that's the issue here, since it even seems to happen for single line text objects, dimensions, and mtext objects with their boxes stretched beyond where the text ends. I also double checked by lining up both versions in photoshop, and they line up perfectly.

rebar_eater_0-1709649068804.png

 

I did already try stretching the text boxes in Autocad, Revit still adds the line break. I also double checked the mtext example, there's no hard return there. The textwrap in autocad is due to the size of the mtext box, but revit seems to arbitrarily be adding a line break for some reason.

i eat rebar
0 Likes
Message 4 of 8

handjonathan
Autodesk
Autodesk

Hi @rebar_eater 

Thanks a lot for posting your question to the forums!   Im tagging @Alfredo_Medina @SteveKStafford @ToanDN who may have some guidance. 

We look forward to hearing back from you with more information so we can help you as a community! 



Jonathan Hand


Technical Marketing Manager | Construction

0 Likes
Message 5 of 8

SteveKStafford
Mentor
Mentor

Have you tried comparing how the same text elements behave if they use a Windows stock font like Arial instead. This would help determine if it's related to your custom font being interpreted by Revit differently than a stock font. I'm inclined to agree with Mike that the boundary of the text element is getting interpreted differently and forcing wrapping sooner than in AutoCAD.


Steve Stafford
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
EESignature

0 Likes
Message 6 of 8

aprezkop
Explorer
Explorer

I was having this same issue with blocks of notes.  I was able to resolve this with a fix in CAD, if I add a single space at the end of each text string that was wrapping incorrectly it would resolve the issue.  @rebar_eater try adding a space after your "BLOCKING" text and see if that fixes it?

Message 7 of 8

max39GZ6
Observer
Observer

This solutions worked for me! Thank you!

0 Likes
Message 8 of 8

Rebecca.VargasTHHVT
Explorer
Explorer

stretching the size of the text box well beyond the end of the text, in AutoCAD, helped me. Thank you!

0 Likes