Error Reading Shape File Autocad

broken image
Autocad

Many AutoCAD users who handle geospatial information need to work with ESRI Shapefiles (SHP), by downloading these files from the web or by collaborating with others GIS users, and their basic need is to import these kinds of files into AutoCAD by transforming the Shapefiles features into AutoCAD objects

Shape

ESRI SHP files store both geometry and attributes (data) for features. A single shape can have as many as five physical files with the same filename, but different file extensions. To import from SHP Click Insert tabImport panelMap Import. In the Import Location dialog box, under Files Of Type, select shp. Select the file or folder to import. For formats with additional options, in. Every time you open a drawing in AutoCAD that references shape files that are not on your system, a dialog box is displayed and you are prompted to locate missing shape (SHX) files.

  1. First, the word 'shapefile' is used as shorthand for a group of GIS files in a folder that all have the same name and different extensions. So what your dear correspondent wants is probably not really a 'file', but a zipped up set of files among which is a file called parcel.shp. You will create this set of files in a new folder to keep things.
  2. If the.shx file is on the correct path, have you still got the original.shp (uncompiled shape files) that your colleague used to create the font? If so try using the COMPILE command in 2007 to recompile the.shp file into a new.shx file. I don't know but maybe there is a difference between.

A Shapefile (SHP) is a digital vector storage format for storing geometric location and associated attribute information. Shapefiles (SHP) are simple because they store the primitive geometric data types of points, lines, and polygons. They are of limited use without any attributes to specify what they represent. Therefore, a table of records will store properties/attributes for each primitive shape in the Shapefile. Shapes (points/lines/polygons) together with data attributes can infinitely create many representations about geographic data

Shapefile to CAD

When converting SHP to CAD files the following considerations have to be taken into account:

· 3D features in the Shapefiles must be converted to 3D CAD objects (Points, Polylines, etc.) or to pseudo-3D CAD objects considering the elevation and the thickness of the objects
· When importing Point features It is very interesting to use complex CAD objects (such as Block references in AutoCAD) which can include variable text information (such as Attributes in AutoCAD)
· We must also consider the importing of complex Polygon features, which may include more than one internal or external ring, and convert them to appropriate CAD objects (such as Hatches in AutoCAD)
· What is also very interesting is the automatic distribution of the objects across the drawing depending on the values associated to the Shapefile features (using, for example Layers in AutoCAD)
· Finally, we consider some systemableto import anddisplay the features alphanumeric data (such as Extended Entity Data -EED or XDATA- in AutoCAD)

Import shapefile into AutoCAD – Data in the XDATA viewer palette

Shape

Import Shapefiles to AutoCAD

Spatial Manager™ for AutoCAD lets you import graphic objects into AutoCAD from a large number of GIS sources including ESRI shapefile format

The application detects what type of information the shapefile contains to import (points, lines or polygons) and presents to the user only those import options that are valid for that type of object. In the case of polygonal objects, the closed borders can be automatically filled by using AutoCAD Hatches, or import not only the border of the polygons but also their centroids by using Points or AutoCAD Blocks

For any imported table or file, regardless of its format or type, it is possible to automatically subdivide the imported objects into various AutoCAD Layers, according to the value of a field in the source data table

How to import shapefiles into AutoCAD

This example shows how to import Shapefiles into AutoCAD using Spatial Manager™ for AutoCAD. In the video you can see how an SHP Parcels file is imported onto a drawing, which already contains other Objects belonging to a city

The import process fills every Parcel using a Solid transparent Hatch, distributes every Parcel into new Layers according to the zones to which each Parcel belongs and applies random colors for every new Layer created. The alphanumeric data of every Parcel is also imported using AutoCAD Extended Entity Data (EED or XDATA)!

This format contains Autodesk® RealDWG by Autodesk, Inc.1Copyright © 1998-2006 Autodesk, Inc. All rights reserved.

This chapter is about the AutoCAD DWG/DXF reader/writer and AutoCAD feature types supported by FME. For AutoCAD DWF information, please refer to the Autodesk AutoCAD DWF Reader/Writer.

FME can read and write files used by Autodesk® AutoCAD® and compatible systems. AutoCAD drawing files consist of drawing settings and configuration, as well as a series of entities, or graphic elements, organized into layers.

FME provides broad support for many AutoCAD entity types and options. FME reads and writes AutoCAD file versions up to and including 2018.

When AutoCAD data is output, header information may be copied from a supplied template, or prototype, file.

Reader Overview

The AutoCAD reader first reads the header and table information from the drawing file being processed, and caches information on blocks, shape files, layers, linetypes, and applications. These cached values are referenced by entities throughout the file and are needed when processing the entities.

Error

The reader then extracts entities, one at a time, from the entity section of the drawing file and passes them on to the rest of FME for processing. Complex entities such as polylines and inserts are extracted as single FME features. If the entity has attribution stored as extended entity data, then this is also read and placed in the feature.

When the AutoCAD reader encounters an entity type it does not know how to process, it simply sets the entity type of the feature and returns it. This feature is then logged by the FME correlation subsystem and the reader moves on to the next entity.

Error Reading Shape File Autocad Download

The AutoCAD reader consists of Source Autodesk AutoCAD DWG/DXF File(s).

Import Shape Files Autocad

Writer Overview

Autocad compiled shape file

Many AutoCAD users who handle geospatial information need to work with ESRI Shapefiles (SHP), by downloading these files from the web or by collaborating with others GIS users, and their basic need is to import these kinds of files into AutoCAD by transforming the Shapefiles features into AutoCAD objects

ESRI SHP files store both geometry and attributes (data) for features. A single shape can have as many as five physical files with the same filename, but different file extensions. To import from SHP Click Insert tabImport panelMap Import. In the Import Location dialog box, under Files Of Type, select shp. Select the file or folder to import. For formats with additional options, in. Every time you open a drawing in AutoCAD that references shape files that are not on your system, a dialog box is displayed and you are prompted to locate missing shape (SHX) files.

  1. First, the word 'shapefile' is used as shorthand for a group of GIS files in a folder that all have the same name and different extensions. So what your dear correspondent wants is probably not really a 'file', but a zipped up set of files among which is a file called parcel.shp. You will create this set of files in a new folder to keep things.
  2. If the.shx file is on the correct path, have you still got the original.shp (uncompiled shape files) that your colleague used to create the font? If so try using the COMPILE command in 2007 to recompile the.shp file into a new.shx file. I don't know but maybe there is a difference between.

A Shapefile (SHP) is a digital vector storage format for storing geometric location and associated attribute information. Shapefiles (SHP) are simple because they store the primitive geometric data types of points, lines, and polygons. They are of limited use without any attributes to specify what they represent. Therefore, a table of records will store properties/attributes for each primitive shape in the Shapefile. Shapes (points/lines/polygons) together with data attributes can infinitely create many representations about geographic data

Shapefile to CAD

When converting SHP to CAD files the following considerations have to be taken into account:

· 3D features in the Shapefiles must be converted to 3D CAD objects (Points, Polylines, etc.) or to pseudo-3D CAD objects considering the elevation and the thickness of the objects
· When importing Point features It is very interesting to use complex CAD objects (such as Block references in AutoCAD) which can include variable text information (such as Attributes in AutoCAD)
· We must also consider the importing of complex Polygon features, which may include more than one internal or external ring, and convert them to appropriate CAD objects (such as Hatches in AutoCAD)
· What is also very interesting is the automatic distribution of the objects across the drawing depending on the values associated to the Shapefile features (using, for example Layers in AutoCAD)
· Finally, we consider some systemableto import anddisplay the features alphanumeric data (such as Extended Entity Data -EED or XDATA- in AutoCAD)

Import shapefile into AutoCAD – Data in the XDATA viewer palette

Import Shapefiles to AutoCAD

Spatial Manager™ for AutoCAD lets you import graphic objects into AutoCAD from a large number of GIS sources including ESRI shapefile format

The application detects what type of information the shapefile contains to import (points, lines or polygons) and presents to the user only those import options that are valid for that type of object. In the case of polygonal objects, the closed borders can be automatically filled by using AutoCAD Hatches, or import not only the border of the polygons but also their centroids by using Points or AutoCAD Blocks

For any imported table or file, regardless of its format or type, it is possible to automatically subdivide the imported objects into various AutoCAD Layers, according to the value of a field in the source data table

How to import shapefiles into AutoCAD

This example shows how to import Shapefiles into AutoCAD using Spatial Manager™ for AutoCAD. In the video you can see how an SHP Parcels file is imported onto a drawing, which already contains other Objects belonging to a city

The import process fills every Parcel using a Solid transparent Hatch, distributes every Parcel into new Layers according to the zones to which each Parcel belongs and applies random colors for every new Layer created. The alphanumeric data of every Parcel is also imported using AutoCAD Extended Entity Data (EED or XDATA)!

This format contains Autodesk® RealDWG by Autodesk, Inc.1Copyright © 1998-2006 Autodesk, Inc. All rights reserved.

This chapter is about the AutoCAD DWG/DXF reader/writer and AutoCAD feature types supported by FME. For AutoCAD DWF information, please refer to the Autodesk AutoCAD DWF Reader/Writer.

FME can read and write files used by Autodesk® AutoCAD® and compatible systems. AutoCAD drawing files consist of drawing settings and configuration, as well as a series of entities, or graphic elements, organized into layers.

FME provides broad support for many AutoCAD entity types and options. FME reads and writes AutoCAD file versions up to and including 2018.

When AutoCAD data is output, header information may be copied from a supplied template, or prototype, file.

Reader Overview

The AutoCAD reader first reads the header and table information from the drawing file being processed, and caches information on blocks, shape files, layers, linetypes, and applications. These cached values are referenced by entities throughout the file and are needed when processing the entities.

The reader then extracts entities, one at a time, from the entity section of the drawing file and passes them on to the rest of FME for processing. Complex entities such as polylines and inserts are extracted as single FME features. If the entity has attribution stored as extended entity data, then this is also read and placed in the feature.

When the AutoCAD reader encounters an entity type it does not know how to process, it simply sets the entity type of the feature and returns it. This feature is then logged by the FME correlation subsystem and the reader moves on to the next entity.

Error Reading Shape File Autocad Download

The AutoCAD reader consists of Source Autodesk AutoCAD DWG/DXF File(s).

Import Shape Files Autocad

Writer Overview

The AutoCAD writer provides the following capabilities when writing AutoCAD files.

  • User-defined Linetypes: New linetypes can be defined in the workspace. These linetypes can then be referenced by features being written to the AutoCAD file.
  • User-defined Layers: Users must define the layers into which features are stored. The layers can also define the attributes to be stored within the feature.
  • Copy Block Definitions: Often users have existing AutoCAD drawing files that contain block definitions they want the translated data to carry. Specifying the Template File parameter results in block definitions being copied from the existing file to the output DWG/DXF file. These blocks can then be referred to by insert entities.
  • Copy Linetypes: Predefined linetypes within existing DWG/DXF files are copied making them available for use by features being written to the destination file. Specifying the Template File parameter in the mapping file results in the predefined linetypes being copied from the template file to the output drawing file. Feature entities can then refer to these linetype definitions.
  • Copy Layer Definitions: Layer definitions within an existing DWG/DXF file identified by Template File parameter enable layer definitions to be copied to the destination data set and then referenced.
  • Copy Shape Header Definitions: Shape header definitions are also copied from the file specified by the Template File parameter.
  • Automatic Block Creation: When a feature is passed to the writer that cannot be written as a single AutoCAD entity, such as a donut polygon, the writer automatically defines an AutoCAD block and inserts entities necessary to represent the feature. If a block is already defined with that name, either through previous block creation or through existence in the template file, then the existing block definition will be used and the multi-part feature will be added at an insert point calculated from the feature geometry. If the autocad_block_insert_[xyz] attributes are specified, they will be used to specify an insert point for the new block reference.
  • Multi-version support: The AutoCAD DWG/DXF writer supports files that are compatible with any current AutoCAD release.
  • Flexible Attribute Support: Attribute information can be written through the use of the autocad_attributes attribute being set as shown in the following table.

autocad_attributes value

Description

extended_entity_data

This results in the attribution being written to the extended entity for the feature.

insert_attributes

This results in the writer creating an insert entity for each feature and storing all attributes with the insert entity. The insert entity refers to a block that contains the geometry of the output feature.

external_attributes

This is the default value. Limited attributes are written to the AutoCAD file. This is useful if the attributes are being stored in an external database. Note that list formatted extended entity data as created by the AutoCAD reader may still be written.

When creating AutoCAD files, the AutoCAD writer first defines the linetypes and layers defined within the workspace. The writer then reads in a template file, if specified, and copies the linetypes, layer definitions, shape file header information, and block information from the template file to the output dataset.

Autocad Compiled Shape File

The AutoCAD writer then outputs each feature it is given to the output file in the appropriate entity type.

Autocad Shape File Format

When writing an AutoCAD file, the format of file output is determined as follows:

  • If the file name contains .dwg or .DWG, then the output dataset is written in the ACAD format.
  • If the file name contains .dxf or .DXF, then the output dataset is written in DXF format.
  • If an error exists in the workspace, the translation is halted.
  • XRecord data Support: Currently the AutoCAD DWG/DXF writer supports the creation of XRecord writing to the extension dictionaries of written entities.

Autocad Shape Files

The AutoCAD writer uses the above rules to enable the same underlying FME mapping file to be used to create both DXF and DWG output files. Users can specify their choice simply by changing the suffix of the output file being produced.





broken image