PDA

View Full Version : Polygon export problem


giuseppe
05-10-2006, 07:55 AM
Hi,
I've used the trial version of cad2shape to produce shp file from dwg. Into the dwg file there are polylines and polygons in separeted layers. By using the GUI, I found no problem to export Poligons, but if I use the command line in a bach procedure I get no polygons but if i change the flag /SHP=POL to /SHP=ZPOL, I got my results... unfortunately I need Polygons not Zpolygons. Is it a bug, or there is something wrong in my test?

Linked to a Polygonn layer in the dwg file I've a table which carryies a simple text string, can I export this data in the .shp file too ?

Thanks in advance

Giuseppe

GuthCAD Software Support
05-10-2006, 04:21 PM
Hi Giuseppe,

It appears to be a bug. We are working on it. As a workaround try setting all values for entries within the [Polygon] section of the C2SBATCH.INI configuration file to '1'.

best regards,
Software Support

giuseppe
05-10-2006, 09:20 PM
I've tryed to set to 1 some graphical objects in .ini file, but I've obtained the same negative results. I'll try to set all as suggested. Anyway If it can be useful, when I set the flag /SHP=POL, the entry seems to be ignored and cad2shape tryies to generate every other graphical object even if not present. May I advise you to test the following test-cases?

1) Dwg file -> (flat) polygon layer -> translate into Polygon
2) Dwg file -> (flat) polygon layer -> translate into Poliline
3) Dwg file -> (simple) poliline layer -> translate into Polygon
4) Dwg file -> (simple) poliline layer -> translate into Polyline

Is there difference between Poliline and 2D Poliline ?

Thanks a lot

Best regards


Hi Giuseppe,

It appears to be a bug. We are working on it. As a workaround try setting all values for entries within the [Polygon] section of the C2SBATCH.INI configuration file to '1'.

best regards,
Software Support

GuthCAD Software Support
06-10-2006, 04:29 AM
Hi Giuseppe,

We have done more testing. We think that everything is actually working correctly. What I initially thought was a bug was simply caused by my test having the command line parameters the wrong way around. I.e. CAD2Shape requires the filename to be the last parameter. So:

Yes: cad2shape /SHP=POL /E=4095 drawing.dwg
No: cad2shape drawing.dwg /SHP=POL /E=4095

(/E=4095 switch means 'translate all entities'.)

We will put a check in the next software version to throw up a warning message if it detects that the parameters may be in the wrong order.

If you believe that you have the parameters in the correct order, and are still not getting the correct result, please of course let us know.

Is there difference between Polyline and 2D Polyline ?Yes, a 2D polyline has all Z values at the same elevation, whereas a Polyline (3d) may have vertices with varying Z values.

best regards,
Paul Guthrie