DeleteDimStyle

Removes an existing dimension style from the document.  The dimension style to be removed cannot be the reference by any dimension objects.

Syntax

rhinoscriptsyntax.DeleteDimStyle (dimstyle_name)

rhinoscript.dimension.DeleteDimStyle (dimstyle_name)

Parameters

dimstyle_name

Required.  String.  The name of an un-referenced dimension style.

Returns

String

The name of the deleted dimension style if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

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

if dimstyle: rs.DeleteDimStyle(dimstyle)

Also See

AddDimStyle

CurrentDimStyle

IsDimStyle

RenameDimStyle