DimensionStyle

Returns or modifies the dimension style of a dimension object.

Syntax

rhinoscriptsyntax.DimensionStyle (object_id, dimstyle_name=None)

rhinoscript.dimension.DimensionStyle (object_id, dimstyle_name=None)

Parameters

object_id

Required. String or Guid. The object's identifier.

dimstyle_name

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

Returns

String

If dimstyle_name is not specified, then the object's current dimension style if successful.

String

If dimstyle_name is specified, then the object's previous dimension style if successful.

None

On error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a dimension")

if rs.IsDimension(obj): rs.DimensionStyle(obj, "Default")

Also See

DimStyleNames

IsDimStyle