Verifies that an existing dimension style is from a reference file.
rhinoscriptsyntax.IsDimStyleReference (dimstyle)
rhinoscript.dimension.IsDimStyleReference (dimstyle)
dimstyle |
Required. String. The name of an existing dimension style. |
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."