Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 700
  • Last Modified:

How can I use coordinate information in Microsoft excel to create AutoCAD objects

I have a database that lists: the x,y coordinate; the length; width; and height of a number of 6 sided block objects.  Is there a way to create the block objects in AutoCAD so that I do not have to manually input each individual object.  

Each object has a unique identification number. I would also like to use the database queries to identify objects in AutoCad.
0
sleeper43
Asked:
sleeper43
  • 3
  • 2
1 Solution
 
darrenmcwiCommented:
This should be fairly easy to do. Do the blocks have attributes to stort the I'd numbers?

Are the numbers of attributes in each block the same or does the attribte that will hold the I'd in the same order across blocks?
0
 
darrenmcwiCommented:
This should be fairly easy to do. Do the blocks have attributes to stort the I'd numbers?

Are the numbers of attributes in each block the same or does the attribte that will hold the I'd in the same order across blocks?
0
 
sleeper43Author Commented:
The blocks have unique ID#.  The attributes are:
ID#, ID
Northwest Corner Easting Coordinate, NWC_E
Northwest Corner Northing Coordinate, NWC_N
Northeast Corner Easting Coordinate, NEC_E
Northeast Corner Northing Coordinate, NEC_N
Southwest Corner Easting Coordinate, SWC_E
Southwest Corner Northing Coordinate, SWC_N
Southeast Corner Easting Coordinate, SEC_E
Southeast Corner Northing Coordinate, SEC_N
Elevation, ELEV
Depth, DEPTH
0
 
darrenmcwiCommented:
There are a couple options. AutoCAD's DBConnect functionality will allow you to link a database directly to things in AutoCAD. I'm not an expert here but have tinkered with it a little. Keep in mind you won't be able to do this with an Access database on a 64-bit platform as Microsoft is dropping their support of the Jet DB engine on 64-bit.  You can use SQL, etc. however.

The other option is to export the points from the database into a script file and have te script file insert the blocks qand feed thhe coordinate data to the block's insertion location, attribute fields etc. You might even just need to dump the db info into a text file and massage it into a script file.

You could also do some custom programming in AutoCAD to eithter read the info directly from the database or a file it exports, and insert the blocks. This is likely the best option if you need to routinely do this and DBConnect is gonig to cause you issues for various reasons. If you're not familiar with AutoCAD programming, there's a number of people doing this professionaly or as side-line work that you could contract to. Who you're looking for will vary depending on if you'll want someone to write a program that directly interfaces with the DB vs a quick and dirty AutoLisp routine that reads from an exported file.

I use to do this type of work and sometimes occasionaly still do but typically don't have the time for anything of significant effort. If you need some names, I can gladly refer you to some people that can do this.
0
 
sleeper43Author Commented:
The response essentially stated that the desired programming can be done but that it would require contracting someone to do the work.  I was hoping for something a little more detailed.  The question is probably to complex to answer completly in this type of forum.  I appriciate the advise that was provided.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now