IsDimStyle

Verifies the existence of a dimension style in the document.

Syntax

rhinoscriptsyntax.IsDimStyle (dimstyle)

rhinoscript.dimension.IsDimStyle (dimstyle)

Parameters

dimstyle

Required.  String.  The name of a dimension style to test.

Returns

True

If successful.

False

If not successful.

None

On error.

Example

import rhinoscriptsyntax as rs

dimstyle = rs.GetString("Dimension style to test")

if rs.IsDimStyle(dimstyle):

    if rs.IsDimStyleReference(dimstyle):

        print "The dimension style is from a reference file."

    else:

        print "The dimension style is not from a reference file."

else:

    print "The dimension style does not exist."

Also See

IsDimStyleReference