Returns or changes the linetype of a layer.
rhinoscriptsyntax.LayerLinetype(layer, linetype=None)
rhinoscript.layer.LayerLinetype(layer, linetype=None)
layer |
Required. String. The name of an existing layer. |
linetype |
Optional. String. The name of the new linetype. |
String |
If a linetype is not specified, the name of the current linetype if successful. |
String |
If a linetype is specified, the name of the previous linetype if successful. |
import rhinoscriptsyntax as rs
layers = rs.LayerNames()
if layers:
for layer in layers:
if rs.LayerLinetype(layer)!="Continuous":
rs.LayerLinetype(layer,"Continuous")