Represents a center mark dimension.

Constructors

Centermark

#Since v6.0
public Centermark()
Constructs a new center mark dimension.

Centermark

#Since v8.0
public Centermark(Plane plane, Curve curve, double curveParameter)
Constructs a new center mark dimension.
plane (Plane)Dimension's plane.
curve (Curve)Curve used to determine the center mark's radius.
curveParameter (double)Parameter on curve used to determine the center mark's radius.

Centermark

#Since v8.0
public Centermark(Plane plane, Point3d centerPoint, double radius)
Constructs a new center mark dimension.
plane (Plane)Dimension's plane.
centerPoint (Point3d)Dimension's center point.
radius (double)Center mark's radius.

Centermark

#
protected Centermark(SerializationInfo info, StreamingContext context)
Protected constructor used in serialization.
info (SerializationInfo)
context (StreamingContext)

Properties

AlternateBelowLine

public bool AlternateBelowLine { get; set; }
inherited fromDimension

AlternateDimensionLengthDisplay

public DimensionStyle.LengthDisplay AlternateDimensionLengthDisplay { get; set; }
Alternate length display units and format
inherited fromAnnotationBase

AltLengthFactor

public double AltLengthFactor { get; set; }
inherited fromDimension

AltLengthResolution

public int AltLengthResolution { get; set; }
inherited fromDimension

AltLengthRoundoff

public double AltLengthRoundoff { get; set; }
inherited fromDimension

AltPrefix

public string AltPrefix { get; set; }
inherited fromDimension

AltSuffix

public string AltSuffix { get; set; }
inherited fromDimension

AltToleranceResolution

public int AltToleranceResolution { get; set; }
inherited fromDimension

AltUnitsDisplay

public bool AltUnitsDisplay { get; set; }
inherited fromDimension

AltZeroSuppression

public DimensionStyle.ZeroSuppression AltZeroSuppression { get; set; }
inherited fromDimension

AnnotationType

public virtual AnnotationType AnnotationType { get; }
Type of annotation
inherited fromAnnotationBase

ArrowBlockId1

public Guid ArrowBlockId1 { get; set; }
inherited fromDimension

ArrowBlockId2

public Guid ArrowBlockId2 { get; set; }
inherited fromDimension

ArrowFit

public DimensionStyle.ArrowFit ArrowFit { get; set; }
inherited fromDimension

ArrowheadType1

public DimensionStyle.ArrowType ArrowheadType1 { get; set; }
inherited fromDimension

ArrowheadType2

public DimensionStyle.ArrowType ArrowheadType2 { get; set; }
inherited fromDimension

ArrowSize

public double ArrowSize { get; set; }
inherited fromDimension

BaselineSpacing

public double BaselineSpacing { get; set; }
inherited fromDimension

CentermarkSize

public double CentermarkSize { get; set; }
inherited fromDimension

CentermarkStyle

public DimensionStyle.CenterMarkStyle CentermarkStyle { get; set; }
inherited fromDimension

DecimalSeparator

public char DecimalSeparator { get; set; }
Set or get the decimal separator c
inherited fromAnnotationBase

DetailMeasured

public Guid DetailMeasured { get; set; }
inherited fromDimension

DimensionLengthDisplay

public DimensionStyle.LengthDisplay DimensionLengthDisplay { get; set; }
Length display units and format
inherited fromAnnotationBase

DimensionLineExtension

public double DimensionLineExtension { get; set; }
inherited fromDimension

DimensionScale

public double DimensionScale { get; set; }
Gets or sets the dimension scale
inherited fromAnnotationBase

DimensionStyle

public DimensionStyle DimensionStyle { get; }
If there are no overrides then the parent style is returned otherwise the dimension style saved with the annotation is returned.
inherited fromAnnotationBase

DimensionStyleId

public Guid DimensionStyleId { get; set; }
Id of this annotation's parent dimstyle If this annotation has overrides to dimstyle properties, those overrides will be represented in the DimensionStyle returned by DimensionStyle(ParentStyle)
inherited fromAnnotationBase

Disposed

public bool Disposed { get; }
Indicates if this object has been disposed or the document it originally belonged to has been disposed.
inherited fromCommonObject

DistanceScale

public double DistanceScale { get; set; }
inherited fromDimension

DrawForward

public bool DrawForward { get; set; }
Gets or sets whether the text is oriented towards the reader when viewed from behind
inherited fromAnnotationBase

DrawTextFrame

public bool DrawTextFrame { get; set; }
obsoleteDo not use setter as the MaskFrame is an enum. Use MaskFrame property instead
Gets or sets whether to draw a frame around a text mask
inherited fromAnnotationBase

ExtensionLineExtension

public double ExtensionLineExtension { get; set; }
inherited fromDimension

ExtensionLineOffset

public double ExtensionLineOffset { get; set; }
inherited fromDimension

FirstCharFont

public Font FirstCharFont { get; }
Returns the font used by the first run of text in an annotation
inherited fromAnnotationBase

FixedExtensionLength

public double FixedExtensionLength { get; set; }
inherited fromDimension

FixedLengthExtensionOn

public bool FixedLengthExtensionOn { get; set; }
inherited fromDimension

Font

public Font Font { get; set; }
The base Font for the text of the annotation. The text string is rich text and therefore a different font that the base font can be associated with sub strings of the text
inherited fromAnnotationBase

FontIndex

[EditorBrowsable(EditorBrowsableState.Never)] public int FontIndex { get; set; }
obsoleteUse Font property instead. Ex: textEntity.Font = Rhino.DocObjects.Font.FromQuartetProperties("Arial", false, false);
Obsolete; use Font property instead
inherited fromAnnotationBase

ForceArrowPosition

public Dimension.ForceArrow ForceArrowPosition { get; set; }
inherited fromDimension

ForceDimensionLineBetweenExtensionLines

public bool ForceDimensionLineBetweenExtensionLines { get; set; }
inherited fromDimension

ForceDimLine

public bool ForceDimLine { get; set; }
inherited fromDimension

ForceTextPosition

public Dimension.ForceText ForceTextPosition { get; set; }
inherited fromDimension

FormatWidth

public double FormatWidth { get; set; }
Text format width (Wrapping rectangle)
inherited fromAnnotationBase

HasBrepForm

public bool HasBrepForm { get; }
Returns true if the Brep.TryConvertBrep function will be successful for this object
inherited fromGeometryBase

HasPropertyOverrides

public bool HasPropertyOverrides { get; }
inherited fromAnnotationBase

HasUserData

public bool HasUserData { get; }
Gets true if this class has any custom information attached to it through UserData.
inherited fromCommonObject

IsDeformable

public bool IsDeformable { get; }
true if object can be accurately modified with "squishy" transformations like projections, shears, and non-uniform scaling.
inherited fromGeometryBase

IsDocumentControlled

public sealed override bool IsDocumentControlled { get; }
If true this object may not be modified. Any properties or functions that attempt to modify this object when it is set to "IsReadOnly" will throw a NotSupportedException.
inherited fromGeometryBase

IsShallowDuplicate

public bool IsShallowDuplicate { get; }
Is this instance a 'shallow copy'. Shallow copies are no different than regular instances with the exception that they will convert to complete independent 'deep' copies if a non const operation is perform on the instance (something that mutates the internal data)
inherited fromGeometryBase

IsValid

public virtual bool IsValid { get; }
Tests an object to see if it is valid.
inherited fromCommonObject

LengthFactor

public double LengthFactor { get; set; }
inherited fromDimension

LengthResolution

public int LengthResolution { get; set; }
inherited fromDimension

LengthRoundoff

public double LengthRoundoff { get; set; }
inherited fromDimension

LineSpaceScale

public double LineSpaceScale { get; set; }
Scale applied to line spacing
inherited fromAnnotationBase

MaskColor

public Color MaskColor { get; set; }
Color to use for drawing a text mask when it is enabled. If the mask is enabled and MaskColor is System.Drawing.Color.Transparent, then the viewport's color will be used for the MaskColor
inherited fromAnnotationBase

MaskColorSource

public DimensionStyle.MaskType MaskColorSource { get; set; }
Gets or sets whether the mask background color is from the background or from a color
inherited fromAnnotationBase

MaskEnabled

public bool MaskEnabled { get; set; }
Determines whether or not to draw a Text Mask
inherited fromAnnotationBase

MaskFrame

public DimensionStyle.MaskFrame MaskFrame { get; set; }
Gets or sets whether to draw a frame around a text mask
inherited fromAnnotationBase

MaskOffset

public double MaskOffset { get; set; }
Offset for the border around text of the rectangle used to draw the mask. This value multiplied by TextHeight is the offset on each side of the tight rectangle around the text characters to the mask rectangle. The default value is 0.1.
inherited fromAnnotationBase

MaskUsesViewportColor

public bool MaskUsesViewportColor { get; set; }
If true, the viewport's color is used for the mask color. If false, the color defined by MaskColor is used
inherited fromAnnotationBase

NumericValue

public double NumericValue { get; }
Gets the numeric value (or measurement), depending on geometry type.

LinearDimension: distance between arrow tips

RadialDimension: radius or diameter depending on type

AngularDimension: angle in radians

inherited fromDimension

ObjectType

[CLSCompliant(false)] public ObjectType ObjectType { get; }
Useful for switch statements that need to differentiate between basic object types like points, curves, surfaces, and so on.
inherited fromGeometryBase

ParentDimensionStyle

public DimensionStyle ParentDimensionStyle { get; set; }
The parent dimension style associated with this annotation
inherited fromAnnotationBase

PlainText

public string PlainText { get; set; }
Text stripped of RTF formatting information
inherited fromAnnotationBase

PlainTextWithFields

public string PlainTextWithFields { get; }
Text stripped of RTF formatting information and with field expressions intact
inherited fromAnnotationBase

PlainUserText

public string PlainUserText { get; }
inherited fromDimension

Plane

public Plane Plane { get; set; }
Plane that this annotation lies on
inherited fromAnnotationBase

Prefix

public string Prefix { get; set; }
inherited fromDimension

Radius

#Since v8.0
public double Radius { get; set; }
Gets or sets the center mark's radius.

RichText

public string RichText { get; set; }
Text including additional RTF formatting information
inherited fromAnnotationBase

Suffix

public string Suffix { get; set; }
inherited fromDimension

SuppressDimensionLine1

public bool SuppressDimensionLine1 { get; set; }
Suppresses the dimension line and arrowhead between the first extension line and the dimension text.
inherited fromDimension

SuppressDimensionLine2

public bool SuppressDimensionLine2 { get; set; }
Suppresses the dimension line and arrowhead between the second extension line and the dimension text.
inherited fromDimension

SuppressExtension1

public bool SuppressExtension1 { get; set; }
inherited fromDimension

SuppressExtension2

public bool SuppressExtension2 { get; set; }
inherited fromDimension

Text

public string Text { get; set; }
obsoleteUse RichText or PlainText
Text including additional RTF formatting information
inherited fromAnnotationBase

TextAngleType

public virtual DimensionStyle.LeaderContentAngleStyle TextAngleType { get; set; }
inherited fromDimension

TextFit

public DimensionStyle.TextFit TextFit { get; set; }
inherited fromDimension

TextFormula

public string TextFormula { get; set; }
inherited fromDimension

TextHasRtfFormatting

public bool TextHasRtfFormatting { get; }
Gets a value indicating whether the annotation's text is formatted as RTF (Rich Text Format). Returns true if the text begins with an RTF header; otherwise, false.
inherited fromAnnotationBase

TextHeight

public double TextHeight { get; set; }
AnnotationBase.TextHeight Gets the parent dimstyle for the annotation and gets or sets the text height in the dimstyle
inherited fromAnnotationBase

TextIsWrapped

public bool TextIsWrapped { get; set; }
Is text wrapping on
inherited fromAnnotationBase

TextLocation

public virtual DimensionStyle.TextLocation TextLocation { get; set; }
inherited fromDimension

TextModelWidth

public double TextModelWidth { get; }
Width of text in the model
inherited fromAnnotationBase

TextOrientation

public virtual TextOrientation TextOrientation { get; set; }
inherited fromDimension

TextPosition

public Point2d TextPosition { get; set; }
Gets and sets the position of text on the plane.
inherited fromDimension

TextRotation

public double TextRotation { get; set; }
inherited fromDimension

TextRotationDegrees

public double TextRotationDegrees { get; set; }
Rotation of text in degrees
inherited fromAnnotationBase

TextRotationRadians

public double TextRotationRadians { get; set; }
Rotation of text in radians
inherited fromAnnotationBase

ToleranceFormat

public DimensionStyle.ToleranceDisplayFormat ToleranceFormat { get; set; }
inherited fromDimension

ToleranceHeightScale

public double ToleranceHeightScale { get; set; }
inherited fromDimension

ToleranceLowerValue

public double ToleranceLowerValue { get; set; }
inherited fromDimension

ToleranceResolution

public int ToleranceResolution { get; set; }
inherited fromDimension

ToleranceUpperValue

public double ToleranceUpperValue { get; set; }
inherited fromDimension

UseDefaultTextPoint

public bool UseDefaultTextPoint { get; set; }
inherited fromDimension

UseKerning

public bool UseKerning { get; set; }
Use kerning data in font to set distances between glyphs
inherited fromAnnotationBase

UserData

public UserDataList UserData { get; }
List of custom information that is attached to this class.
inherited fromCommonObject

UserDictionary

public ArchivableDictionary UserDictionary { get; }
Dictionary of custom information attached to this class. The dictionary is actually user data provided as an easy to use shareable set of information.
inherited fromCommonObject

UserStringCount

public int UserStringCount { get; }
Gets the amount of user strings.
inherited fromGeometryBase

ZeroSuppression

public DimensionStyle.ZeroSuppression ZeroSuppression { get; set; }
inherited fromDimension

Methods

AdjustFromPoints

#Since v8.0
public bool AdjustFromPoints(Plane plane, Point3d centerPoint)
Update dimension geometry from point locations.
plane (Plane)Dimension's plane.
centerPoint (Point3d)Dimension's center point.
True if successful, false otherwise.

ClearPropertyOverrides

public bool ClearPropertyOverrides()
Clears all overridden properties for this annotation
inherited fromAnnotationBase

ComponentIndex

[ConstOperation] public ComponentIndex ComponentIndex()
If this piece of geometry is a component in something larger, like a BrepEdge in a Brep, then this function returns the component index.
inherited fromGeometryBase
This object's component index. If this object is not a sub-piece of a larger geometric entity, then the returned index has m_type = ComponentIndex.InvalidType and m_index = -1.

ConstructConstObject

protected void ConstructConstObject(object parentObject, int subobjectIndex)
Assigns a parent object and a sub-object index to this.
inherited fromCommonObject
parentObject (object)The parent object.
subobjectIndex (int)The sub-object index.

Create

#Since v8.0
public static Centermark Create(DimensionStyle dimStyle, Plane plane, Curve curve, double curveParameter)
Creates a new center mark dimension.
dimStyle (DimensionStyle)Dimension's dimension style.
plane (Plane)Dimension's plane.
curve (Curve)Curve used to determine the center mark's radius.
curveParameter (double)Parameter on curve used to determine the center mark's radius.
A new center mark if successful, null otherwise.

Create

#Since v6.0
public static Centermark Create(DimensionStyle dimStyle, Plane plane, Point3d centerPoint, double radius)
Creates a new center mark dimension.
dimStyle (DimensionStyle)Dimension's dimension style.
plane (Plane)Dimension's plane.
centerPoint (Point3d)Dimension's center point.
radius (double)Center mark's radius.
A new center mark if successful, null otherwise.

DataCRC

[CLSCompliant(false)] public uint DataCRC(uint currentRemainder)
Returns a CRC calculated from the information that defines the object. This CRC can be used as a quick way to see if two objects are not identical.
inherited fromGeometryBase
currentRemainder (uint)The current remainder value.
CRC of the information the defines the object.

DeleteAllUserStrings

public void DeleteAllUserStrings()
inherited fromGeometryBase

DeleteUserString

public bool DeleteUserString(string key)
inherited fromGeometryBase
key (string)

Dispose

public void Dispose()
Actively reclaims unmanaged resources that this instance uses.
inherited fromCommonObject

Dispose

protected override void Dispose(bool disposing)
Overridden in order to destroy local display cache information
inherited fromGeometryBase
disposing (bool)

Duplicate

public virtual GeometryBase Duplicate()
Constructs a deep (full) copy of this object.
inherited fromGeometryBase
An object of the same type as this, with the same properties and behavior.

DuplicateShallow

public GeometryBase DuplicateShallow()
Constructs a light copy of this object. By "light", it is meant that the same underlying data is used until something is done to attempt to change it. For example, you could have a shallow copy of a very heavy mesh object and the same underlying data will be used when doing things like inspecting the number of faces on the mesh. If you modify the location of one of the mesh vertices, the shallow copy will create a full duplicate of the underlying mesh data and the shallow copy will become a deep copy.
inherited fromGeometryBase
An object of the same type as this object.

This behavior is overridden by implementing classes.

EnsurePrivateCopy

public void EnsurePrivateCopy()
If you want to keep a copy of this class around by holding onto it in a variable after a command completes, call EnsurePrivateCopy to make sure that this class is not tied to the document. You can call this function as many times as you want.
inherited fromCommonObject

Explode

public GeometryBase[] Explode()
Explodes this dimension into its geometric components.
inherited fromDimension
An array of Curve and TextEntity objects. If the leader is using user-defined arrowheads, InstanceReferenceGeometry objects will be included.

GetBoundingBox

[ConstOperation] public BoundingBox GetBoundingBox(bool accurate)
Bounding box solver. Gets the world axis aligned bounding box for the geometry.
inherited fromGeometryBase
accurate (bool)If true, a physically accurate bounding box will be computed. If not, a bounding box estimate will be computed. For some geometry types there is no difference between the estimate and the accurate bounding box. Estimated bounding boxes can be computed much (much) faster than accurate (or "tight") bounding boxes. Estimated bounding boxes are always similar to or larger than accurate bounding boxes.
The bounding box of the geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.

GetBoundingBox

[ConstOperation] public BoundingBox GetBoundingBox(Plane plane, out Box worldBox)
Aligned Bounding box solver. Gets the plane aligned bounding box.
inherited fromGeometryBase
plane (Plane)Orientation plane for BoundingBox.
worldBox (out Box)Aligned box in World coordinates.
A BoundingBox in plane coordinates.

GetBoundingBox

[ConstOperation] public BoundingBox GetBoundingBox(Plane plane)
Aligned Bounding box solver. Gets the plane aligned bounding box.
inherited fromGeometryBase
plane (Plane)Orientation plane for BoundingBox.
A BoundingBox in plane coordinates.

GetBoundingBox

public override BoundingBox GetBoundingBox(Transform xform)
Aligned bounding box solver. Gets the world axis aligned bounding box for the transformed geometry.
inherited fromAnnotationBase
xform (Transform)Transformation to apply to bounding box after calculation. The geometry is not modified.
The bounding box of the transformed geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.

GetDimensionStyle

[ConstOperation] public DimensionStyle GetDimensionStyle(DimensionStyle parentDimStyle)
Return the proper dimension style from which to get properties for this annotation object If this object has style overrides, those will be included in the returned dimension style and the style will be updated to include the current state of the parent style for non-overridden fields
inherited fromAnnotationBase
parentDimStyle (DimensionStyle)

GetObjectData

[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
inherited fromCommonObject
info (SerializationInfo)The System.Runtime.Serialization.SerializationInfo to populate with data.
context (StreamingContext)The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.

GetPlainTextWithRunMap

public string GetPlainTextWithRunMap(ref int[] map)
Return plain text string for this annotation with field expressions unevaluated.
inherited fromAnnotationBase
map (ref int[])an array of int values in groups of 3: run index, character start position, and length.
A plain text string.

GetTextTransform

[ConstOperation] public Transform GetTextTransform(ViewportInfo viewport, DimensionStyle style, double textScale, bool drawForward)
Get the transform for this text object's text geometry
inherited fromDimension
viewport (ViewportInfo)Viewport where text is being used
style (DimensionStyle)Dimension's DimensionStyle
textScale (double)Scale to apply to text
drawForward (bool)Draw text front-facing

GetUserString

public string GetUserString(string key)
Gets user string from this geometry.
inherited fromGeometryBase
key (string)id used to retrieve the string.
string associated with the key if successful. null if no key was found.

GetUserStrings

public NameValueCollection GetUserStrings()
Gets a copy of all (user key string, user value string) pairs attached to this geometry.
inherited fromGeometryBase
A new collection.

IsAllBold

public bool IsAllBold()
Returns true if all of the text in the annotation is Bold, otherwise returns false
inherited fromAnnotationBase

IsAllItalic

public bool IsAllItalic()
Returns true if all of the text in the annotation is Italic, otherwise returns false
inherited fromAnnotationBase

IsAllUnderlined

public bool IsAllUnderlined()
Returns true if all of the text in the annotation is Underlined, otherwise returns false
inherited fromAnnotationBase

IsPropertyOverridden

[ConstOperation] public bool IsPropertyOverridden(Field field)
Returns true if a property is overridden
inherited fromAnnotationBase
field (DimensionStyle.Field)

IsValidWithLog

public bool IsValidWithLog(out string log)
Determines if an object is valid. Also provides a report on errors if this object happens not to be valid.
inherited fromCommonObject
log (out string)A textual log. This out parameter is assigned during this call.
true if this object is valid; false otherwise.

MakeDeformable

public bool MakeDeformable()
If possible, converts the object into a form that can be accurately modified with "squishy" transformations like projections, shears, an non-uniform scaling.
inherited fromGeometryBase
false if object cannot be converted to a deformable object. true if object was already deformable or was converted into a deformable object.

MemoryEstimate

[CLSCompliant(false)] [ConstOperation] public uint MemoryEstimate()
Computes an estimate of the number of bytes that this object is using in memory.
inherited fromGeometryBase
An estimated memory footprint.

NonConstOperation

protected override void NonConstOperation()
Destroy cache handle
inherited fromGeometryBase

OnSwitchToNonConst

protected override void OnSwitchToNonConst()
Is called when a non-constant operation occurs.
inherited fromGeometryBase

Rotate

public bool Rotate(double angleRadians, Vector3d rotationAxis, Point3d rotationCenter)
Rotates the object about the specified axis. A positive rotation angle results in a counter-clockwise rotation about the axis (right hand rule).
inherited fromGeometryBase
angleRadians (double)Angle of rotation in radians.
rotationAxis (Vector3d)Direction of the axis of rotation.
rotationCenter (Point3d)Point on the axis of rotation.
true if geometry successfully rotated.

RunReplace

public bool RunReplace(string replaceString, int startRunIndex, int startRunPosition, int endRunIndex, int endRunPosition)
Replace text within a formatted string
inherited fromAnnotationBase
replaceString (string)
startRunIndex (int)
startRunPosition (int)
endRunIndex (int)
endRunPosition (int)

Scale

public bool Scale(double scaleFactor)
Scales the object by the specified factor. The scale is centered at the origin.
inherited fromGeometryBase
scaleFactor (double)The uniform scaling factor.
true if geometry successfully scaled.

SetAltDimensionLengthDisplayWithZeroSuppressionReset

public void SetAltDimensionLengthDisplayWithZeroSuppressionReset(LengthDisplay ld)
inherited fromDimension

SetBold

public virtual bool SetBold(bool set_on)
inherited fromAnnotationBase
set_on (bool)

SetDimensionLengthDisplayWithZeroSuppressionReset

public void SetDimensionLengthDisplayWithZeroSuppressionReset(LengthDisplay ld)
inherited fromDimension

SetFacename

public virtual bool SetFacename(bool set_on, string facename)
inherited fromAnnotationBase
set_on (bool)
facename (string)

SetItalic

public virtual bool SetItalic(bool set_on)
inherited fromAnnotationBase
set_on (bool)

SetOverrideDimStyle

public bool SetOverrideDimStyle(DimensionStyle OverrideStyle)
Set a style including overrides for this annotation object. The DimensionStyle OverrideStyle must have the override fields marked as overridden and must have it's Id set to nil. Use DimensionStyle.SetFieldOverride(Field field) and related functions to manage override settings. To override a field, the field value must be set and the field must be marked as an override. The DimensionStyle passed in here must not be in the dimstyle table
inherited fromAnnotationBase
OverrideStyle (DimensionStyle)

SetRichText

public void SetRichText(string rtfText, DimensionStyle dimstyle)
Sets the annotation's text as rich text (RTF), optionally using a specified dimension style for formatting overrides.
inherited fromAnnotationBase
rtfText (string)The RTF (Rich Text Format) string to assign to the annotation.
dimstyle (DimensionStyle)The dimension style to use for formatting overrides, or null to use the current style.

SetUnderline

public virtual bool SetUnderline(bool set_on)
inherited fromAnnotationBase
set_on (bool)

SetUserString

public bool SetUserString(string key, string value)
Attach a user string (key,value combination) to this geometry.
inherited fromGeometryBase
key (string)id used to retrieve this string.
value (string)string associated with key.
true on success.

ToJSON

public string ToJSON(SerializationOptions options)
Create a JSON string representation of this object
inherited fromCommonObject
options (SerializationOptions)

Transform

public bool Transform(Transform xform)
Transforms the geometry. If the input Transform has a SimilarityType of OrientationReversing, you may want to consider flipping the transformed geometry after calling this function when it makes sense. For example, you may want to call Flip() on a Brep after transforming it.
inherited fromGeometryBase
xform (Transform)Transformation to apply to geometry.
true if geometry successfully transformed.

Translate

public bool Translate(double x, double y, double z)
Translates the object along the specified vector.
inherited fromGeometryBase
x (double)The X component.
y (double)The Y component.
z (double)The Z component.
true if geometry successfully translated.

Translate

public bool Translate(Vector3d translationVector)
Translates the object along the specified vector.
inherited fromGeometryBase
translationVector (Vector3d)A moving vector.
true if geometry successfully translated.

UpdateDimensionText

public void UpdateDimensionText(DimensionStyle style, LengthUnit units)
Remakes dimension text geometry object and sets it on the dimension.
inherited fromDimension
style (DimensionStyle)The dimension style.
units (LengthUnit)The length units.

UpdateDimensionText

public void UpdateDimensionText(DimensionStyle style, UnitSystem units)
Remakes dimension text geometry object and sets it on the dimension.
Obsoleteinherited fromDimension
style (DimensionStyle)The dimension style.
units (UnitSystem)The unit system.

WrapText

public void WrapText()
Wrap text
inherited fromAnnotationBase