Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

CONVERTPOLY problem

autoid374ceb4990
Advocate

CONVERTPOLY problem

autoid374ceb4990
Advocate
Advocate

I have a R14 DWG file that has about 400 POLYLINEs.  I am trying to convert them to LWPOLYLINEs using CONVERTPOLY.  When I select any of the polylines I get a message saying "0 polylines converted".  If I draw a new POLYLINE in this drawing the CONVERTPOLY command works properly and converts it to a LWPOLYLINE.  This drawing was created by a non Autodesk application.  I have attached a drawing with one of the plines.  I have tried opening the drawing with PLINETYPE set to 0,1,2 and no change.  Any suggestions as to how to convert these plines to LWPOLYLINEs?   And yes I am using R14.

0 Me gusta
Responder
1.277 Vistas
24 Respuestas
Respuestas (24)

autoid374ceb4990
Advocate
Advocate

I started using AutoCAD with version 9 and wrote software (C  code under DOS) that created DXF files of my survey maps. My R14 version of PEDIT does not have a MULTIPLE option, but I solved the problem by writing a routine (ARX) that reads the polylines and writes them back with the 70 code set to 0 (zero).  After that the CONVERTPOLY command works properly.  On this particular drawing the conversion reduced the file size from 128 MEG to 34 MEG.

0 Me gusta

autoid374ceb4990
Advocate
Advocate

I started using AutoCAD in version 9.  I wrote programs in 'C' code under DOS  to write DXF files of survey maps that would than be transferred to AutoCAD to add the title blocks and other notes.  My R14 does not have a MULTIPLE option in PEDIT, but I solved the problem by writing a routine (ARX code) to read the POLYLINEs and write them back with the 70 code set to 0. This allows the CONVERTPOLY command to convert them to LWPOLYLINEs.  On this particular drawing it reduced the file size from 128 MEG  to 34 MEG.

0 Me gusta

AllenJessup
Mentor
Mentor

I'm glad you found a solution. Now you have me wondering what I'm miss-remembering from R9. We used to get maps where all the contours were single line segments. Some contours with hundreds of segments. We had to join all the segments into one polyline.

Another issue is that many of the people specing the deliverables didn't understand that 2D polylines could have an elevation. So they would specify 3D polyline contours to be provided.

BTW. Very creative solution. I haven't delved into DXF code in years.

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Me gusta

autoid374ceb4990
Advocate
Advocate

Only hundreds of line segments?  Some of the polylines in the drawing I was having the problem with were like 7000-8000 vertices.  I had a really old LISP routine that worked on POLYLINEs and it crashed with the really long POLYLINEs.  The only reason I resorted to DXF files was so that I could find the codes that were causing the problems.  I didn't get into creating contours and earthwork volumes until R14 and ARX programming.  One client asked me to write a program to connect his Geodimeter total station to AutoCAD so he could collect survey points and draw line work in the field.

0 Me gusta

AllenJessup
Mentor
Mentor

Hundreds. Thoustands. I don't think we ever counted. I think now I remember we had to do one contour line at a time. But what we discovered was you could select All and only those lines that had connecting endpoints would be added. Sound like where I worked in the '80s. Right down to the Geodimeter. But I was my boss's son writing the programs.

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Me gusta