Bitbybit Docs
    Preparing search index...

    Class SimpleLinearLengthDimensionDto (Inputs.OCCT)

    Two points and the drawing settings for dimensions.simpleLinearLengthDimension: where the dimension line sits, how the extension lines, arrows and label look, and how the distance is written.

    Index

    Constructors

    • Parameters

      • Optionalstart: Point3
      • Optionalend: Point3
      • Optionaldirection: Vector3
      • OptionaloffsetFromPoints: number
      • OptionalcrossingSize: number
      • OptionallabelSuffix: string
      • OptionallabelSize: number
      • OptionallabelOffset: number
      • OptionallabelRotation: number
      • OptionalendType: dimensionEndTypeEnum
      • OptionalarrowSize: number
      • OptionalarrowAngle: number
      • OptionalarrowsFlipped: boolean
      • OptionallabelFlipHorizontal: boolean
      • OptionallabelFlipVertical: boolean
      • OptionallabelOverwrite: string
      • OptionalremoveTrailingZeros: boolean

      Returns SimpleLinearLengthDimensionDto

    Properties

    start: Point3

    The first of the two points whose distance is measured.

    undefined
    
    end: Point3

    The second of the two points whose distance is measured.

    undefined
    
    direction: Vector3

    The vector from the measured points to the dimension line; its length is the offset, in model units, and it must not run along the measured line.

    undefined
    
    offsetFromPoints?: number

    The gap between each measured point and the start of its extension line, in model units, so the dimension does not touch the geometry.

    0
    

    -Infinity

    Infinity

    0.1

    crossingSize?: number

    How far the lines stick out past their crossings, in model units.

    0.2
    

    0

    Infinity

    0.1

    decimalPlaces?: number

    How many decimals the distance is rounded to in the label.

    2
    

    0

    Infinity

    1

    labelSuffix?: string

    Text written after the number, such as a unit; the model has no unit of its own.

    (cm)
    
    labelSize?: number

    The height of the label's capital letters, in model units.

    0.1
    

    0

    Infinity

    0.1

    labelOffset?: number

    How far the label sits from the dimension line, in model units.

    0.3
    

    -Infinity

    Infinity

    0.1

    labelRotation?: number

    Extra rotation of the label in its plane, in degrees.

    0
    

    -360

    360

    1

    What the dimension line ends with: nothing, or an arrowhead.

    none
    
    arrowSize?: number

    The length of the arrowheads, in model units.

    0.3
    

    0

    Infinity

    0.1

    arrowAngle?: number

    The full angle between the two lines of an arrowhead, in degrees, up to 90.

    30
    

    0

    90

    1

    arrowsFlipped?: boolean

    When true, the arrowheads point outward from the dimension instead of inward.

    false
    
    labelFlipHorizontal?: boolean

    When true, the label is mirrored left to right.

    false
    
    labelFlipVertical?: boolean

    When true, the label is mirrored top to bottom.

    false
    
    labelOverwrite?: string

    An expression written instead of the plain number, with val standing for the distance, such as 100*val or Length: val mm.

    1*val
    

    true

    removeTrailingZeros?: boolean

    When true, zeros at the end of the decimals are dropped, so 2.50 becomes 2.5.

    false