Bitbybit Docs
    Preparing search index...

    Class DiametralDimensionDto (Advanced.Dimensions)

    A diametral dimension for advanced.dimensions.diametralDimension: a line of length diameter through centerPoint along direction, labeled with that diameter after a diameter sign.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • OptionalcenterPoint: Bit.Inputs.Base.Point3
      • Optionaldirection: Vector3
      • Optionaldiameter: number
      • OptionallabelOffset: number
      • OptionaldecimalPlaces: number
      • OptionallabelSuffix: string
      • OptionallabelOverwrite: string
      • OptionalshowCenterMark: boolean
      • OptionalremoveTrailingZeros: boolean
      • Optionalstyle: DimensionStyleDto

      Returns DiametralDimensionDto

    Properties

    centerPoint: Bit.Inputs.Base.Point3

    Center of the circle; the diameter line is centered on it.

    [0, 0, 0]
    
    direction: Vector3

    Direction the diameter line runs in; only its direction counts, not its length.

    [1, 0, 0]
    
    diameter: number

    Length of the line and the value shown, in model units. It is taken as given, not measured from any geometry.

    2
    

    0.01

    Infinity

    0.1

    labelOffset: number

    Distance in model units from the center to the label, square to direction in the XZ plane, or along X when direction is vertical.

    0.1
    

    0

    Infinity

    0.1

    decimalPlaces: number

    Digits after the decimal point in the label.

    2
    

    0

    10

    1

    labelSuffix: string

    Text after the value, separated by a space. Lengths are in model units, so mm is only a label.

    mm
    
    labelOverwrite: string

    Label expression where val is the measured value: arithmetic such as val/25.4 is evaluated, other text gets the rounded value in place of val. The diameter-sign prefix is added either way.

    1*val
    
    showCenterMark: boolean

    Draws a small cross at centerPoint with its arms along X and Y, four times the style's arrowSize across.

    true
    
    removeTrailingZeros: boolean

    Drops zeros at the end of the rounded value, so 2.50 reads 2.5 and 3.00 reads 3.

    false
    

    Look of the lines, arrowheads and label; leave it out for the defaults of DimensionStyleDto.

    undefined
    

    true