Returns or modifies the print width of an object. Object print widths are measured in millimeters (mm).
rhinoscriptsyntax.ObjectPrintWidth (object_ids, width=None)
rhinoscript.object.ObjectPrintWidth (object_ids, width=None)
object_ids |
Required. String, Guid or list of Guids. The identifiers of the objects. |
width |
Optional. Number. The new print width value in millimeters, where width = 0.0 means use the default width, and width < 0.0 means do not print (visible for screen display, but does not show on print). If omitted, the current object print width is returned. Note, if object_ids is a list or tuple, width is required. |
Number |
If a print width value is not specified, the current print width value if successful. |
Number |
If a print width value is specified, the previous print width value if successful. |
Number |
If object_ids is a list or tuple, then the number of objects modified if successful. |
import rhinoscriptsyntax as rs
objs = rs.GetObjects("Select objects to change print width")
if objs:
for obj in objs: rs.ObjectPrintWidth(obj,0.5)