ObjectLinetype

Returns or modifies the linetype of an object.

Syntax

rhinoscript.object.ObjectLinetype (object_ids, linetype=None)

Parameters

object_ids

Required.  String, Guid or List of Guids.  The identifier(s) of the object.

linetype

Optional.  String.  The name of an existing linetype.  If omitted, the current object linetype is returned.  Note, if object_ids is specified as a list, linetype is required.

Returns

String

If a linetype is not specified,  the object's current linetype if successful.

String

If a linetype is specified, the object's previous linetype if successful.

Number

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

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select object")

if obj: rs.ObjectLinetype(obj, "Continuous")

Also See

ObjectLinetypeSource