AddDetail

Adds a new detail view to an existing layout view.

Syntax

rhinoscriptsyntax.AddDetail (layout_id, corner1, corner2, title=None, projection=0)

rhinoscript.view.AddDetail (layout_id, corner1, corner2, title=None, projection=0)

Parameters

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.

Value

Description

1

Parallel top

2

Parallel bottom

3

Parallel left

4

Parallel right

5

Parallel left

6

Parallel right

7

Perspective

Returns

Guid

Identifier of the newly created detail if successful.

None

If not successful, or on error.

Example

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)

Also See

DeleteNamedView

NamedViews

RestoreNamedView