ObjectPrintWidthSource

Returns or modifies the print width source of an object.  The width used to print objects is specified in one of three ways:

  1. Print width from layer.  Use the print width assigned to the object's layer.

  2. Print width from object.  Use the print width that is assigned to the object.

  3. Print width from parent.  For objects with parents, like objects in block instances, use parent's print width.  If no parent, treats as print width from layer.

Syntax

rhinoscriptsyntax.ObjectPrintWidthSource (object_ids, source=None)

Parameters

object_ids

Required.  String, Guid, or list of Guids.  The identifiers of the objects.

source

Optional.  Number.  The new print width source.  If omitted, the current print width source is returned.  Note, if object_ids is a list or tuple, source is required.

Value

Description

0

Print width by layer.

1

Print width by object.

2

<unused>

3

Print width by parent.

Returns

Number

If a print width source is not specified,  the current width source if successful.

Number

If a print width source is specified, the previous width source if successful.

Number

If object_ids is specified, then the number of objects modified if successful.

Example

import rhinoscriptsyntax as rs

objects = rs.GetObjects("Select objects to reset print width source")

if objects:

    for obj in objects: rs.ObjectPrintWidthSource(obj,0)

Also See

ObjectPrintColor