Setting the Display Options for Annotations

Annotation Preference properties enable you to control the display of annotations in the Geometry window. You access the properties using the following command entry. The properties are described below as well as examples of the use of certain properties.

Graphics.ViewOptions.AnnotationPreferences

Available display properties include:

PropertyThe Property Gets or Sets the Visibility of...
ShowAllAnnotationsAll annotations.
ShowCustomAnnotationsUser-defined annotations.
ShowLabelsAnnotation labels.
ShowPointMassesPoint Mass annotations.
ShowBeamsBeam annotations.
ShowSpringsSpring annotations.
ShowBearingsBearing annotations.
ShowCracksCrack annotations.
ShowForceArrowsForce arrows on surface reaction.
ShowBodyScopingsBody scoping annotations.
ShowMeshAnnotationsMesh node and mesh element annotations in Named Selection displays.
ShowNodeNumbersMesh node numbers in Named Selection, Mesh, and Result displays.
ShowElementNumbersMesh element numbers in Named Selection, Mesh, and Result displays.
ShowNamedSelectionElementsElements for all items in Named Selections group.

Available sizing properties include:

PropertyDescription
PointMassSizeGets or sets the size for point mass annotation. (Small -Large; 1-100).
SpringSizeGets or sets the size for spring annotation. (Small - Large; 1-100).

The following methods enables you to specify annotation node and element numbering.

PropertyDescription
SetNodeNumberingSets the begin, end, and increment values to display node numbering.
SetElementNumberingSets the begin, end, and increment values to display element numbering.

Code Examples

This code example sets the visibility of all annotation labels to false and the Point Mass annotation to true.

Graphics.ViewOptions.AnnotationPreferences.ShowLabels = False
Graphics.ViewOptions.AnnotationPreferences.ShowPointMasses = True

This code sets the size of Point Mass sphere. The supported size range is between 1-100. Although not entered as a value, this sizing is also available using the Preferences option in the Annotation group on the Display tab.

Graphics.ViewOptions.AnnotationPreferences.PointMassSize = 20
Point Mass Size = 100Point Mass Size = 20

This code example sets the visibility to show node numbers to true and displays the first 76 node numbers incremented by a value 4.

Graphics.ViewOptions.AnnotationPreferences.ShowNodeNumbers = True 
Graphics.ViewOptions.AnnotationPreferences.SetNodeNumbering(1,76,4)