I’m trying to load a CAD file in Version 10 and get an error when I call .open on the layer:
“The type initializer for ‘ThinkGeo.MapSuite.Layers.CadFeatureSource’ threw an exception.”
I have attached a sample app I’ve created. Can someone take a look and see if I’m missing any dlls or settings?
I removed the main ThinkGeo.MapSuite.dll from the zip to meet the upload limits.
I was able to get it running in my main project. However, one of the DWG files I have does not load correctly.
It looks like this when I load it into a CAD viewer:
But when I load it into the sample project it looks like part of it is split apart and the styling is gone. Is there any type of documentation on using the CAD layers dealing with projections? Or is there any info on what version of dwg files are acceptable or if they need to be created in a certain format to view in the ThinkGeo control? I’ve attached the dwg file so you can take a look at it as well.
Thanks Jesse,
Yes. We saw this issue before. There are some Guidance for the CAD creation/modification.
Guidance
The ThinkGeo Mapsuite support open the DWG/DXF 2013 and the older version. So make sure covert your drawing to one of these versions.
Do not use the block references. If you have to use block references do not have the spline in the block. If we have to use spline in the block just make sure convert it to polyline after modification done.
For your case I think it is about #2. All features can display on the map but in different location. You could move the features out of the block references.