DimStylePrefix

Returns or changes the prefix of a dimension style - the text to prefix to the dimension text.

Syntax

rhinoscriptsyntax.DimStylePrefix (dimstyle, prefix=None)

rhinoscript.dimension.DimStylePrefix (dimstyle, prefix=None)

Parameters

dimstyle

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

prefix

Optional.  String.  The new prefix.  If omitted, the current prefix is returned.  To remove the prefix, pass in an empty string, or "".

Returns

String

If prefix is not specified, the current prefix if successful.  Note, if no current prefix exists, None is returned.

String

If prefix is specified, the previous prefix if successful.  Note, if no previous prefix exists, None is returned.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

dimstyle = rs.CurrentDimStyle()

rs.DimStylePrefix( dimstyle, "[" )

Also See

DimStyleLengthFactor

DimStyleSuffix