Skip to main content
Question

Mass convert autocad splines to polylines

  • January 27, 2020
  • 4 replies
  • 520 views

Forum|alt.badge.img

We are converting 100s of DGNs to DWGs. All of our complex shapes (that have an arc as a component of that shape) in DGN are being converted to splines in DWG. We want to drop all splines to polylines, while still maintaining the arc information. Is there a way in FME to do that?

4 replies

Forum|alt.badge.img+1
  • January 27, 2020

Have you tried the ArcStroker transformer? This is probably what I would try first:

Converts arc features into lines replacing the feature geometry with a series of edges interpolated along the arc boundary. Ellipse features are converted into polygons by interpolating edges along the elliptical boundary.


Forum|alt.badge.img
  • Author
  • January 28, 2020

@jnfung - We want to keep the arcs though. We need to keep the radius information on them. I can get them to lines just fine, but that won't work for us, we need to keep the arc information.


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • January 28, 2020

Hi @candimk,

FME should be reading the DGN complex shapes with Path boundaries, which can contain a mixture of lines and arcs. 2D paths will be written to DWG as LWPolylines, that can include arcs, but 3D paths will be stroked into 3DPolylines.

If your complex shapes are planar, you can use a ElevationExtractor to save the elevation to the attribute 'autocad_elevation', then a 2DForcer to convert them to 2D. These will be written to DWG as LWPolylines with elevation.


Forum|alt.badge.img
  • Author
  • January 29, 2020
daveatsafe wrote:

Hi @candimk,

FME should be reading the DGN complex shapes with Path boundaries, which can contain a mixture of lines and arcs. 2D paths will be written to DWG as LWPolylines, that can include arcs, but 3D paths will be stroked into 3DPolylines.

If your complex shapes are planar, you can use a ElevationExtractor to save the elevation to the attribute 'autocad_elevation', then a 2DForcer to convert them to 2D. These will be written to DWG as LWPolylines with elevation.

Hi @daveatsafe - I was hoping it would be that easy. When I just do a straight conversion in FME or out of MicroStation itself, the resulting features turn into polylines with the Arcs dropped to lines (I did verify that the drop complex chains/shapes was turned off). These are 2D microstation drawings, so I shouldn't have to worry about elevations.

 

The closest I can get is to drop the complex chains/shapes, then use snapper and LineCombiner to build those polylines back based on level, however that usually only connects one or two lines, not the whole thing. But it does keep the arcs. I was hoping to have the best of both worlds.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings