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

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

The sample command demonstrates creating four leaders with different properties. The command creates four leaders and then prints the following information about the created leader objects:

  • Plane
  • Normal
  • Scale factor
  • Arrowhead status
  • Arrowhead type
  • Line type
  • Number of vertices
  • Points
  • Line color
  • Annotation type
  • Annotation size
  • Vertical text position
  • Text gap

The four leader objects have different annotation types:

  • First leader has a 'block reference' annotation.
  • Second leader has a 'text' annotation.
  • Third leader has a 'tolerance' annotation.
  • Fourth leader has no annotation.

See Also

Working with Leaders

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