Class Dimension
Inheritance
System.Object
Dimension
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: CADability.dll
Syntax
public abstract class Dimension : EntityObject, IHasXData, ICloneable
Constructors
|
Improve this Doc
View Source
Dimension(DimensionType)
Initializes a new instance of the Dimension class.
Declaration
protected Dimension(DimensionType type)
Parameters
Fields
|
Improve this Doc
View Source
defPoint
Declaration
protected Vector2 defPoint
Field Value
|
Improve this Doc
View Source
textRefPoint
Declaration
protected Vector2 textRefPoint
Field Value
Properties
|
Improve this Doc
View Source
AttachmentPoint
Gets or sets the dimension text attachment point.
Declaration
public MTextAttachmentPoint AttachmentPoint { get; set; }
Property Value
|
Improve this Doc
View Source
Block
Gets the block that contains the entities that make up the dimension picture.
Declaration
public Block Block { get; set; }
Property Value
|
Improve this Doc
View Source
DimensionType
Declaration
public DimensionType DimensionType { get; }
Property Value
|
Improve this Doc
View Source
Elevation
Gets or sets the dimension elevation, its position along its normal.
Declaration
public double Elevation { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
LineSpacingFactor
Gets or sets the dimension text line spacing factor.
Declaration
public double LineSpacingFactor { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
LineSpacingStyle
Declaration
public MTextLineSpacingStyle LineSpacingStyle { get; set; }
Property Value
|
Improve this Doc
View Source
Measurement
Gets the actual measurement.
Declaration
public abstract double Measurement { get; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Style
Gets or sets the style associated with the dimension.
Declaration
public DimensionStyle Style { get; set; }
Property Value
|
Improve this Doc
View Source
StyleOverrides
Gets the dimension style overrides list.
Declaration
public DimensionStyleOverrideDictionary StyleOverrides { get; }
Property Value
|
Improve this Doc
View Source
TextPositionManuallySet
Gets or sets if the text reference point has been set by the user. Set to false to reset the dimension text to its original position.
Declaration
public bool TextPositionManuallySet { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
TextReferencePoint
Gets or sets the text reference Vector2, the middle point of dimension text in local coordinates.
Declaration
public Vector2 TextReferencePoint { get; set; }
Property Value
|
Improve this Doc
View Source
TextRotation
Gets or sets the rotation angle in degrees of the dimension text away from its default orientation(the direction of the dimension line).
Declaration
public double TextRotation { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
UserText
Gets or sets the dimension text explicitly.
Declaration
public string UserText { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Methods
|
Improve this Doc
View Source
BuildBlock(String)
Gets the block that contains the entities that make up the dimension picture.
Declaration
protected abstract Block BuildBlock(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
Name to be assigned to the generated block.
|
Returns
| Type |
Description |
| Block |
The block that represents the actual dimension.
|
|
Improve this Doc
View Source
CalculateReferencePoints()
Calculate the dimension reference points.
Declaration
protected abstract void CalculateReferencePoints()
|
Improve this Doc
View Source
OnDimensionBlockChangedEvent(Block, Block)
Declaration
protected virtual Block OnDimensionBlockChangedEvent(Block oldBlock, Block newBlock)
Parameters
| Type |
Name |
Description |
| Block |
oldBlock |
|
| Block |
newBlock |
|
Returns
|
Improve this Doc
View Source
OnDimensionStyleChangedEvent(DimensionStyle, DimensionStyle)
Declaration
protected virtual DimensionStyle OnDimensionStyleChangedEvent(DimensionStyle oldStyle, DimensionStyle newStyle)
Parameters
Returns
|
Improve this Doc
View Source
OnDimensionStyleOverrideAddedEvent(DimensionStyleOverride)
Declaration
protected virtual void OnDimensionStyleOverrideAddedEvent(DimensionStyleOverride item)
Parameters
|
Improve this Doc
View Source
OnDimensionStyleOverrideRemovedEvent(DimensionStyleOverride)
Declaration
protected virtual void OnDimensionStyleOverrideRemovedEvent(DimensionStyleOverride item)
Parameters
|
Improve this Doc
View Source
Update()
Updates the internal data of the dimension and if needed it rebuilds the block definition of the actual dimension.
Declaration
Events
|
Improve this Doc
View Source
DimensionBlockChanged
Declaration
public event Dimension.DimensionBlockChangedEventHandler DimensionBlockChanged
Event Type
|
Improve this Doc
View Source
DimensionStyleChanged
Declaration
public event Dimension.DimensionStyleChangedEventHandler DimensionStyleChanged
Event Type
|
Improve this Doc
View Source
DimensionStyleOverrideAdded
Declaration
public event Dimension.DimensionStyleOverrideAddedEventHandler DimensionStyleOverrideAdded
Event Type
|
Improve this Doc
View Source
DimensionStyleOverrideRemoved
Declaration
public event Dimension.DimensionStyleOverrideRemovedEventHandler DimensionStyleOverrideRemoved
Event Type
Implements
System.ICloneable