View Full Version : units of conversion
bgillcrist
27-01-2009, 08:04 AM
I used CAD2Shape V4.0 to convert an autocad LT drawing of a building to a shapefile (Polyline). I successfully used mexshape (free libraries) to read the shapefile into Matlab. I plotted the building drawing in matlab after reading it in. I now want to plot a route on the matlab figure of the building, however, my coordinates do not line up. In autocad I have set the lower left corner of the building as the origin and my route is based on this origin. The x,y coordinates from CAD2Shape are totally different. Any insights in to what the x,y information is from CAD2Shape?
PeterG
27-01-2009, 07:41 PM
Hi,
In autocad I have set the lower left corner of the building as the origin and my route is based on this origin. The x,y coordinates from CAD2Shape are totally different. Any insights in to what the x,y information is from CAD2Shape? By default CAD2Shape outputs WCS (World Coordinates System) coordinates rather than UCS (User Coordinates System) coordinates (on the assumption that a UCS is usually set for convenience of working with the drawing, and that the underlying real world coordinates are the true values.) I suspect that you used a UCS to move the origin to the corner of the building. If so, no problem, in 'CAD2Shape-->Settings' select 'Output in UCS Coordinates'.
Hopefully it will fix it!
best regards,
Software Support
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.