Verifies the existence of a dimension style in the document.
rhinoscriptsyntax.IsDimStyle (dimstyle)
rhinoscript.dimension.IsDimStyle (dimstyle)
dimstyle |
Required. String. The name of a dimension style to test. |
True |
If successful. |
False |
If not successful. |
None |
On error. |
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."