<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem Importing Shapes to CAD in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/problem-importing-shapes-to-cad/m-p/116374#M822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a major problem importing my collected shapefiles into AutoCAD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use AutoCAD Map 2002, and I know all about importing. I need to import thousands of files and have written lisp routines to do so. To use any other software would add a step which will add huge time wasting. So I want to know what is wrong with my set up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Often, suddenly the set of files (consisting of about a dozen different feature layers) won't import properly. That is, only a couple of one feature will import and say - one record from another feature. If I do them one at a time, I can usually get one record from all the different shapes/features, otherwise, as soon as it hits a bad one, it stops.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-The CAD files are clear of any object data - therefore, it is not a conflict of tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-There is no error message when I perform the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-I check the dbf file with a simple editor/viewer and I see that there are several records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can use a crappy 3rd party converter and all records transfer (but all my numerical values get expressed to multiple precisions and Boolean values come out different - which would require tones of lisp re-writing - and that extra software step)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-I have tried importing the shapes as both points with data and as predefined blocks; same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What on earth could cause this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The temporary fix is to recreate all my shapefiles with ArcPad's 'new shapefile' feature (I keep my existing VBS script and APL files).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But then, suddenly the problem comes again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it something to do with deleted records in the files or something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would a newer version of AutoCAD Map solve this problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2013 11:36:23 GMT</pubDate>
    <dc:creator>AaronAmbrose</dc:creator>
    <dc:date>2013-05-29T11:36:23Z</dc:date>
    <item>
      <title>Problem Importing Shapes to CAD</title>
      <link>https://community.esri.com/t5/arcpad-questions/problem-importing-shapes-to-cad/m-p/116374#M822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a major problem importing my collected shapefiles into AutoCAD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use AutoCAD Map 2002, and I know all about importing. I need to import thousands of files and have written lisp routines to do so. To use any other software would add a step which will add huge time wasting. So I want to know what is wrong with my set up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Often, suddenly the set of files (consisting of about a dozen different feature layers) won't import properly. That is, only a couple of one feature will import and say - one record from another feature. If I do them one at a time, I can usually get one record from all the different shapes/features, otherwise, as soon as it hits a bad one, it stops.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-The CAD files are clear of any object data - therefore, it is not a conflict of tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-There is no error message when I perform the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-I check the dbf file with a simple editor/viewer and I see that there are several records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can use a crappy 3rd party converter and all records transfer (but all my numerical values get expressed to multiple precisions and Boolean values come out different - which would require tones of lisp re-writing - and that extra software step)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-I have tried importing the shapes as both points with data and as predefined blocks; same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What on earth could cause this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The temporary fix is to recreate all my shapefiles with ArcPad's 'new shapefile' feature (I keep my existing VBS script and APL files).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But then, suddenly the problem comes again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it something to do with deleted records in the files or something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would a newer version of AutoCAD Map solve this problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 11:36:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/problem-importing-shapes-to-cad/m-p/116374#M822</guid>
      <dc:creator>AaronAmbrose</dc:creator>
      <dc:date>2013-05-29T11:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Importing Shapes to CAD</title>
      <link>https://community.esri.com/t5/arcpad-questions/problem-importing-shapes-to-cad/m-p/116375#M823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I have found the cause, but I still have an issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These bad files seem to come about when I use a little routine that I have for deleting all the features in a map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the code for the sub function: The main Sub merely loops thru all of the shapes and sends the name of the shape file to this sub-routine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, somehow this is causing shape file records to be that they don't import into my AutoCAD Map 2002.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And again, you check the dbf files themselves and all the expected records are there, but they won't import!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I really don't want to get rid of this master 'delete' sub.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, can anyone tell me why this function is causing this problem, or better yet, what I can alter in it to stop causing the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...btw, if I delete a feature manually with ArcPad's delete feature function, no issues!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Function Getridothem(shape)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; dim objRS, objLyr&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Set objLyr = Map.Layers(shape)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if (objLyr is Nothing) then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; objLyr.Editable = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; set objRS = objLyr.records&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; If Not objRS.recordcount = 0 Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; objRS.Movefirst&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Do while not objRS.eof&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objRS.Delete&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objRS.MoveNext&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Loop&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set objRS = Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; End if&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; set objLyr = Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Function&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jun 2013 19:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/problem-importing-shapes-to-cad/m-p/116375#M823</guid>
      <dc:creator>AaronAmbrose</dc:creator>
      <dc:date>2013-06-01T19:41:30Z</dc:date>
    </item>
  </channel>
</rss>

