DetailScale

Returns or modifies the scale for a detail object.

Syntax

rhinoscriptsyntax.DetailScale (detail_id, model_length=None, page_length=None)

rhinoscript.view.DetailScale (detail_id, model_length=None, page_length=None)

Parameters

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

Returns

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.

Example

import rhinoscriptsyntax as rs

detail = rs.GetObject("select a detail", rs.filter.detail)

if detail: rs.DetailScale(detail,1,1)

Also See

IsDetail

IsLayout