Jump to content

Import Survey points to Attributes


SSmallwood

Recommended Posts

Using AutoCAD 2004 full version.

 

I am trying to import a survey into AutoCAD, and my client requires Attribute points. Normally we do not use attribute points, and I'm not having any luck importing the txt file that I created. The AutoCAD help screed does not help at all with this procedure.

 

Assuming that I don't know the first thing about attributes (I now know a little, but I'm afraid that it might be wrong), but I know AutoCAD well (for what I do as a surveyor) can anyone walk me through the process of creating an attribute, and importing bulk amounts of data into it. The data would include:

 

(x) coord, (y) coord, z(coord) for the insertion point of the block

Name, Feature_Code, Elev for the Tagged data needing to appear beside a 3d-point representing the x,y,z coords.

 

Using Land Desktop 3 I am able to create AECC points, but I do not have any Land Desktop experience at all, so I would rather stay away (I have no real need for it).

 

I do not have any 3rd party software that I know of that creates attribute points from a survey file, except for Trimble Geomatics Office, but it does not give me the format or all the data that I require (maybe someone is familiar with this software to setup the export that I need?).

 

Any help would be most appreciated.

Link to comment
Share on other sites

Your requested point data is a non-standard so you probably won't find any lisp routines ready to go. You don't need a point number or other unique indentifier? If you posted this in the lisp/customization forum, with a little more info someone will probably assist you.

 

It would help if you took a few minutes to teach yourself about creating a block with attributes, it's not too difficult & should be part of any profficient AutoCAdder's repertoire. Then you could create the point blocjk & attribute layout they way you want it, and a lisp programmer could use that information to create the routine to upload the text file data to create all the point inserts.

Link to comment
Share on other sites

  • 4 years later...

I think that my survey points importer is probably easy to customize the way you want. Just download it and try to figure out the configuration sections below.

http://www.hawsedc.com/gnu/pointsin.php

 

 

This first area tells how to process the information and put it into attributes blocks.

  ;; This line tells POINTSIN to put all points (nodes, not attributes blocks) at their correct elevation.
 '
  (("XYZNAMES" "EAST" "NORTH" "ELEV")
   ;; This line puts all points at 0 elevation
   ;; '("XYZNAMES" "EAST" "NORTH" nil)
   ;; ========================================================================
   ;; The DESCNAME list names the point description (for use in layer names)
   ("DESCNAME" . "DESC")
   ;; ========================================================================
   ;; The TAGNAMES list tells POINTSIN which block attribute tags
   ;; need to receive the data in the file fields.
   ;; The order of the attribute fields in the list doesn't matter.
   ;; If any of the attributes are to receive coordinate values (x, y, or z),
   ;; the coordinate names in the XYZNAMES list must also match the attribute tag.
   ;; Examples:
   ;; This list tells POINTSIN to fill in the "POINT", "DESC", and "ELEV" attributes of each block insertion.
   ;;("TAGNAMES" "POINT" "DESC" "ELEV")
   ;; This list tells POINTSIN to fill in the "NORTH", "EAST", "POINT", "DESC", and "ELEV" attributes of each block insertion.
   ("TAGNAMES" "NORTH" "EAST" "POINT" "DESC" "ELEV")
  )

You also can specify any file format you want.

 

  ;;Show the various formats
 (PROMPT
   "\nSelect a file format:
   1. PNEZD (comma delimited)
   2. PNEZD (tab delimited)
   3. PNEZD (white-space delimited)
   4. PENZD (comma delimited)
   5. PENZD (tab delimited)
   6. PENZD (white-space delimited)
" )
 ;;Set the allowed inputs and get one from user.
 (INITGET "1 2 3 4 5 6")
 (SETQ OPTION (GETKWORD "\n\n1/2/3/4/5/6: "))
 ;;Define the various formats by calling out the fields in order,
 ;;then specifying the field delimiter and the comment delimiter(s)
 ;;The field delimiter is a one-character string.
 ;;The comment delimiter is an AutoCAD style wild card string
 (SETQ STDCOMMENT ":,`#,;,'")
 (COND
   ((= OPTION "1")
    (LIST
      (LIST "POINT" "NORTH" "EAST" "ELEV" "DESC")
      ","
      STDCOMMENT
    )
   )
   ((= OPTION "2")
    (LIST
      (LIST "POINT" "NORTH" "EAST" "ELEV" "DESC")
      "\t"
      STDCOMMENT
    )
   )
   ((= OPTION "3")
    (LIST
      (LIST "POINT" "NORTH" "EAST" "ELEV" "DESC")
      "W"
      STDCOMMENT
    )
   )
   ((= OPTION "4")
    (LIST
      (LIST "POINT" "EAST" "NORTH" "ELEV" "DESC")
      ","
      STDCOMMENT
    )
   )
   ((= OPTION "5")
    (LIST
      (LIST "POINT" "EAST" "NORTH" "ELEV" "DESC")
      "\t"
      STDCOMMENT
    )
   )
   ((= OPTION "6")
    (LIST
      (LIST "POINT" "EAST" "NORTH" "ELEV" "DESC")
      "W"
      STDCOMMENT
    )
   )
 )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...