DimStyleFieldOverride

Returns or changes the overridden state of a field of a child dimension style.  A child dimension styles is created when a dimension style, assigned to a dimension object, is overridden.

Syntax

Rhino.DimStyleFieldOverride (strDimStyle [, dblOffset])

Parameters

strDimStyle

Required.  String.  The name of an existing dimension style.

dblOffset

Optional.  Number.  The field of the dimension style.

Value

Description

0

unused

1

unused

2

Extension line extension

3

Extension line offset

4

Arrow size

5

Center mark

6

Text gap

7

Text height

8

Text alignment

9

Arrow type

10

Angular units

11

Length format

12

Angle format

13

Angle resolution

14

Length resolution

15

Font

16

Length factor

17

Alternate dimension string

18

Alternate length factor

19

Alternate length format

20

Alternate length resolution

21

Alternate angle format

22

Alternate angle resolution

23

Prefix

24

Suffix

25

Alternate prefix

26

Alternate suffix

27

Dimension line extension

28

Leader arrow size

29

Leader arrow type

30

Suppress extension line 1

31

Suppress extension line 2

 

blnOverride

Optional.  Boolean.  Override the field.

Returns

Number

If an offset is not specified, the current extension line offset if successful.

Number

If an offset is specified, the previous extension line offset if successful.

Null

If not successful, or on error.

Example

Dim strDimStyle, blnFont

strDimStyle = Rhino.GetString("Dimension style to reset font")

If Rhino.IsDimStyle(strDimStyle) Then

  If Rhino.IsDimStyleChild(strDimStyle) Then

    blnFont = Rhino.DimStyleFieldOverride(strDimStyle, 15)

    If (blnFont = True) Then

      Rhino.DimStyleFieldOverride strDimStyle, 15, False

    End If

  End If

Else

  Rhino.Print "The dimension style does not exist."

End If

Also See

IsDimStyle

IsDimStyleChild