Solved

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

Posted on 2009-07-08
7
691 Views
Last Modified: 2012-05-08
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
Comment
Question by:sleeper43
  • 3
  • 2
7 Comments
 
LVL 11

Expert Comment

by:darrenmcwi
ID: 24839098
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
 
LVL 11

Expert Comment

by:darrenmcwi
ID: 24839243
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
 

Author Comment

by:sleeper43
ID: 24926563
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
 
LVL 11

Accepted Solution

by:
darrenmcwi earned 500 total points
ID: 24935804
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
 

Author Closing Comment

by:sleeper43
ID: 31665797
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question