Class DimensionStyle

Hierarchy (view full)

Constructors

Properties

alternateBelowLine: boolean
alternateLengthFactor: number
arrowBlockId1: string
arrowBlockId2: string
arrowLength: number
arrowType1: ArrowheadTypes
arrowType2: ArrowheadTypes
baselineSpacing: number
centermarkSize: number
dimensionLineExtension: number
drawForward: boolean
drawTextMask: boolean
extensionLineExtension: number
extensionLineOffset: number
fixedExtensionLength: number
fixedExtensionLengthOn: any
hasFieldOverrides: boolean

Checks if any fields in this DimensionStyle are overrides

isChild: boolean

Tests if this DimensionStyle is a child of any other DimensionStyle

isValid: boolean

Tests an object to see if it is valid.

isValidWithLog: [boolean, string]

...

leaderArrowBlockId: string
leaderArrowLength: number
leaderArrowType: ArrowheadTypes
leaderHasLanding: boolean
leaderLandingLength: number
lengthFactor: number
name: string
parentId: string

Get or Set the Id of this DimensionStyle's parent. If ParentId is Guid.Empty, this DimensionStyle has no parent

stackHeightScale: number
suppressArrow1: boolean
suppressArrow2: boolean
suppressExtension1: boolean
suppressExtension2: boolean
textGap: number
textHeight: number
textRotation: number
textUnderlined: boolean
toleranceHeightScale: number
toleranceLowerValue: number
toleranceUpperValue: number
userStringCount: number

Gets the amount of user strings.

Methods

  • Returns void

    Description

    Sets all the fields in this DimensionStyle to be not overridden Does not change any dimstyle_id's or parent_id's

  • Parameters

    • key: string

      id used to retrieve the string.

    Returns string

    string associated with the key if successful. null if no key was found.

    Description

    Gets user string from this geometry.

  • Parameters

    • id: string

    Returns boolean

    True if this is a child of the DimensionStyle with Parent False otherwise.

    Description

    Tests if this DimensionStyle is a child of a specific DimensionStyle

  • Parameters

    • scale: number

    Returns void

    Description

    Scales all length values by 'scale'

  • Parameters

    • key: string

      id used to retrieve this string.

    • value: string

      string associated with key.

    Returns boolean

    true if successful, false if not.

    Description

    Attach a user string (key,value combination) to this geometry.

  • Parameters

    • json: object

      A json formatted object in the following format (values are orientative):

      {
      version: 10000,
      archive3dm: 60,
      opennurbs: -1877964208,
      data: 'encoded 3dm object data'
      }

    Returns CommonObject

    Description

    Decodes a Rhino Object

Generated using TypeDoc