Adds a new detail view to an existing layout view.
rhinoscriptsyntax.AddDetail (layout_id, corner1, corner2, title=None, projection=0)
rhinoscript.view.AddDetail (layout_id, corner1, corner2, title=None, projection=0)
layout_id |
String or Guid. The identifier of an existing layout to add this detail to. |
||||||||||||||||
corner1 |
List of two numbers or Point2d. First 2d corner point of the detail on the layout. |
||||||||||||||||
corner2 |
List of two numbers or Point2d. Second 2d corner point of the detail on the layout. |
||||||||||||||||
title |
Optional. String. Title of the new detail. If omitted, the name will match the detail's projection |
||||||||||||||||
projection |
Optional. Initial projection for the detail.
|
Guid |
Identifier of the newly created detail if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
layout = rs.AddLayout("Portrait", (8.5,11))
if layout:
rs.AddDetail(layout, (0.5,0.5), (8,10.5), None, 7)