# Import DWG/DXF file format

**URL:** <https://community.thinkgeo.com/t/import-dwg-dxf-file-format/8066>\
**Category:** WinForms\
**Created:** [June 6, 2016, 10:09am UTC](https://community.thinkgeo.com/t/import-dwg-dxf-file-format/8066 "2016-06-06T10:09:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhu](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/8dc957/32.png) [@zhu](https://community.thinkgeo.com/u/zhu)\
**Post date:** [June 6, 2016, 10:09am UTC](https://community.thinkgeo.com/t/import-dwg-dxf-file-format/8066/1 "2016-06-06T10:09:06Z")

</div>

Hi,

For ThinkGeo Desktop 8.0, how can I import dxf file by layer? It looks like there is no layer name information for your cad class.

Another question is, is this possible to import dwg (by layer) file into ThinkGeo map?

I found there are some dlls in the path:  
C:\Program Files (x86)\ThinkGeo\Map Suite 8.0\Shared Developer Reference\SysWOW64(on X64 Platform) or System32(on X86 Platform)\CadX64  
so I guess you might use [OpenDesign.com](http://OpenDesign.com) solution to import cad files,  
can I directly use those dlls? can you give some code examples?

Best regards  
Ray

---

<div class="post-metadata">

**Author:** ![Peter](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/peter/32/19042_2.png) [@Peter](https://community.thinkgeo.com/u/Peter)\
**Post date:** [June 7, 2016, 7:00am UTC](https://community.thinkgeo.com/t/import-dwg-dxf-file-format/8066/2 "2016-06-07T07:00:12Z")

</div>

Hi Zhu,

The CadFeatureLayer is used to load the “\*.dxf” file. You can download a sample at [http://wiki.thinkgeo.com/wiki/map\_suite\_services\_edition\_layers\_featuresources\_samples?s[]=cad&s[]=featurelayer#cad\_featurelayer](http://wiki.thinkgeo.com/wiki/map_suite_services_edition_layers_featuresources_samples?s%5B%5D=cad&s%5B%5D=featurelayer#cad_featurelayer).

Yes, we use OpenDesign to import the cad files and we paid for it, but I don’t know if you can use it directly.

Regards,  
Peter
