Removes an existing dimension style from the document. The dimension style to be removed cannot be the reference by any dimension objects.
rhinoscriptsyntax.DeleteDimStyle (dimstyle_name)
rhinoscript.dimension.DeleteDimStyle (dimstyle_name)
dimstyle_name |
Required. String. The name of an un-referenced dimension style. |
String |
The name of the deleted dimension style if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
dimstyle = rs.GetString("Dimension style to remove")
if dimstyle: rs.DeleteDimStyle(dimstyle)