In different Country Kits in AutoCAD Map3D you have different line tables, for example WA_LINE, GA_LINE (prefix depends what kind of utility you are working with) and there is SDO_GEOM type attributed called GEOM. Lets say we have 100000 lines. But what line do you want to draw in AutoCAD?
Aaah, thank you. So, as you answered, let's draw line with unique indentificator FID = 48685.
- Then you can use this SQL script:
- Output will look like this:
- Now easy part starts. Copy coordinates.
- Start AutoCAD. Yeah, you are good :)
- Write _pline command.
- And paste your coordinates.
- Good job! I should hire you. Beautiful polyline:
select l.FID,trim(replace(WM_CONCAT( replace(to_char(X.X),',','.') || ',' || replace(to_char(X.Y),',','.') || ' ' ),' ,',' ') ) as COORDINATES from TC_LINE l, table(SDO_UTIL.GETVERTICES(l.geom)) X where FID=48685 group by l.FID;
No comments:
Post a Comment