AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Exporting Shape to .dwg

21 REPLIES 21
Reply
Message 1 of 22
Anonymous
2645 Views, 21 Replies

Exporting Shape to .dwg

Anonymous
Not applicable

Hey guys and gals.

 

Im in a bit of a pickle. I am trying to export a shape files to .dwg, but it comes out crooked. The polylines ar ok, but the hatch is wrong in some areas. The shape is an export of water depths from SMS. 

I could export it as a cad, but i need to make a colour style for various depths in map or civil, then export it to .dwg for final drawing editing and ploting. I have found a rough workaround - I simply make the final plan in civil, but it takes much longer than in regular autocad.

 

Exported .dwg file:

 

export.PNG

Imported file in map 3d or civil 3d:

shape.PNG

0 Likes

Exporting Shape to .dwg

Hey guys and gals.

 

Im in a bit of a pickle. I am trying to export a shape files to .dwg, but it comes out crooked. The polylines ar ok, but the hatch is wrong in some areas. The shape is an export of water depths from SMS. 

I could export it as a cad, but i need to make a colour style for various depths in map or civil, then export it to .dwg for final drawing editing and ploting. I have found a rough workaround - I simply make the final plan in civil, but it takes much longer than in regular autocad.

 

Exported .dwg file:

 

export.PNG

Imported file in map 3d or civil 3d:

shape.PNG

Labels (2)
21 REPLIES 21
Message 2 of 22
ChicagoLooper
in reply to: Anonymous

ChicagoLooper
Mentor
Mentor

I don't particularly care for your workflow.

 

You can keep the shapefile as a shapefile then create a TINN surface in Civil3D. For the TINN surface definition, you can use the shapefile itself. For the TINN surface style, use the style named Elevation Banding (2D). This surface style will allow you to apply color to the various elevations when you use Elevation Analysis. The elevation colors are based on your contour intervals and the contour intervals are determined by you. All this can be done in C3D.

 

Doing what you have described in vanilla AutoCad is watering down, even ignoring, the data in your shapefile. In today's AutoCad world, 'Data is King.'

 

1.png

 

2.png

 

 

Civil3D can also create a legend at the same time you're running elevation banding.

 

3.png

Chicagolooper

EESignature

I don't particularly care for your workflow.

 

You can keep the shapefile as a shapefile then create a TINN surface in Civil3D. For the TINN surface definition, you can use the shapefile itself. For the TINN surface style, use the style named Elevation Banding (2D). This surface style will allow you to apply color to the various elevations when you use Elevation Analysis. The elevation colors are based on your contour intervals and the contour intervals are determined by you. All this can be done in C3D.

 

Doing what you have described in vanilla AutoCad is watering down, even ignoring, the data in your shapefile. In today's AutoCad world, 'Data is King.'

 

1.png

 

2.png

 

 

Civil3D can also create a legend at the same time you're running elevation banding.

 

3.png

Chicagolooper

EESignature

Message 3 of 22
АлексЮстасу
in reply to: Anonymous

АлексЮстасу
Advisor
Advisor

I also think Civil 3D do better.

 

But you set a task for CAD, and there is an option for it.

 

You probably do not see what you wanted because of the sequence of drawing objects.
If you give priority to the display of objects (light - the lowest priority, dark - the largest, lines - above all), then you will see the desired.
Try using lisp DOBT.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

I also think Civil 3D do better.

 

But you set a task for CAD, and there is an option for it.

 

You probably do not see what you wanted because of the sequence of drawing objects.
If you give priority to the display of objects (light - the lowest priority, dark - the largest, lines - above all), then you will see the desired.
Try using lisp DOBT.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 4 of 22
Anonymous
in reply to: АлексЮстасу

Anonymous
Not applicable

Thanks, it was a bit helpful, but as you can see in the picture below, actual hatches are not inside of polylines.

export2.PNG

0 Likes

Thanks, it was a bit helpful, but as you can see in the picture below, actual hatches are not inside of polylines.

export2.PNG

Message 5 of 22
ChicagoLooper
in reply to: Anonymous

ChicagoLooper
Mentor
Mentor

Yes....absolutely. And that is why you should not use your worlflow. Avoid your worlflow and you avoid the problem. Use Civil 3D for a presentation of elevtion data.

Chicagolooper

EESignature

Yes....absolutely. And that is why you should not use your worlflow. Avoid your worlflow and you avoid the problem. Use Civil 3D for a presentation of elevtion data.

Chicagolooper

EESignature

Message 6 of 22
Anonymous
in reply to: ChicagoLooper

Anonymous
Not applicable
I can do all this in C3D or MAP3D with shapefile already with style edditor (excluding legend) since I have created the shape polygons that represent specific depths.
"Doing what you have described in vanilla AutoCad is watering down, even ignoring, the data in your shapefile. In today's AutoCad world, 'Data is King.'" : This is exactly what I am trying to do 🙂 , since I need to attach shape files with finished project anyway and the info is there. Final drawing plans need to be presented in .pdf and for that, our drawers are much faster with vanilla AutoCad.
0 Likes

I can do all this in C3D or MAP3D with shapefile already with style edditor (excluding legend) since I have created the shape polygons that represent specific depths.
"Doing what you have described in vanilla AutoCad is watering down, even ignoring, the data in your shapefile. In today's AutoCad world, 'Data is King.'" : This is exactly what I am trying to do 🙂 , since I need to attach shape files with finished project anyway and the info is there. Final drawing plans need to be presented in .pdf and for that, our drawers are much faster with vanilla AutoCad.
Message 7 of 22
АлексЮстасу
in reply to: Anonymous

АлексЮстасу
Advisor
Advisor

How are you made hatches?

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes

How are you made hatches?

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 8 of 22
Anonymous
in reply to: АлексЮстасу

Anonymous
Not applicable
From shape file - shape file is made from polygons with matID that repreisents specific depth. When I export the shape as .dwg it turns polygons to polylines and hatches. Polylines are correct but hatches are not.
0 Likes

From shape file - shape file is made from polygons with matID that repreisents specific depth. When I export the shape as .dwg it turns polygons to polylines and hatches. Polylines are correct but hatches are not.
Message 9 of 22
ChicagoLooper
in reply to: Anonymous

ChicagoLooper
Mentor
Mentor

@Anonymous wrote:
<<.... When I export the shape as .dwg it turns polygons to polylines and hatches....>>

 

Please explain the procedure you are using to 'export the shape as .dwg.' What command are you using? 

Chicagolooper

EESignature


@Anonymous wrote:
<<.... When I export the shape as .dwg it turns polygons to polylines and hatches....>>

 

Please explain the procedure you are using to 'export the shape as .dwg.' What command are you using? 

Chicagolooper

EESignature

Message 10 of 22
Anonymous
in reply to: ChicagoLooper

Anonymous
Not applicable

mapexportcurrentmaptodwg

0 Likes

mapexportcurrentmaptodwg

Message 11 of 22
АлексЮстасу
in reply to: Anonymous

АлексЮстасу
Advisor
Advisor

1. Try MAPTOACAD.
2. You may have SHP data in latitude-longitude, i.e. line segments have negligible lengths. Therefore, distortions occur when creating hatches.

 

It would be nice to have an example of a piece of your data in SHP.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

1. Try MAPTOACAD.
2. You may have SHP data in latitude-longitude, i.e. line segments have negligible lengths. Therefore, distortions occur when creating hatches.

 

It would be nice to have an example of a piece of your data in SHP.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 12 of 22
Anonymous
in reply to: АлексЮстасу

Anonymous
Not applicable

Same happens whan I use maptocad - visual. I cant attach .shp file? only dbf

0 Likes

Same happens whan I use maptocad - visual. I cant attach .shp file? only dbf

Message 13 of 22
ChicagoLooper
in reply to: Anonymous

ChicagoLooper
Mentor
Mentor

@Anonymous wrote:

<<Same happens whan I use maptocad - visual. I cant attach .shp file?>>


 

Sorry, but you are not using a suitable workflow that's consistent with the requirements you outlined in the opening post. I suspect you have good elevation data. And as you already know, you are using a bad technique to to display good data. 

 

The MAPTOCAD command work if you just want to see what the command does. It will not accomplish the use color to represent elevation levels in your drawing. The elevations are in the shapefile's database file (dbf). A shapefile has a minimum of four components: shp, shx, dbf and prj. 

 

Is it possible for you to upload your shapefile's shp, shx, dbf and prj?

Chicagolooper

EESignature

0 Likes


@Anonymous wrote:

<<Same happens whan I use maptocad - visual. I cant attach .shp file?>>


 

Sorry, but you are not using a suitable workflow that's consistent with the requirements you outlined in the opening post. I suspect you have good elevation data. And as you already know, you are using a bad technique to to display good data. 

 

The MAPTOCAD command work if you just want to see what the command does. It will not accomplish the use color to represent elevation levels in your drawing. The elevations are in the shapefile's database file (dbf). A shapefile has a minimum of four components: shp, shx, dbf and prj. 

 

Is it possible for you to upload your shapefile's shp, shx, dbf and prj?

Chicagolooper

EESignature

Message 14 of 22
АлексЮстасу
in reply to: Anonymous

АлексЮстасу
Advisor
Advisor

I have the impression that AutoCAD when creating Hatches (pouring MPolygons) skips vertices for contours with a large number of vertices (if 10000-11000 incorrectly).
I.e. the problem is not about exporting, but about creating Hatches.
Maybe there are some settings?


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

I have the impression that AutoCAD when creating Hatches (pouring MPolygons) skips vertices for contours with a large number of vertices (if 10000-11000 incorrectly).
I.e. the problem is not about exporting, but about creating Hatches.
Maybe there are some settings?


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 15 of 22
Pointdump
in reply to: Anonymous

Pointdump
Mentor
Mentor

@Anonymous,
Welcome to the Autodesk Forums.
You can attach anything here if you zip 'em together first.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024

@Anonymous,
Welcome to the Autodesk Forums.
You can attach anything here if you zip 'em together first.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 16 of 22

АлексЮстасу
Advisor
Advisor

The polygon from this data is red. Yellow-green - cut red.
For red Hatch is built roughly. For yellow-green is built accurately.Hatches_problem.png


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes

The polygon from this data is red. Yellow-green - cut red.
For red Hatch is built roughly. For yellow-green is built accurately.Hatches_problem.png


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 17 of 22

Experimentally determined that for the correct creation of Hatches, the critical number of polygon vertices is 7500.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Experimentally determined that for the correct creation of Hatches, the critical number of polygon vertices is 7500.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 18 of 22
Anonymous
in reply to: ChicagoLooper

Anonymous
Not applicable

I understand that...but still, all I need to present is the area and colours that represent depth, without any elevation data. And since the drawing includes many other things it would be faster for my coworkers to work in vanilla AutoCad.

I have atachet the shape.

0 Likes

I understand that...but still, all I need to present is the area and colours that represent depth, without any elevation data. And since the drawing includes many other things it would be faster for my coworkers to work in vanilla AutoCad.

I have atachet the shape.

Message 19 of 22
Anonymous
in reply to: АлексЮстасу

Anonymous
Not applicable

Thanks. This means we probably won´t be able to use vanilla Autocad....

0 Likes

Thanks. This means we probably won´t be able to use vanilla Autocad....

Message 20 of 22
АлексЮстасу
in reply to: Anonymous

АлексЮстасу
Advisor
Advisor

Perhaps there are settings that allow you to remove these restrictions for the correctness of Hatches.
The Hatches theme itself is the "vanilla Autocad" theme, i.e. on its forum they can answer better...

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes

Perhaps there are settings that allow you to remove these restrictions for the correctness of Hatches.
The Hatches theme itself is the "vanilla Autocad" theme, i.e. on its forum they can answer better...

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report