Returns or modifies the scale for a detail object.
rhinoscriptsyntax.DetailScale (detail_id, model_length=None, page_length=None)
rhinoscript.view.DetailScale (detail_id, model_length=None, page_length=None)
detail_id |
Required. String or Guid. The identifier of an existing detail. |
model_length |
Optional. Number. A length in the current model units |
page_length |
Optional. Number. A length in the current page units |
Number |
Current page to model scale ratio on success if model_length and page_length are None. Previous page to model scale ratio on success if model_length and page_length have values |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
detail = rs.GetObject("select a detail", rs.filter.detail)
if detail: rs.DetailScale(detail,1,1)