Text is missing from imported Autocad DXF files


#21

Geo, Kenny, Anssi, and TIG
Thank you for your help. As a newbie, it took me a while, but able to convert dwg drawings with hundreds of layers to SU-friendly import. From what I can tell, the only feature that was lost was color, which was pretty significant because the colored index matched colored lines in the drawings. However, everything else came through OK.

Ended up using Kenney’s approach because it didn’t involve purchasing CadStd Pro, as in Geo’s approach. Geo’s approach may be easier and may not lose the color, but didn’t want to spend the money to try. I wish I could have used TIG’s plugin, but I don’t know how to use Ruby Console in SU. Played around with it but couldn’t figure it out. TIG – not complaining about your contribution to the SU community, simply beyond my skill level at this point.

My primary machine is MacBook Pro running OS X Yosemite 10.10.3 with secondary being Dell PC running Windows 8. For others that may be frustrated like I was, the steps are as follow:

  1. In Draftsight (Mac), save dwg to R2010 dwg format.
  2. Open in DoubleCAD (PC).
  3. In DoubleCAD, “save as” to 2010_2011 dwg format and press “set up” when dialog box pops up. Select:
    a. Convert XRefs to AutoCad Drawing
    b. Preserve Hatch Associativity
    c. Explode Text
    d. Explode Architectural Objects for DWG
    e. Convert by World Scaled Arcs to Polylines
  4. Import to SU. Shows all layers.
  5. Either leave in layers as imported or put into Layer 0 after deleting desired layers.

Again, really appreciate the help from all.


#22

You don’t need to know anything about using the ‘Ruby Console’ to add a Plugin, and very few Plugins use it anyway…
These days virtually all Plugins in the SketchUcation PluginStore [and also in the ExtensionWarehouse - although my scripts are not hosted there]… can be easily downloaded as RBZ archives.
If you have SketchUp v8M2 or newer [which means any currently supported version and a fewer earlier ones too] then all you do is use SketchUp’s Preferences > Extensions > Install… button, you select the RBZ and it is installed, and it loads.
Thereafter it then loads from the Plugins folder whenever Sketchup starts.
My ‘Import DXF Text’ tool appears in the ‘File’ menu and is simple to use… run it, select the DXF file and it’s text is imported.
Provided you have preciously installed the same DXF’s geometry without changing the CAD origin - a setting in the native importer Options in the open-panel dialog, it should all align etc as you’d expect…


#23

I had been wondering about this issue myself and just found this thread.

I can see the technical issue SU has with importing text but it is certainly an unfortunate limitation. It would be nice to have a built-in way of dealing with it. In the UK, we are under some pressure to comply with BIM protocols, but surely this will limit SU’s ability to do so?


#24

To all,

I’ve landed myself on this forum thread because I wanted to simply import a schedule of text & have the ability of that text to be editable in SU-PRO, as you do with most CAD programmes. I’ve been using SU since Ver-3 & confess I’ve never needed to do this this before & assumed of course SU-PRO could to this. So am very disappointed that it appears this isn’t possible with SU, apart from exploded or other forms, that aren’t editable text in SU.

So yes, this is definitely something the SU-HQ-TEAM needs to resolve, I’m amazed I’ve not unearthed this before & we aren’t seeing rants about this topic from SU users.

However, I now remember SU-LAYOUT handles text in this regard, i.e. importing, as I recall importing quite a few construction notes in MS-WORD on a few projects.

Having thought about this further (hence edited post) this is probably the best direction, given SU-LAYOUT is the final step in setting up your own drawing sheets. I guess if folks have CAD plans with text they want to import into SU, you could just export that text separately to a MS-WORD doc or similar word-processor & import that text into SU-LAYOUT.

Over & out,
CJT1963.


#25

A workaround would be to convert the Autocad drawing to .pdf. Then convert the .pdf to .dxf. Then Import the .dxf file to Sketchup and resize the drawing so it is in the correct scale.
That worked fine for me for my purpose. I got everything that the pdf was showing.

  1. convert from .dxf to .pdf
    www.zamzar.com
    convert/dwg-to-pdf
    convert/dxf-to-pdf

  2. convert from .pdf till .dxf
    convert/pdf-to-dxf

  3. Import the .dxf file into Sketchup

  4. Rescale the drawing in Sketchup
    https://www.youtube.com/watch?v=eXh6y5b0pdg


#26

The problem with this workflow is that the PDF is a much less accurate file format than DWG, so the possibility of unintentional gaps in linework, slight skewing etc. increases.
Also, depending on the PDF creation method, DWG text entities may get converted into

  • Pdf text
  • raster images or
  • filled regions.
    Often you don’t know which until you have opened the PDF to check.

#27

Has this issue been resolved? Surely after 4 years someone has come up with a good solution and not just work arounds.

The goal is to start working in skp pro with schematic diagrams. Not being able to bring in text from a dwg files is rough.


#28

Sort of. You can import a DWG or DXF into LayOut, with text.


#29

I love working in layout but the text doesn’t import right with DWG or DXF files. I’ve already tried a dozen different ways to import into both LO and then back out to SKP. Nothing seems to work correctly.

FYI, the goal is to work with block diagram schematics in SKP to be able to use attributes.


#31

I haven’t really tried but I wonder if the issue might be with “classic” AutoCad SHX text fonts. When any other application opens files with them, they get substituted with any random installed Windows font that the application deems as “looking somewhat the same”

Dave’s example is clearly using a Windows font.


#32

You might have nailed the issue on the head. I’ll look further into text fonts. Currently I am on a Macbook Pro but using A CAD with Parallels running Windows 10.


#33

It’s pretty sad but hopefully some smart programmer will work out how to import data with text even if it’s imported just as lines. It can’t be that difficult to do.


#35

If you have a DXF with text, I suggest that you import it into an empty SKP - keeping the CAD origin in the import options [unusually].
It will have text omitted.

To include the text from the DXF, download, install and use my tool https://sketchucation.com/pluginstore?pln=importDXFtext - run from the File menu, which imports just the text part of the DXF - keeping your import settings unchanged, so as to ensure that the text overlays the other geometry properly.

It will take some time to process… be patient…

You should now get an overlaid component containing the text [MTEXT, DTEXT etc].
Which is recreated as individual flattened 3d text strings, keeping its size, font, style, color and layer as the DXF - as far as is practicable. It’s not perfect, but it’s better than nothing…

Select all and move it back to the origin if necessary…

Note that it’s an old ‘unsigned’ script, but it should work in newer SketchUp versions…