Drawings SDK Developer Guide > Working with .dwg Files > Working with Entities > Working with Specific Entitites > Working with Polylines > Example of Working with Polylines
Example of Working with Polylines

A sample command of working with polylines is located in the Drawing\Examples\DevGuideCommands\ subdirectory of the ODA installation folder.

The sample command demonstrates creating polylines and modifying and displaying its properties. This command adds polyline objects to a database, then prints the following information about the created polylines objects:

  • Open status
  • Periodic status
  • Polyline type
  • Polyline plane
  • Polyline normal (for 2D polylines only)
  • Polyline elevation (for 2D polylines only)
  • Polyline thickness (for 2D polylines only)
  • Number of vertices
  • Coordinates of each vertex
  • Type of each vertex
  • Length from the beginning for each vertex
  • Start width of each segment (for 2D polylines only)
  • End width of each segment (for 2D polylines only)
  • Bulge of each segment (for 2D polylines only)

This command adds polyline objects to the database, which show specific types of polylines:

  1. First polyline shows a 2D Simple Polyline.
  2. Second polyline shows a 2D Curve-Fit Polyline.
  3. Third polyline shows a 2D Cubic Spline-Fit Polyline.
  4. Fourth polyline shows a 2D Quadric Spline-Fit Polyline.
  5. Fifth polyline shows a 3D Simple Polyline.
  6. Sixth polyline shows a 3D Cubic Spline-Fit Polyline.
  7. Seventh polyline shows a 3D Quadric Spline-Fit Polyline.

See Also

Working with Polylines

Overview of Two-Dimensional and Three-Dimensional Polylines

Types of Polylines and Vertices

Specific Properties of Polylines

Computed Properties of Polylines

Editing Vertices of Polylines

Editing Segments of Polylines

Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.